summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/gps.h
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/gps.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/gps.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/gps.h b/noncore/net/wellenreiter/gui/gps.h
index e7c3dce..ad0b6de 100644
--- a/noncore/net/wellenreiter/gui/gps.h
+++ b/noncore/net/wellenreiter/gui/gps.h
@@ -16,4 +16,23 @@
#ifndef GPS_H
#define GPS_H
+#include <qobject.h>
+#include <qsocket.h>
+
+class GPS : public QObject
+{
+ Q_OBJECT
+
+ public:
+ GPS( QObject* parent = 0, const char * name = "GPS" );
+ ~GPS();
+
+ bool open( const QString& host = "localhost", int port = 2947 );
+ float latitude() const;
+ float longitute() const;
+
+ private:
+ QSocket* _socket;
+};
+
#endif // GPS_H