diff options
Diffstat (limited to 'src/bus.h')
-rw-r--r-- | src/bus.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3,22 +3,24 @@ #include <QObject> +class QDBusConnection; + class Bus : public QObject { Q_OBJECT public: bool registerListener(); - bool registerService(); + bool registerService(); inline static Bus* inst() { if (_instance == nullptr) _instance = new Bus(); return _instance; } signals: - void serviceConnected(); + void serviceConnected(bool sessionBus); private: - explicit Bus(QObject *parent = nullptr); + explicit Bus(QObject *parent = nullptr); bool _hasListener; static Bus *_instance; }; |