1 #ifndef __CONNECTION_H__
2 #define __CONNECTION_H__
8 // Singleton, which listens for ICD DBUS events about connection change
9 class ConnectionChecker : public QObject
22 network_type_t _net_type;
30 void updateState (bool new_state, const QString& net_type = QString ());
33 void stateSignal (const QDBusMessage& msg);
36 static ConnectionChecker *instance ();
38 bool isConnected () const
39 { return _connected; };
41 network_type_t network_type () const
42 { return _net_type; };
47 void connected (bool active);
48 void type_changed (ConnectionChecker::network_type_t type);
51 #endif // __CONNECTION_H__