Hospital Analyser  1.0
hostdeviceinfo.h
1 #ifndef HOSTDEVICEINFO_H
2 #define HOSTDEVICEINFO_H
3 
4 #include <QBluetoothLocalDevice>
5 #include <QObject>
6 
10 class HostDeviceInfo : public QObject
11 {
12  Q_OBJECT
13  Q_PROPERTY(bool alive READ alive NOTIFY deviceChanged)
14 
15 public:
16  HostDeviceInfo(QObject *parent = 0);
17 
18 
23  bool alive() const;
24 
25 signals:
29  void deviceChanged();
30 
31 private slots:
32  void hostModeChanged(QBluetoothLocalDevice::HostMode mode);
33 
34 private:
35  QBluetoothLocalDevice m_localDevice;
36 
37 };
38 
39 #endif // HOSTDEVICEINFO_H
bool alive() const
alive Manages alive property, providing info about host device Bluetooth status
HostDeviceInfo(QObject *parent=0)
HostDeviceInfo::HostDeviceInfo class constructor, connects Qt Slots and Signals.
Definition: hostdeviceinfo.cpp:7
The HostDeviceInfo class returns information about master device.
Definition: hostdeviceinfo.h:10
void deviceChanged()
deviceChanged Emits signal when Bluetooth state changes