summaryrefslogtreecommitdiff
path: root/sapbtpeer.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-01-01 22:05:42 +0100
committerJavier <dev.git@javispedro.com>2016-01-01 22:05:42 +0100
commita45977185a485624095bff1a15024e9199eee676 (patch)
tree6cc57d085bdd01e493477c870dbe0548137998e1 /sapbtpeer.h
parenta24034bdfea259cdc09c74217be75d4f9de0dce5 (diff)
downloadsapd-a45977185a485624095bff1a15024e9199eee676.tar.gz
sapd-a45977185a485624095bff1a15024e9199eee676.zip
reorganize source files into SAP and agents
Diffstat (limited to 'sapbtpeer.h')
-rw-r--r--sapbtpeer.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/sapbtpeer.h b/sapbtpeer.h
deleted file mode 100644
index 75af77f..0000000
--- a/sapbtpeer.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef SAPBTPEER_H
-#define SAPBTPEER_H
-
-#include <QtCore/QObject>
-#include <QtBluetooth/QBluetoothSocket>
-
-#include "sappeer.h"
-
-class SAPBTPeer : public SAPPeer
-{
- Q_OBJECT
-
-public:
- SAPBTPeer(SAProtocol::Role role, QBluetoothSocket *socket, QObject *parent = 0);
-
-protected:
- void sendFrame(const QByteArray &data);
-
-private slots:
- void handleSocketData();
- void handleSocketDisconnected();
-
-private:
- void handleFrame(const QByteArray &data);
- void handleDataFrame(const SAProtocol::Frame &frame);
- void handleControlFrame(const SAProtocol::Frame &frame);
- void handleAuthenticationFrame(const QByteArray &data);
-
-private:
- QBluetoothSocket *_socket;
- uint _curFrameLength;
- bool _peerDescriptionExchangeDone : 1;
- bool _authenticationDone : 1;
-};
-
-#endif // SAPBTPEER_H