diff options
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) |