Traffic information classes. Mostly stubs.
[yandex-traffic] / tests / traffic / mainwindow.hpp
1 #ifndef __MAINWINDOW_H__
2 #define __MAINWINDOW_H__
3
4 #include <QtGui>
5 #include <traffic.hpp>
6
7
8 class MainWindow : public QPushButton
9 {
10     Q_OBJECT
11
12 private:
13     Traffic _traffic;
14
15 protected slots:
16     void fetchTraffic ()
17     {
18         printf ("Clicked\n");
19     }
20
21 public:
22     MainWindow ()
23         : QPushButton ()
24     {
25         connect (this, SIGNAL (clicked ()), this, SLOT (fetchTraffic ()));
26         setText ("Push me");
27     }
28 };
29
30
31 #endif // __MAINWINDOW_H__