summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-15 07:04:38 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-15 07:12:13 +0200
commit49f08fa2fadb3ff1340af02be27045e92566dd58 (patch)
tree790459634dbf37ff395112fc9b553481d6a355ab /common/resourcefacade.h
parent80d8ad9f3b10bb8ad3123d1b18f2cd2cd816d452 (diff)
downloadsink-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.h2
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;
68private: 68private:
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
75class ResourceFacade : public LocalStorageFacade<Sink::ApplicationDomain::SinkResource> 77class ResourceFacade : public LocalStorageFacade<Sink::ApplicationDomain::SinkResource>