![]() |
QBluetoothZero
2.0
|
#include <QBtUuid.h>
Public Member Functions | |
QBtUuid (QObject *parent=NULL) | |
QBtUuid (const QString &uuid) | |
QBtUuid (uint uuid) | |
QBtUuid (const QBtUuid &uuid) | |
void | set (uint uuid) |
void | set (const QString &uuid) |
uint | get () const |
void | get (uint &highWord1, uint &highWord2, uint &lowWord1, uint &lowWord2) const |
bool | isFull () const |
bool | isNull () const |
QString | toString () const |
void | clear () |
bool | operator== (const QBtUuid &obj) const |
bool | operator!= (const QBtUuid &obj) const |
QBtUuid & | operator= (class QBtUuid const &uuid) |
This class represents a UUID for Bluetooth, either in short format (16 or 32-bits) or full (128-bit).
QBtUuid::QBtUuid | ( | QObject * | parent = NULL | ) |
Constructs an empty instance.
QBtUuid::QBtUuid | ( | const QString & | uuid | ) |
Constructs an instance from a string representation.
Valid formats: XXXX XXXXXXXX XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
QBtUuid::QBtUuid | ( | uint | uuid | ) | [explicit] |
Constructs an instance from a short uuid representation, a 16-bit or 32-bit value.
QBtUuid::QBtUuid | ( | const QBtUuid & | uuid | ) |
Copy constructor
void QBtUuid::clear | ( | ) |
Resets to a null UUID.
uint QBtUuid::get | ( | ) | const |
If short uuid, returns the equivalent uint. If full uuid, returns 0.
void QBtUuid::get | ( | uint & | highWord1, |
uint & | highWord2, | ||
uint & | lowWord1, | ||
uint & | lowWord2 | ||
) | const |
If this is a full uuid, splits it four 32-bit values. If this is a short uuid, all values are set to zero.
bool QBtUuid::isFull | ( | ) | const |
If short format, returns the equivalent uint. If full uuid, returns 0.
bool QBtUuid::isNull | ( | ) | const |
Returns true if this is an empty instance.
bool QBtUuid::operator!= | ( | const QBtUuid & | obj | ) | const |
bool QBtUuid::operator== | ( | const QBtUuid & | obj | ) | const |
void QBtUuid::set | ( | uint | uuid | ) |
Sets as short UUID based on the supplied value. Assumed to be a 16-bit or 32-bit hexadecimal number.
void QBtUuid::set | ( | const QString & | uuid | ) |
Sets the uuid from a string representation.
Valid formats: XXXX XXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
QString QBtUuid::toString | ( | ) | const |
Returns a string representation.