QBluetoothZero  2.0
QBtService Class Reference

#include <QBtService.h>

List of all members.

Public Types

typedef QList< QBtServiceList
typedef QList< QBtUuidProtocolList

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)
QBtServiceoperator= (const QBtService &service)

Detailed Description

Class containing all the necessary information about a bluetooth service of a remote device.


Member Typedef Documentation

typedef QList<QBtService> QBtService::List

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.


Constructor & Destructor Documentation

QBtService::QBtService ( QObject *  parent = 0)

Constructs an empty instance.

QBtService::QBtService ( const QBtService service,
QObject *  parent = 0 
)

Copy constructor


Member Function Documentation

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)

The documentation for this class was generated from the following file: