Check for device state on update.
[yandex-traffic] / main.cpp
1 #include <QtCore>
2 #include "qmaemo5homescreenadaptor.h"
3 #include "mainwidget.hpp"
4
5
6 int main(int argc, char *argv[])
7 {
8     QApplication::setGraphicsSystem ("native");
9     QApplication::setOrganizationName ("Shmuma");
10     QApplication::setApplicationName ("yandex-traffic-widget");
11
12     QApplication app (argc, argv);
13     MainWidget w;
14     QMaemo5HomescreenAdaptor *adaptor = new QMaemo5HomescreenAdaptor (&w);
15
16     w.connect (adaptor, SIGNAL (settingsRequested ()), SLOT (settingsDialog ()));
17
18     adaptor->setSettingsAvailable (true);
19
20     w.show ();
21
22     return app.exec ();
23 }
24