summaryrefslogtreecommitdiffstats
path: root/examples/client/main.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-16 13:16:34 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-16 13:16:34 +0100
commit7bc9c9e677b789f4087639929c24d0e402192158 (patch)
tree09e2fd9b957114c14f5d5d8599b4fd67bf5402df /examples/client/main.cpp
parent56e38fd874546b54ba34b07c71f65532059c5e7b (diff)
downloadsink-7bc9c9e677b789f4087639929c24d0e402192158.tar.gz
sink-7bc9c9e677b789f4087639929c24d0e402192158.zip
Allow passing the resource configuration to the resource
Diffstat (limited to 'examples/client/main.cpp')
-rw-r--r--examples/client/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp
index f2fb237..9e70872 100644
--- a/examples/client/main.cpp
+++ b/examples/client/main.cpp
@@ -271,6 +271,10 @@ int main(int argc, char *argv[])
271 Akonadi2::ApplicationDomain::AkonadiResource resource; 271 Akonadi2::ApplicationDomain::AkonadiResource resource;
272 resource.setProperty("identifier", args.at(0)); 272 resource.setProperty("identifier", args.at(0));
273 resource.setProperty("type", args.at(1)); 273 resource.setProperty("type", args.at(1));
274 //TODO turn this into a bunch of json
275 if (args.size() >= 4) {
276 resource.setProperty(args.at(2).toLatin1(), args.at(3));
277 }
274 Akonadi2::Store::create<Akonadi2::ApplicationDomain::AkonadiResource>(resource).exec().waitForFinished(); 278 Akonadi2::Store::create<Akonadi2::ApplicationDomain::AkonadiResource>(resource).exec().waitForFinished();
275 qDebug() << "Created resource " << args; 279 qDebug() << "Created resource " << args;
276 } 280 }