diff options
-rw-r--r-- | examples/client/main.cpp | 4 |
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 | } |