From 3b5fc081c8d22fac73db0fbe63eb2058595d43f6 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 29 Jun 2014 17:32:54 +0200 Subject: initial import --- bluetoothgpsserver.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 bluetoothgpsserver.h (limited to 'bluetoothgpsserver.h') diff --git a/bluetoothgpsserver.h b/bluetoothgpsserver.h new file mode 100644 index 0000000..db5c25b --- /dev/null +++ b/bluetoothgpsserver.h @@ -0,0 +1,41 @@ +#ifndef BLUETOOTHGPSSERVER_H +#define BLUETOOTHGPSSERVER_H + +#include +#include + +#include +#include +#include + +QT_USE_NAMESPACE_BLUETOOTH + +class NmeaSource; + +class BluetoothGpsServer : public QObject +{ + Q_OBJECT +public: + explicit BluetoothGpsServer(uint m_port, QObject *parent = 0); + ~BluetoothGpsServer(); + +signals: + +public slots: + void start(); + void stop(); + +protected slots: + void sendData(const QString& data); + void acceptConnection(); + void handleDisconnection(); + +private: + uint m_port; + NmeaSource* m_source; + QBluetoothServiceInfo m_service; + QRfcommServer* m_server; + QList m_clients; +}; + +#endif // BLUETOOTHGPSSERVER_H -- cgit v1.2.3