diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 17:37:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 17:37:39 +0100 |
commit | 8d5684292ef92f32487ba32df716a00c4a0841b5 (patch) | |
tree | 1af55d3216f79175a55c1890d75cef2ae1f041d0 /examples/client/main.cpp | |
parent | ef205affdb73bfdbef5830996e6336e583660fbc (diff) | |
download | sink-8d5684292ef92f32487ba32df716a00c4a0841b5.tar.gz sink-8d5684292ef92f32487ba32df716a00c4a0841b5.zip |
Loading data with the new model for the test client
Diffstat (limited to 'examples/client/main.cpp')
-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 | } |