diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-07 11:05:03 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-07 11:05:03 +0200 |
commit | 12a87e1d6d5c0e4b5a5aacbfa880678629321c1d (patch) | |
tree | 69fa5db595fc6c6531b15195027bbfc0d3134fcc /examples/dummyresource/resourcefactory.cpp | |
parent | 61ab9866fa8ea5e26e5ce7d7cc265f5d8d65b277 (diff) | |
download | sink-12a87e1d6d5c0e4b5a5aacbfa880678629321c1d.tar.gz sink-12a87e1d6d5c0e4b5a5aacbfa880678629321c1d.zip |
Use the resource instance name
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index e244131..de13aa9 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -105,9 +105,8 @@ QMap<QString, QString> populate() | |||
105 | static QMap<QString, QString> s_dataSource = populate(); | 105 | static QMap<QString, QString> s_dataSource = populate(); |
106 | 106 | ||
107 | 107 | ||
108 | //FIXME We need to pass the resource-instance name to generic resource, not the plugin name | 108 | DummyResource::DummyResource(const QByteArray &instanceIdentifier) |
109 | DummyResource::DummyResource() | 109 | : Akonadi2::GenericResource(instanceIdentifier) |
110 | : Akonadi2::GenericResource(PLUGIN_NAME ".instance1") | ||
111 | { | 110 | { |
112 | } | 111 | } |
113 | 112 | ||
@@ -213,9 +212,9 @@ DummyResourceFactory::DummyResourceFactory(QObject *parent) | |||
213 | 212 | ||
214 | } | 213 | } |
215 | 214 | ||
216 | Akonadi2::Resource *DummyResourceFactory::createResource() | 215 | Akonadi2::Resource *DummyResourceFactory::createResource(const QByteArray &instanceIdentifier) |
217 | { | 216 | { |
218 | return new DummyResource(); | 217 | return new DummyResource(instanceIdentifier); |
219 | } | 218 | } |
220 | 219 | ||
221 | void DummyResourceFactory::registerFacades(Akonadi2::FacadeFactory &factory) | 220 | void DummyResourceFactory::registerFacades(Akonadi2::FacadeFactory &factory) |