summaryrefslogtreecommitdiffstats
path: root/src/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bus.h')
-rw-r--r--src/bus.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bus.h b/src/bus.h
index f98ee65..34da9ac 100644
--- a/src/bus.h
+++ b/src/bus.h
@@ -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;
};