diff options
Diffstat (limited to 'gatocentralmanager_p.h')
-rw-r--r-- | gatocentralmanager_p.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gatocentralmanager_p.h b/gatocentralmanager_p.h new file mode 100644 index 0000000..62ef954 --- /dev/null +++ b/gatocentralmanager_p.h @@ -0,0 +1,32 @@ +#ifndef GATOCENTRALMANAGER_P_H +#define GATOCENTRALMANAGER_P_H + +#include <QtCore/QSocketNotifier> + +#include <bluetooth/bluetooth.h> +#include <bluetooth/hci.h> + +#include "gatocentralmanager.h" +#include "gatoaddress.h" + +class GatoCentralManagerPrivate +{ + Q_DECLARE_PUBLIC(GatoCentralManager) + + GatoCentralManager *q_ptr; + int dev_id; + int timeout; + int hci; + QSocketNotifier *notifier; + QList<GatoUUID> filter_uuids; + hci_filter hci_nf, hci_of; + QHash<GatoAddress, GatoPeripheral*> peripherals; + + bool scanning(); + bool openDevice(); + void closeDevice(); + + void handleAdvertising(le_advertising_info *info, int rssi); +}; + +#endif // GATOCENTRALMANAGER_P_H |