![]() |
QBluetoothZero
2.0
|
#include <QBtAddress.h>
Public Member Functions | |
QBtAddress () | |
QBtAddress (const QBtAddress &other) | |
QBtAddress (const QByteArray &byteArray) | |
QBtAddress (const QString &addr) | |
~QBtAddress () | |
bool | isValid () const |
QString | toString () const |
QByteArray | toByteArray () const |
QByteArray | toReversedByteArray () const |
QBtAddress & | operator= (const QBtAddress &other) |
bool | operator!= (const QBtAddress &other) |
bool | operator== (const QBtAddress &other) |
bool | operator< (const QBtAddress &other) |
Static Public Member Functions | |
static QBtAddress & | getAddressFromReversedArray (const QByteArray &reversedArray) |
Properties | |
QString | _address |
Class that represents the device's bluetooth _address. It is one of the main fields of QBtDevice.
QBtAddress::QBtAddress | ( | ) |
QBtAddress() Default constructor.
QBtAddress::QBtAddress | ( | const QBtAddress & | other | ) |
QBtAddress() Copy constructor
QBtAddress::QBtAddress | ( | const QByteArray & | byteArray | ) |
QBtAddress::QBtAddress | ( | const QString & | addr | ) |
QBtAddress::~QBtAddress | ( | ) |
static QBtAddress& QBtAddress::getAddressFromReversedArray | ( | const QByteArray & | reversedArray | ) | [static] |
Mainly created because on windows bluesoleil sdk, bluetooth _address byte array is reversed so it is usefull to provide this functionality here
reversedArray |
bool QBtAddress::isValid | ( | ) | const |
bool QBtAddress::operator!= | ( | const QBtAddress & | other | ) |
bool QBtAddress::operator< | ( | const QBtAddress & | other | ) |
QBtAddress& QBtAddress::operator= | ( | const QBtAddress & | other | ) |
bool QBtAddress::operator== | ( | const QBtAddress & | other | ) |
QByteArray QBtAddress::toByteArray | ( | ) | const |
Returns a 6-byte array representation of the bluetooth _address
QByteArray QBtAddress::toReversedByteArray | ( | ) | const |
Returns a 6-byte array representation of the bluetooth _address in reversed order. Mainly created for convenience when using windows bluesoleil SDK.
QString QBtAddress::toString | ( | ) | const |
Returns a string representation of this bluetooth _address
QString QBtAddress::_address [read] |