Added custom button for users dialog and changed place of www-button. Www-button...
[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     void startPollingGPS();
24     void stopPollingGPS();
25     int getSatellitesInUse();
26     int getSatellitesInView();
27     int getSignalStrength();
28     bool getGpsOnline();
29     double getLatitude();
30     double getLongitude();
31     double getTime();
32     double getEpt();
33     double getEph();
34     double getAltitude();
35     double getEpv();
36     double getTrack();
37     double getEpd();
38     double getSpeed();
39     double getEps();
40     double getClimb();
41     double getEpc();
42     double distance_between_two_points(double latitude_s, double longitude_s, double latitude_f, double longitude_f);
43
44 signals:
45     void awcp();
46     void agnss();
47     void locationUpdated();
48     void gps_connected();
49     void gps_disconnected();
50     void gps_error(int);
51     void gpsd_running();
52     void gpsd_stopped();
53
54 private:
55     Maemo5LocationPrivate* ptr;
56 };
57
58 #endif // MAEMO5LOCATION_H