summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-07 12:10:43 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-07 12:10:43 +0200
commit74610b153e6929d33ef61ebe6443c81dfd32d8a1 (patch)
tree6e9891f09fb558982030598c954702cde3cba145 /common/resourcefacade.h
parent7ac1e222090ecfaa27ea8de2950e8c98a5033137 (diff)
downloadsink-74610b153e6929d33ef61ebe6443c81dfd32d8a1.tar.gz
sink-74610b153e6929d33ef61ebe6443c81dfd32d8a1.zip
Disconnect one the object is gone.
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 2573b31..64e082f 100644
--- a/common/resourcefacade.h
+++ b/common/resourcefacade.h
@@ -63,12 +63,14 @@ public:
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);
66 QObject *guard() const;
66 67
67private: 68private:
68 void updateStatus(DomainType &entity); 69 void updateStatus(DomainType &entity);
69 std::function<void(DomainType &)> mStatusUpdater; 70 std::function<void(DomainType &)> mStatusUpdater;
70 QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr>> mResultProvider; 71 QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr>> mResultProvider;
71 ConfigStore mConfigStore; 72 ConfigStore mConfigStore;
73 std::unique_ptr<QObject> mGuard;
72}; 74};
73 75
74template <typename DomainType> 76template <typename DomainType>