diff options
Diffstat (limited to 'examples/client')
-rw-r--r-- | examples/client/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp index 75fcf18..794fc58 100644 --- a/examples/client/main.cpp +++ b/examples/client/main.cpp | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "common/resource.h" | 25 | #include "common/resource.h" |
26 | #include "common/storage.h" | 26 | #include "common/storage.h" |
27 | #include "common/domain/event.h" | 27 | #include "common/domain/event.h" |
28 | #include "common/domain/folder.h" | ||
28 | #include "common/resourceconfig.h" | 29 | #include "common/resourceconfig.h" |
29 | #include "console.h" | 30 | #include "console.h" |
30 | 31 | ||
@@ -124,10 +125,10 @@ int main(int argc, char *argv[]) | |||
124 | query.syncOnDemand = false; | 125 | query.syncOnDemand = false; |
125 | query.processAll = false; | 126 | query.processAll = false; |
126 | query.liveQuery = true; | 127 | query.liveQuery = true; |
127 | query.requestedProperties << "summary" << "uid"; | 128 | query.requestedProperties << "name"; |
128 | 129 | ||
129 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); | 130 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Folder>(query); |
130 | auto view = QSharedPointer<View<Akonadi2::ApplicationDomain::Event> >::create(model.data()); | 131 | auto view = QSharedPointer<View<Akonadi2::ApplicationDomain::Folder> >::create(model.data()); |
131 | 132 | ||
132 | return app.exec(); | 133 | return app.exec(); |
133 | } | 134 | } |