C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
25 lines
367 B
C++
25 lines
367 B
C++
#pragma once
|
|
|
|
#include <qobject.h>
|
|
#include <qset.h>
|
|
|
|
namespace ZShell::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 ZShell::services
|