![]() |
QBluetoothZero
2.0
|
#include <QBtService.h>
Public Types | |
typedef QList< QBtService > | List |
typedef QList< QBtUuid > | ProtocolList |
Public Member Functions | |
QBtService (QObject *parent=0) | |
QBtService (const QBtService &service, QObject *parent=0) | |
ProtocolList | getProtocols () const |
QBtUuid | getClass () const |
QString | getName () const |
QString | getDescription () const |
uint | getPort () const |
uint | getHandle () const |
void | addProtocol (const QBtUuid &uuid) |
bool | removeProtocol (const QBtUuid &uuid) |
void | setProtocols (const ProtocolList &newUUIDs) |
void | setClass (const QBtUuid &newClass) |
void | setName (const QString &newName) |
void | setDescription (const QString &newDescription) |
void | setPort (uint newPort) |
void | setHandle (uint newHandle) |
QBtService & | operator= (const QBtService &service) |
Class containing all the necessary information about a bluetooth service of a remote device.
typedef QList<QBtService> QBtService::List |
typedef QList<QBtUuid> QBtService::ProtocolList |
This list will be populates either by the Service Discovery or by the user.
The index of every protocol contained corresponds to the level of hierarchy that it belongs.
example: to create a service using RFCOMM then the list will be: [0]: L2CAP [1]: RFCOMM
So ProtocolList::last() returns the highest protocol.
QBtService::QBtService | ( | QObject * | parent = 0 | ) |
Constructs an empty instance.
QBtService::QBtService | ( | const QBtService & | service, |
QObject * | parent = 0 |
||
) |
Copy constructor
void QBtService::addProtocol | ( | const QBtUuid & | uuid | ) |
Adds a protocol to the service protocol list.
QBtUuid QBtService::getClass | ( | ) | const |
Gets the service id of this service.
QString QBtService::getDescription | ( | ) | const |
Gets the service description.
uint QBtService::getHandle | ( | ) | const |
Gets the native (?) service handle.
QString QBtService::getName | ( | ) | const |
Gets the service name.
uint QBtService::getPort | ( | ) | const |
Gets the service port.
ProtocolList QBtService::getProtocols | ( | ) | const |
Gets the protocol list used by this service.
QBtService& QBtService::operator= | ( | const QBtService & | service | ) |
bool QBtService::removeProtocol | ( | const QBtUuid & | uuid | ) |
void QBtService::setClass | ( | const QBtUuid & | newClass | ) |
void QBtService::setDescription | ( | const QString & | newDescription | ) |
void QBtService::setHandle | ( | uint | newHandle | ) |
void QBtService::setName | ( | const QString & | newName | ) |
void QBtService::setPort | ( | uint | newPort | ) |
void QBtService::setProtocols | ( | const ProtocolList & | newUUIDs | ) |