Changed the old code to work as a daemon
[googlelatitude] / src / daemon / latitude-backup.h
diff --git a/src/daemon/latitude-backup.h b/src/daemon/latitude-backup.h
new file mode 100644 (file)
index 0000000..13aa6ea
--- /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 QObject {
+    Q_OBJECT
+
+signals:
+    void newpos();
+
+public:
+    LatitudeGUI(QObject *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