Changed the old code to work as a daemon
[googlelatitude] / src / daemon / latitude.h
1 #ifndef LATITUDE_H
2 #define LATITUDE_H
3
4 #include <QtGui>
5 #include <QtWebKit>
6 #include "glatitude.h"
7 #include "gps.h"
8 #ifdef Q_WS_MAEMO_5
9 #include <QtMaemo5>
10 #endif
11
12 class LatitudeGUI : public QMainWindow {
13     Q_OBJECT
14
15 signals:
16     void newpos();
17
18 public:
19     LatitudeGUI(QSettings *set, QWidget *parent = 0);
20     void reparseConfiguration();
21
22 protected:
23     void loadSettings();
24
25 private slots:
26 #ifdef Q_WS_MAEMO_5
27     void enableServices();
28     void disableServices();
29 #endif
30     void set();
31     void latitude_OK();
32     void latitude_ERROR();
33     void save_user(QString);
34     void save_pass(QString);
35     void maps_login();
36     void mode_buzz();
37     void mode_latitude();
38
39 private:
40     GoogleLatitude *glatitude;
41     GpsMaemo5 *gps;
42     QSettings *settings;
43     QWebView *maps;
44     QUrl url;
45 #ifdef Q_WS_MAEMO_5
46     LocationGPSDControlInterval location_interval;
47     LocationGPSDControlMethod location_method;
48 #endif
49     bool loginOk;
50 };
51
52 #endif // LATITUDE_H