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 /common | |
parent | 61ab9866fa8ea5e26e5ce7d7cc265f5d8d65b277 (diff) | |
download | sink-12a87e1d6d5c0e4b5a5aacbfa880678629321c1d.tar.gz sink-12a87e1d6d5c0e4b5a5aacbfa880678629321c1d.zip |
Use the resource instance name
Diffstat (limited to 'common')
-rw-r--r-- | common/genericresource.cpp | 4 | ||||
-rw-r--r-- | common/resource.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp index b6485d7..139ae98 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp | |||
@@ -155,8 +155,8 @@ private: | |||
155 | 155 | ||
156 | GenericResource::GenericResource(const QByteArray &resourceInstanceIdentifier) | 156 | GenericResource::GenericResource(const QByteArray &resourceInstanceIdentifier) |
157 | : Akonadi2::Resource(), | 157 | : Akonadi2::Resource(), |
158 | mUserQueue(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/akonadi2/storage", "org.kde." + resourceInstanceIdentifier + ".userqueue"), | 158 | mUserQueue(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/akonadi2/storage", resourceInstanceIdentifier + ".userqueue"), |
159 | mSynchronizerQueue(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/akonadi2/storage", "org.kde." + resourceInstanceIdentifier + ".synchronizerqueue"), | 159 | mSynchronizerQueue(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/akonadi2/storage", resourceInstanceIdentifier + ".synchronizerqueue"), |
160 | mResourceInstanceIdentifier(resourceInstanceIdentifier), | 160 | mResourceInstanceIdentifier(resourceInstanceIdentifier), |
161 | mError(0) | 161 | mError(0) |
162 | { | 162 | { |
diff --git a/common/resource.h b/common/resource.h index ea1e9d8..ebbc2e1 100644 --- a/common/resource.h +++ b/common/resource.h | |||
@@ -58,7 +58,7 @@ public: | |||
58 | ResourceFactory(QObject *parent); | 58 | ResourceFactory(QObject *parent); |
59 | virtual ~ResourceFactory(); | 59 | virtual ~ResourceFactory(); |
60 | 60 | ||
61 | virtual Resource *createResource() = 0; | 61 | virtual Resource *createResource(const QByteArray &instanceIdentifier) = 0; |
62 | virtual void registerFacades(FacadeFactory &factory) = 0; | 62 | virtual void registerFacades(FacadeFactory &factory) = 0; |
63 | 63 | ||
64 | private: | 64 | private: |