summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Services/service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/Caelestia/Services/service.hpp')
-rw-r--r--plugin/src/Caelestia/Services/service.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/plugin/src/Caelestia/Services/service.hpp b/plugin/src/Caelestia/Services/service.hpp
index 7980bdd..dac48760 100644
--- a/plugin/src/Caelestia/Services/service.hpp
+++ b/plugin/src/Caelestia/Services/service.hpp
@@ -1,28 +1,21 @@
#pragma once
-#include <qmutex.h>
#include <qobject.h>
+#include <qset.h>
namespace caelestia {
class Service : public QObject {
Q_OBJECT
- Q_PROPERTY(int refCount READ refCount NOTIFY refCountChanged)
-
public:
explicit Service(QObject* parent = nullptr);
- [[nodiscard]] int refCount() const;
-
- void ref();
- void unref();
-
-signals:
- void refCountChanged();
+ void ref(QObject* sender);
+ void unref(QObject* sender);
private:
- int m_refCount;
+ QSet<QObject*> m_refs;
virtual void start() = 0;
virtual void stop() = 0;