summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/gps.h
authormickeyl <mickeyl>2003-09-09 13:42:04 (UTC)
committer mickeyl <mickeyl>2003-09-09 13:42:04 (UTC)
commit807165ababca1b8c93b88d6b41f75ec96ce5e799 (patch) (side-by-side diff)
tree5042886f052d34d7d79bf4e784f87cbad171c86c /noncore/net/wellenreiter/gui/gps.h
parentfca4c73a5f0c672db9150f312eb85f1299e80e1b (diff)
downloadopie-807165ababca1b8c93b88d6b41f75ec96ce5e799.zip
opie-807165ababca1b8c93b88d6b41f75ec96ce5e799.tar.gz
opie-807165ababca1b8c93b88d6b41f75ec96ce5e799.tar.bz2
reading GPS data from gpsd is now working. TODO: save the data
Diffstat (limited to 'noncore/net/wellenreiter/gui/gps.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/gps.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/gps.h b/noncore/net/wellenreiter/gui/gps.h
index ad0b6de..8143fe4 100644
--- a/noncore/net/wellenreiter/gui/gps.h
+++ b/noncore/net/wellenreiter/gui/gps.h
@@ -19,6 +19,15 @@
#include <qobject.h>
#include <qsocket.h>
+struct GpsLocation
+{
+ GpsLocation( const float& lat, const float& lon ) : latitude(lat), longitude(lon) {};
+ ~GpsLocation() {};
+ float latitude;
+ float longitude;
+};
+
+
class GPS : public QObject
{
Q_OBJECT
@@ -28,8 +37,7 @@ class GPS : public QObject
~GPS();
bool open( const QString& host = "localhost", int port = 2947 );
- float latitude() const;
- float longitute() const;
+ GpsLocation position() const;
private:
QSocket* _socket;