Added theme scheduler, poi support and speed alarm features.
[jspeed] / src / main.cpp
1 /*
2  * This file is part of jSpeed.
3  *
4  * jSpeed is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * jSpeed is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with jSpeed.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18
19 #include <QtCore/QObject>
20 #include <QtGui/QApplication>
21 #include "mainwindow.h"
22
23 #include "poiascreader.h"
24 #include <QtCore/QDebug>
25 #include "poialerts.h"
26
27 int main(int argc, char *argv[])
28 {
29     QApplication app(argc, argv);
30
31    /* PoiAscReader reader("/home/maemo/workspace/jspeed/test.asc");
32
33     QList<PoiAscReader::Poi> pois;
34
35     if(reader.read(pois))
36     {
37         qDebug() << "Kyl";
38
39        for(int i = 0; i < pois.size(); i++)
40         {
41             qDebug() << pois.at(i).latitude << pois.at(i).longitude << pois.at(i).name;
42         }
43     }
44     else
45     {
46         qDebug() << "Ei";
47     }*/
48
49     //PoiAlerts::instance().startTest();
50
51     MainWindow window;
52
53     QObject::connect(&window, SIGNAL(quit()), &app, SLOT(quit()));
54
55     window.show();
56
57     return app.exec();
58 }