mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
25 lines
392 B
C++
25 lines
392 B
C++
#pragma once
|
|
|
|
#include <qobject.h>
|
|
#include <qset.h>
|
|
|
|
namespace caelestia::services {
|
|
|
|
class Service : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Service(QObject* parent = nullptr);
|
|
|
|
void ref(QObject* sender);
|
|
void unref(QObject* sender);
|
|
|
|
private:
|
|
QSet<QObject*> m_refs;
|
|
|
|
virtual void start() = 0;
|
|
virtual void stop() = 0;
|
|
};
|
|
|
|
} // namespace caelestia::services
|