diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:13:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:13:47 +0200 |
commit | 529db49c496f4f668cec3f7c59d2d0ec78c50c9a (patch) | |
tree | b7622a54b4063f4dc735a8b4061525148377b6c9 /common/resourcefacade.h | |
parent | 577c2c344079c1a87d3d93be5f957e5f2d935bff (diff) | |
download | sink-529db49c496f4f668cec3f7c59d2d0ec78c50c9a.tar.gz sink-529db49c496f4f668cec3f7c59d2d0ec78c50c9a.zip |
Don't hardcode the type property.
Diffstat (limited to 'common/resourcefacade.h')
-rw-r--r-- | common/resourcefacade.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/resourcefacade.h b/common/resourcefacade.h index b87a396..d259d4f 100644 --- a/common/resourcefacade.h +++ b/common/resourcefacade.h | |||
@@ -59,7 +59,7 @@ template <typename DomainType> | |||
59 | class LocalStorageQueryRunner | 59 | class LocalStorageQueryRunner |
60 | { | 60 | { |
61 | public: | 61 | public: |
62 | LocalStorageQueryRunner(const Sink::Query &query, const QByteArray &identifier, ConfigNotifier &configNotifier); | 62 | LocalStorageQueryRunner(const Sink::Query &query, const QByteArray &identifier, const QByteArray &typeName, ConfigNotifier &configNotifier); |
63 | typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr emitter(); | 63 | typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr emitter(); |
64 | void setStatusUpdater(const std::function<void(DomainType &)> &); | 64 | void setStatusUpdater(const std::function<void(DomainType &)> &); |
65 | void statusChanged(const QByteArray &identifier); | 65 | void statusChanged(const QByteArray &identifier); |
@@ -77,7 +77,7 @@ template <typename DomainType> | |||
77 | class LocalStorageFacade : public Sink::StoreFacade<DomainType> | 77 | class LocalStorageFacade : public Sink::StoreFacade<DomainType> |
78 | { | 78 | { |
79 | public: | 79 | public: |
80 | LocalStorageFacade(const QByteArray &instanceIdentifier); | 80 | LocalStorageFacade(const QByteArray &instanceIdentifier, const QByteArray &typeName); |
81 | virtual ~LocalStorageFacade(); | 81 | virtual ~LocalStorageFacade(); |
82 | virtual KAsync::Job<void> create(const DomainType &resource) Q_DECL_OVERRIDE; | 82 | virtual KAsync::Job<void> create(const DomainType &resource) Q_DECL_OVERRIDE; |
83 | virtual KAsync::Job<void> modify(const DomainType &resource) Q_DECL_OVERRIDE; | 83 | virtual KAsync::Job<void> modify(const DomainType &resource) Q_DECL_OVERRIDE; |
@@ -86,6 +86,7 @@ public: | |||
86 | 86 | ||
87 | protected: | 87 | protected: |
88 | QByteArray mIdentifier; | 88 | QByteArray mIdentifier; |
89 | QByteArray mTypeName; | ||
89 | static ConfigNotifier sConfigNotifier; | 90 | static ConfigNotifier sConfigNotifier; |
90 | }; | 91 | }; |
91 | 92 | ||