1 #ifndef MAEMO5LOCATIONPRIVATE_H
2 #define MAEMO5LOCATIONPRIVATE_H
4 //We have to declare these header file inside extern, since these modules are actually c modules not c++
7 #include <location-gps-device.h>
8 #include <location-gpsd-control.h>
12 #include "maemo5location.h"
14 class Maemo5LocationPrivate : public QObject
18 Maemo5LocationPrivate(Maemo5Location* location);
19 ~Maemo5LocationPrivate();
22 friend void gps_data_changed(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
23 friend void gps_data_connected(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
24 double get_lat() { return latitude; }
25 double get_lon() { return longitude; }
29 void locationUpdated();
39 Maemo5Location* d_ptr;
42 LocationGPSDControl *control;
43 LocationGPSDevice *device;
46 void gps_data_changed(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
47 void gps_data_connected(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
48 #endif // MAEMO5LOCATIONPRIVATE_H