ifdef for maemo
[googlelatitude] / src / gps.h
index ca5ea9d..2d9cfdf 100644 (file)
--- a/src/gps.h
+++ b/src/gps.h
@@ -3,6 +3,8 @@
 
 #include <QObject>
 
 
 #include <QObject>
 
+#ifdef Q_WS_MAEMO_5
+
 extern "C" {
 #include <location/location-gps-device.h>
 #include <location/location-gpsd-control.h>
 extern "C" {
 #include <location/location-gps-device.h>
 #include <location/location-gpsd-control.h>
@@ -33,4 +35,21 @@ private:
 
 void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
 
 
 void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
 
+#else // Q_WS_MAEMO_5
+
+class GpsMaemo5 : public QObject {
+    Q_OBJECT
+
+signals:
+    void fix();
+
+public:
+    GpsMaemo5(QObject *parent = 0) { Q_UNUSED(parent); }
+    double get_lat() { return 0; }
+    double get_lon() { return 0; }
+    double get_acc() { return 0; }
+};
+
+#endif // Q_WS_MAEMO_5
+
 #endif // GPS_H
 #endif // GPS_H