Added new file: gpsdata, maemo5location, maemo5locationprivate.
[speedfreak] / Client / maemo5location.h
1 /*
2  * Maemo5Location
3  *
4  * @author     Toni Jussila <toni.jussila@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef MAEMO5LOCATION_H
10 #define MAEMO5LOCATION_H
11
12 #include <QObject>
13
14 class Maemo5LocationPrivate;
15
16 class Maemo5Location : public QObject
17 {
18     Q_OBJECT
19 public:
20     Maemo5Location(QObject* parent = 0);
21     ~Maemo5Location();
22
23     int getSatellitesInUse();
24     int getSatellitesInView();
25     int getSignalStrength();
26     double getLatitude();
27     double getLongitude();
28     double getTime();
29     double getEpt();
30     double getEph();
31     double getAltitude();
32     double getEpv();
33     double getTrack();
34     double getEpd();
35     double getSpeed();
36     double getEps();
37     double getClimb();
38     double getEpc();
39     double distance_between_two_points(double latitude_s, double longitude_s, double latitude_f, double longitude_f);
40
41 signals:
42     void awcp();
43     void agnss();
44     void locationUpdated();
45     void gps_connected();
46     void gps_disconnected();
47     void gps_error(int error);
48     void gpsd_running();
49     void gpsd_stopped();
50
51 private:
52     Maemo5LocationPrivate* ptr;
53 };
54
55 #endif // MAEMO5LOCATION_H