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;
31 void updateState (bool new_state, const QString& net_type = QString ());
34 void stateSignal (const QDBusMessage& msg);
37 static ConnectionChecker *instance ();
39 bool isConnected () const
40 { return _connected; };
42 bool checkConnection (bool allow_gsm, bool allow_wifi);
44 network_type_t network_type () const
45 { return _net_type; };
50 void connected (bool active);
51 void type_changed (ConnectionChecker::network_type_t type);
54 #endif // __CONNECTION_H__