1 #ifndef __MAINWINDOW_H__
2 #define __MAINWINDOW_H__
8 class MainWindow : public QPushButton
18 printf ("Traffic update requested\n");
22 void trafficUpdated ()
26 printf ("Traffic data updated:\n");
27 printf ("ts: %s\n", _traffic.ts ().toString ().toUtf8 ().data ());
29 info = _traffic.lookup_ext ("1");
30 printf ("Moscow: %d, %d, %s\n", info.level (), info.tend (), info.hint ().toUtf8 ().data ());
37 connect (this, SIGNAL (clicked ()), this, SLOT (fetchTraffic ()));
38 connect (&_traffic, SIGNAL (updated ()), this, SLOT (trafficUpdated ()));
39 setText ("Fetch traffic information");
44 #endif // __MAINWINDOW_H__