23 #ifndef SIGNON_CONNECTION_MANAGER_H
24 #define SIGNON_CONNECTION_MANAGER_H
26 #include <QDBusConnection>
29 class QDBusPendingCallWatcher;
37 enum SocketConnectionStatus {
38 SocketConnectionOk = 0,
39 SocketConnectionUnavailable,
40 SocketConnectionNoService
44 ServiceStatusUnknown = 0,
55 bool hasConnection()
const;
56 const QDBusConnection &connection()
const {
return m_connection; }
57 static const QDBusConnection &get() {
return instance()->connection(); }
63 void connected(
const QDBusConnection &connection);
67 SocketConnectionStatus setupSocketConnection();
71 void onActivationDone(QDBusPendingCallWatcher *watcher);
72 void onDisconnected();
75 QDBusConnection m_connection;
76 ServiceStatus m_serviceStatus;