diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-15 07:04:38 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-15 07:12:13 +0200 |
commit | 49f08fa2fadb3ff1340af02be27045e92566dd58 (patch) | |
tree | 790459634dbf37ff395112fc9b553481d6a355ab /common/resourcefacade.h | |
parent | 80d8ad9f3b10bb8ad3123d1b18f2cd2cd816d452 (diff) | |
download | sink-49f08fa2fadb3ff1340af02be27045e92566dd58.tar.gz sink-49f08fa2fadb3ff1340af02be27045e92566dd58.zip |
Fixed LocalStorageFacade.
We can't make any assumptions about the lifetime of the facade, so make
sure we have all we need in the lambda.
Diffstat (limited to 'common/resourcefacade.h')
-rw-r--r-- | common/resourcefacade.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/resourcefacade.h b/common/resourcefacade.h index 7c9fd13..989375d 100644 --- a/common/resourcefacade.h +++ b/common/resourcefacade.h | |||
@@ -67,9 +67,11 @@ public: | |||
67 | virtual QPair<KAsync::Job<void>, typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE; | 67 | virtual QPair<KAsync::Job<void>, typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE; |
68 | private: | 68 | private: |
69 | typename DomainType::Ptr readFromConfig(const QByteArray &id, const QByteArray &type); | 69 | typename DomainType::Ptr readFromConfig(const QByteArray &id, const QByteArray &type); |
70 | static typename DomainType::Ptr readFromConfig(ConfigStore &store, const QByteArray &id, const QByteArray &type); | ||
70 | 71 | ||
71 | ConfigStore mConfigStore; | 72 | ConfigStore mConfigStore; |
72 | static ConfigNotifier sConfigNotifier; | 73 | static ConfigNotifier sConfigNotifier; |
74 | QByteArray mResourceInstanceIdentifier; | ||
73 | }; | 75 | }; |
74 | 76 | ||
75 | class ResourceFacade : public LocalStorageFacade<Sink::ApplicationDomain::SinkResource> | 77 | class ResourceFacade : public LocalStorageFacade<Sink::ApplicationDomain::SinkResource> |