Abort current connection (if any) with new request.
[yandex-traffic] / mainwidget.hpp
index ce894c6..20e86be 100644 (file)
@@ -21,22 +21,27 @@ private:
     TrafficLight* _light;
     QLabel* _label;
 
+    // Other stuff
+    QTimer *_timer;
+
 public:
     MainWidget ();
     virtual ~MainWidget ();
 
 public slots:
     void settingsDialog ();
+    void updateData ();
 
 protected:
+    bool event (QEvent *event);
     void paintEvent (QPaintEvent *event);
-    void timerEvent (QTimerEvent *event);
 
-    void updateData ();
     void updateSize ();
+    void applySettings ();
 
 protected slots:
     void trafficUpdated ();
+    void deviceLockChanged (bool locked);
 };
 
 #endif /* __MAINWIDGET_H__ */