From 7bc9c9e677b789f4087639929c24d0e402192158 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 16 Dec 2015 13:16:34 +0100 Subject: Allow passing the resource configuration to the resource --- examples/client/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/client') 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[]) Akonadi2::ApplicationDomain::AkonadiResource resource; resource.setProperty("identifier", args.at(0)); resource.setProperty("type", args.at(1)); + //TODO turn this into a bunch of json + if (args.size() >= 4) { + resource.setProperty(args.at(2).toLatin1(), args.at(3)); + } Akonadi2::Store::create(resource).exec().waitForFinished(); qDebug() << "Created resource " << args; } -- cgit v1.2.3