Logo Search packages:      
Sourcecode: kdebluetooth version File versions

KBluetooth::DeviceAddress::DeviceAddress ( const QString &  s  )  [explicit]

Initializes the object with an address given as a string. The string must be in a format which is understood by the BlueZ str2ba function, like 00:61:58:4C:E6:AD. Case doesn't matter.

s address string

Definition at line 44 of file deviceaddress.cpp.

References getBdaddr(), and invalid.

    bdaddr_t a;
    int ret = str2ba(s.ascii(), &a);
    if (ret==0)
        this->isValid = true;
        this->bdaddr = a;
        this->isValid = false;
        this->bdaddr = DeviceAddress::invalid.getBdaddr();

Generated by  Doxygen 1.6.0   Back to index