summaryrefslogtreecommitdiff
path: root/hfpag.h
diff options
context:
space:
mode:
Diffstat (limited to 'hfpag.h')
-rw-r--r--hfpag.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/hfpag.h b/hfpag.h
new file mode 100644
index 0000000..46e326c
--- /dev/null
+++ b/hfpag.h
@@ -0,0 +1,28 @@
+#ifndef HFPAG_H
+#define HFPAG_H
+
+#include <QtConnectivity/QBluetoothSocket>
+
+QTM_USE_NAMESPACE
+
+class HfpAg : public QObject
+{
+ Q_OBJECT
+public:
+ explicit HfpAg(const QBluetoothAddress &addr, QObject *parent = 0);
+
+private:
+ void send(const QString& cmd);
+
+private slots:
+ void handleConnected();
+ void handleDisconnected();
+ void handleReadyRead();
+ void handleCommand(const QString &cmd);
+
+private:
+ QBluetoothSocket *_socket;
+ QByteArray _inBuf;
+};
+
+#endif // HFPAG_H