X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=src%2Flatitudewidget.h;fp=src%2Flatitudewidget.h;h=36f16393f7d25013ed449fe8bc92c9a96356b4eb;hp=0000000000000000000000000000000000000000;hb=e5e536e85f6171ecccdb99a083d9415d0dd61e98;hpb=2328b7b0efd10c9340c89a519935d5b6b03fb16c diff --git a/src/latitudewidget.h b/src/latitudewidget.h new file mode 100644 index 0000000..36f1639 --- /dev/null +++ b/src/latitudewidget.h @@ -0,0 +1,57 @@ +#ifndef LATITUDEWIDGET_H +#define LATITUDEWIDGET_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "googlelatitude.h" + +class LatitudeWidget : public QWidget { + Q_OBJECT + +public slots: + void get(); + void gsetOK(); + void gsetERROR(); + void gset(); + +public: + LatitudeWidget(); + +private slots: + void set(); + void save(); + void load(); + +private: + GoogleLatitude glatitude; + // info + QString user; + QString pass; + double latitude; + double longitude; + double accuracy; + // gui + QWidget *menu; + QHBoxLayout *menu_layout; + // login + QFormLayout *login_layout; + QLineEdit *login_user; + QLineEdit *login_pass; + QPushButton *login_up; + // location + QFormLayout *location_layout; + QLineEdit *location_lat; + QLineEdit *location_lon; + QLineEdit *location_acc; + // stuff + QTimer *timer; +}; + +#endif // LATITUDEWIDGET_H