version 0.2
[googlelatitude] / src / latitude.h
1 #ifndef LATITUDE_H
2 #define LATITUDE_H
3
4 #include <QtGui>
5 #include <QtWebKit>
6 #include "glatitude.h"
7
8 class LatitudeGUI : public QMainWindow {
9     Q_OBJECT
10
11 public slots:
12
13 public:
14     LatitudeGUI(QMainWindow *parent = 0);
15
16 private slots:
17     void get();
18     void gsetOK();
19     void gsetERROR();
20     void set();
21     void showmap();
22     void showlat();
23     void save();
24
25 private:
26     GoogleLatitude *glatitude;
27     QSettings *setting;
28     QWebView *maps;
29     QWidget *location;
30
31     QLineEdit *login_user;
32     QLineEdit *login_pass;
33     QLineEdit *location_lat;
34     QLineEdit *location_lon;
35     QLineEdit *location_acc;
36
37     void do_maps();
38     QFormLayout *do_login();
39     QFormLayout *do_location();
40     void do_main();
41 };
42
43 #endif // LATITUDE_H