Public Types |
enum | DeviceMajor {
Uncategorized,
Computer,
Phone,
LANAccess,
AudioVideo,
Peripheral,
Imaging,
Wearable,
Toy,
Miscellaneous
} |
typedef QList< QBtDevice > | List |
Signals |
void | nameChanged (QString newName) |
Public Member Functions |
| QBtDevice (QObject *parent=0) |
| QBtDevice (const QBtDevice &dev, QObject *parent=0) |
| QBtDevice (const QString &devName, const QBtAddress &devAddress, DeviceMajor devType, QObject *parent=0) |
| ~QBtDevice () |
void | addNewService (const QBtService &newService) |
void | setName (const QString &newName) |
void | setAddress (const QBtAddress &newAddress) |
void | setType (DeviceMajor newType) |
void | setSupportedServices (const QBtService::List &newSupportedServices) |
bool | serviceListUpdated () const |
Q_INVOKABLE QString | name () const |
Q_INVOKABLE QString | getName () const |
const QBtAddress & | getAddress () const |
DeviceMajor | getType () const |
QString | getTypeAsString () const |
const QBtService::List & | getSupportedServices () const |
QBtDevice & | operator= (const QBtDevice &dev) |
Properties |
QString | name |
QBtAddress | address |
DeviceMajor | type |
The class that contains all the information needed about any bluetooth device. Its main fields are 4.
a) QBtAddress address: It is the device's bluetooth address. Any communication between remote devices is made using this field so it is an essential information. No communication can be done without this.
b) QString name: The name of the device. By default this field is equal to QBtAddress.toString(). The actual name is retrieved from the device discovery and is set by the remote device as an identification string ID.
c) DeviceMajor type: an enumeration field characterizing the device type.
d) QBtService::List supportedServices: this field is updated after calling QBtServiceDiscoverer::startDiscovery(QBtDevice*) (if any services are found through SDP)