Revert "Changed the old code to work as a daemon"
[googlelatitude] / src / latitude.h
diff --git a/src/latitude.h b/src/latitude.h
new file mode 100644 (file)
index 0000000..4f2362d
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef LATITUDE_H
+#define LATITUDE_H
+
+#include <QtGui>
+#include <QtWebKit>
+#include "glatitude.h"
+#include "gps.h"
+#ifdef Q_WS_MAEMO_5
+#include <QtMaemo5>
+#endif
+
+class LatitudeGUI : public QMainWindow {
+    Q_OBJECT
+
+signals:
+    void newpos();
+
+public:
+    LatitudeGUI(QMainWindow *parent = 0);
+
+private slots:
+    void set();
+    void latitude_OK();
+    void latitude_ERROR();
+    void save_user(QString);
+    void save_pass(QString);
+    void maps_login();
+    void mode_buzz();
+    void mode_latitude();
+
+private:
+    GoogleLatitude *glatitude;
+    GpsMaemo5 *gps;
+    QSettings *setting;
+    QWebView *maps;
+    QUrl url;
+};
+
+#endif // LATITUDE_H