projects
/
googlelatitude
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thanks to joppu for the icons...
[googlelatitude]
/
src
/
gps.h
diff --git
a/src/gps.h
b/src/gps.h
index
7f119c4
..
45c9cbb
100644
(file)
--- a/
src/gps.h
+++ b/
src/gps.h
@@
-1,30
+1,50
@@
#ifndef GPS_H
#define GPS_H
#ifndef GPS_H
#define GPS_H
+#ifdef LIBLOCATION
+
#include <QObject>
#include <QObject>
-class gps : public QObject {
+extern "C" {
+#include <location/location-gps-device.h>
+#include <location/location-gpsd-control.h>
+}
+
+class GpsMaemo5 : public QObject {
Q_OBJECT
signals:
Q_OBJECT
signals:
+ void getOK();
+ void getOK_acwp();
+ void getOK_agnss();
public slots:
public slots:
- void get();
+ void get_acwp();
+ void get_agnss();
public:
public:
- gps(QObject *parent = 0);
+ GpsMaemo5(QObject *parent = 0);
double get_lat() { return latitude; }
double get_lon() { return longitude; }
double get_acc() { return accuracy; }
double get_lat() { return latitude; }
double get_lon() { return longitude; }
double get_acc() { return accuracy; }
- void set_acwp();
- void set_agnss();
- void start();
void stop();
void stop();
+ void restart();
+ friend void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
private:
double latitude;
double longitude;
double accuracy;
private:
double latitude;
double longitude;
double accuracy;
+
+ int usegps;
+
+ GMainLoop *loop;
+ LocationGPSDControl *control;
+ LocationGPSDevice *device;
+
};
};
+void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
+
+#endif
#endif // GPS_H
#endif // GPS_H