be compatible with qt 4.6/4.5
[googlelatitude] / src / glatitude.h
index b752c81..498b454 100644 (file)
@@ -7,17 +7,15 @@ class GoogleLatitude : public QObject {
     Q_OBJECT
 
 signals:
-    void setOK();
-    void setERROR();
-    void getOK();
-
-public slots:
-    void get();
+    void OK();
+    void ERROR();
 
 public:
     GoogleLatitude(QObject *parent = 0);
     void login(QString username, QString password);
-    void set(double latitude, double longitude, double accuracy=1000.);
+    void set(double la, double lo, double ac=1000.);
+    void freq(int f=120);
+    void reset();
     double get_lat() { return latitude; }
     double get_lon() { return longitude; }
     double get_acc() { return accuracy; }
@@ -32,12 +30,14 @@ private:
     double latitude;
     double longitude;
     double accuracy;
+    int interval;
     // stuff
     QNetworkAccessManager *worker;
     QUrl urllogin;
     QUrl urldologin;
     QUrl urlupdate;
-    QUrl urlloc;
+    unsigned int lastupdate;
+    bool login_error;
 };
 
 #endif // GLATITUDE_H