diff options
Diffstat (limited to 'examples/dummyresource/resourcefacade.cpp')
-rw-r--r-- | examples/dummyresource/resourcefacade.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dummyresource/resourcefacade.cpp b/examples/dummyresource/resourcefacade.cpp index 1090757..af0ebe6 100644 --- a/examples/dummyresource/resourcefacade.cpp +++ b/examples/dummyresource/resourcefacade.cpp | |||
@@ -65,20 +65,20 @@ KAsync::Job<void> DummyResourceConfigFacade::remove(const Akonadi2::ApplicationD | |||
65 | return KAsync::null<void>(); | 65 | return KAsync::null<void>(); |
66 | } | 66 | } |
67 | 67 | ||
68 | KAsync::Job<void> DummyResourceConfigFacade::load(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::ResultProviderInterface<typename Akonadi2::ApplicationDomain::AkonadiResource::Ptr> > &resultProvider) | 68 | KAsync::Job<void> DummyResourceConfigFacade::load(const Akonadi2::Query &query, Akonadi2::ResultProviderInterface<typename Akonadi2::ApplicationDomain::AkonadiResource::Ptr> &resultProvider) |
69 | { | 69 | { |
70 | //Read configuration and list all available instances. | 70 | //Read configuration and list all available instances. |
71 | //This includes runtime information about runing instances etc. | 71 | //This includes runtime information about runing instances etc. |
72 | //Part of this is generic, and part is accessing the resource specific configuration. | 72 | //Part of this is generic, and part is accessing the resource specific configuration. |
73 | //FIXME this currently does not support live queries (because we're not inheriting from GenericFacade) | 73 | //FIXME this currently does not support live queries (because we're not inheriting from GenericFacade) |
74 | //FIXME only read what was requested in the query? | 74 | //FIXME only read what was requested in the query? |
75 | return KAsync::start<void>([resultProvider, this]() { | 75 | return KAsync::start<void>([&resultProvider, this]() { |
76 | auto settings = getSettings(); | 76 | auto settings = getSettings(); |
77 | auto memoryAdaptor = QSharedPointer<Akonadi2::ApplicationDomain::MemoryBufferAdaptor>::create(); | 77 | auto memoryAdaptor = QSharedPointer<Akonadi2::ApplicationDomain::MemoryBufferAdaptor>::create(); |
78 | //TODO copy settings to adaptor | 78 | //TODO copy settings to adaptor |
79 | // | 79 | // |
80 | //TODO use correct instance identifier | 80 | //TODO use correct instance identifier |
81 | //TODO key == instance identifier ? | 81 | //TODO key == instance identifier ? |
82 | resultProvider->add(QSharedPointer<Akonadi2::ApplicationDomain::AkonadiResource>::create("org.kde.dummy.instance1", "org.kde.dummy.config", 0, memoryAdaptor)); | 82 | resultProvider.add(QSharedPointer<Akonadi2::ApplicationDomain::AkonadiResource>::create("org.kde.dummy.instance1", "org.kde.dummy.config", 0, memoryAdaptor)); |
83 | }); | 83 | }); |
84 | } | 84 | } |