blob: 40acbdbb2fa2234571c8c5bc850e993d728ef01b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef HFPAG_H
#define HFPAG_H
#include <QtCore/QObject>
#include <QtBluetooth/QBluetoothSocket>
class HfpAg : public QObject
{
Q_OBJECT
public:
explicit HfpAg(const QBluetoothAddress &addr, QObject *parent = 0);
~HfpAg();
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
|