[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim-runtime] agents/nepomukfeeder: akonadinepomukfeeder_indexer
From: Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date: 2011-11-30 23:04:40
Message-ID: 20111130230440.81481A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 49d971abffac39a4dcccae51d1c38cadc5ffb846 by Christian Mollekopf.
Committed on 30/11/2011 at 03:23.
Pushed by cmollekopf into branch 'master'.
akonadinepomukfeeder_indexer helper utility
M +1 -1 agents/nepomukfeeder/CMakeLists.txt
A +36 -0 agents/nepomukfeeder/test/akonadinepomukfeeder_indexer.cpp \
[License: GPL (v3+)]
http://commits.kde.org/kdepim-runtime/49d971abffac39a4dcccae51d1c38cadc5ffb846
diff --git a/agents/nepomukfeeder/CMakeLists.txt \
b/agents/nepomukfeeder/CMakeLists.txt index 903ba66..82ea7c9 100644
--- a/agents/nepomukfeeder/CMakeLists.txt
+++ b/agents/nepomukfeeder/CMakeLists.txt
@@ -15,7 +15,7 @@ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS} \
-fPIC" )
add_subdirectory( plugin )
add_subdirectory( plugins )
-
+add_subdirectory( test )
kde4_add_executable(akonadi_nepomuk_feeder nepomukfeederagent.cpp pluginloader.cpp \
feederqueue.cpp nepomukhelpers.cpp)
diff --git a/agents/nepomukfeeder/test/akonadinepomukfeeder_indexer.cpp \
b/agents/nepomukfeeder/test/akonadinepomukfeeder_indexer.cpp new file mode 100644
index 0000000..ba28175
--- /dev/null
+++ b/agents/nepomukfeeder/test/akonadinepomukfeeder_indexer.cpp
@@ -0,0 +1,36 @@
+/*
+ Copyright (C) 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include <QtCore/qcoreapplication.h>
+#include <feederqueue.h>
+#include <QtCore/QStringList>
+#include <akonadi/item.h>
+
+int main(int argc, char *argv[])
+ {
+ QCoreApplication app(argc, argv);
+ if (app.arguments().size() != 2) {
+ return -1;
+ }
+ ItemQueue queue(1, 1, &app);
+ Akonadi::Item::Id id = app.arguments().at(1).toInt();
+ kDebug() << "indexing item: " << id;
+ queue.addItem(Akonadi::Item(id));
+ queue.processItem();
+ QObject::connect( &queue, SIGNAL(finished()), &app, SLOT(quit()));
+ return app.exec();
+ }
\ No newline at end of file
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic