summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/service.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-13 14:38:44 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-13 14:38:44 +1000
commit306cfc06ed38a2f86616c1f2fe64de45321f21a6 (patch)
treea27c79d9c4d01c2dadeeae74c844875ab7ab4eed /plugin/src/Caelestia/service.hpp
parentpopouts/tray: better interaction (diff)
downloadcaelestia-shell-306cfc06ed38a2f86616c1f2fe64de45321f21a6.tar.gz
caelestia-shell-306cfc06ed38a2f86616c1f2fe64de45321f21a6.tar.bz2
caelestia-shell-306cfc06ed38a2f86616c1f2fe64de45321f21a6.zip
plugin: refactor into modules
Diffstat (limited to 'plugin/src/Caelestia/service.hpp')
-rw-r--r--plugin/src/Caelestia/service.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/plugin/src/Caelestia/service.hpp b/plugin/src/Caelestia/service.hpp
deleted file mode 100644
index 787818b..0000000
--- a/plugin/src/Caelestia/service.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-#include <qmutex.h>
-#include <qobject.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();
-
-private:
- int m_refCount;
- mutable QMutex m_mutex;
-
- virtual void start() = 0;
- virtual void stop() = 0;
-};
-
-} // namespace caelestia