add some stuff
[googlelatitude] / src / latitudewidget.h
1 #ifndef LATITUDEWIDGET_H
2 #define LATITUDEWIDGET_H
3
4 #include <QWidget>
5 #include <QHBoxLayout>
6 #include <QFormLayout>
7 #include <QPushButton>
8 #include <QLineEdit>
9 #include <QFile>
10 #include <QDir>
11 #include <QTextStream>
12 #include <QTimer>
13 #include "googlelatitude.h"
14
15 class LatitudeWidget : public QWidget {
16     Q_OBJECT
17
18 public slots:
19     void get();
20     void gsetOK();
21     void gsetERROR();
22     void gset();
23
24 public:
25     LatitudeWidget();
26
27 private slots:
28     void set();
29     void save();
30     void load();
31
32 private:
33     GoogleLatitude glatitude;
34     // info
35     QString user;
36     QString pass;
37     double latitude;
38     double longitude;
39     double accuracy;
40     // gui
41     QWidget *menu;
42     QHBoxLayout *menu_layout;
43     // login
44     QFormLayout *login_layout;
45     QLineEdit *login_user;
46     QLineEdit *login_pass;
47     QPushButton *login_up;
48     // location
49     QFormLayout *location_layout;
50     QLineEdit *location_lat;
51     QLineEdit *location_lon;
52     QLineEdit *location_acc;
53     // stuff
54     QTimer *timer;
55 };
56
57 #endif // LATITUDEWIDGET_H