1 #ifndef LATITUDEDAEMON_H
2 #define LATITUDEDAEMON_H
5 #include <QtCore/QCoreApplication>
6 #include "googlelatitude.h"
7 #include "gpscontrol.h"
9 class LatitudeDaemon : public QObject {
12 LatitudeDaemon(QObject *parent = 0);
19 qDebug() << "LatitudeDaemon::gl_GotToken()";
23 qDebug() << "LatitudeDaemon::gl_NotToken()";
24 QCoreApplication::exit();
27 qDebug() << "LatitudeDaemon::gl_needAuth()";
28 QCoreApplication::exit();
31 qDebug() << "LatitudeDaemon::get_gps()"
32 << gps.getCurrentLatitude()
33 << gps.getCurrentLongitude()
34 << gps.getCurrentAccuracy()
35 << gps.getCurrentTimestamp();
38 qDebug() << "LatitudeDaemon::set_latitude()"
39 << gps.getCurrentLatitude()
40 << gps.getCurrentLongitude()
41 << gps.getCurrentAccuracy()
42 << gps.getCurrentTimestamp();
43 latitude.setCurrentLocation(gps.getCurrentLatitude(),
44 gps.getCurrentLongitude(),
45 gps.getCurrentAccuracy());
46 latitude.sendCurrentLocation();
50 GoogleLatitude latitude;
54 #endif // LATITUDEDAEMON_H