Check for device state on update.
[yandex-traffic] / connection.hpp
index 3d6bd8c..e2d7567 100644 (file)
@@ -20,6 +20,7 @@ public:
 private:
     bool _connected;
     network_type_t _net_type;
+    int _conn_counter;
 
     QDBusConnection _bus;
     QDBusInterface *_itf;
@@ -38,6 +39,8 @@ public:
     bool isConnected () const
     { return _connected; };
 
+    bool checkConnection (bool allow_gsm, bool allow_wifi);
+
     network_type_t network_type () const
     { return _net_type; };