Home · All Classes · Annotated · Functions

QSDP Class Reference

The QSDP class allows interaction with the local SDP server. More...

#include <QSDP>

Public Functions


Detailed Description

The QSDP class allows interaction with the local SDP server.

The QSDP class provides access to the local SDP server. It allows registration and de-registration of Bluetooth services.

See also QSDAP and QSDPService.


Member Function Documentation

QSDP::QSDP ()

Constructs a new QSDP object.

QSDP::~QSDP ()

Deconstructs a QSDP object.

QString QSDP::error ()

This method returns the last error that occurred.

bool QSDP::registerService ( const QBluetoothLocalDevice & device, QSDPProfile profile, int channel = -1 )

Registers a profile with the local SDP server. If channel is not provided, a unique channel is picked. The local device for which this service is registered is given by the device parameter. The profile to register with the server is given by the profile parameter.

This method returns true if the service was registered successfully, false otherwise.

bool QSDP::unregisterService ( const QBluetoothLocalDevice & device, const QSDPService & service )

Unregisters a service from the local SDP server. The device to unregister the service from is given by device. The service to unregister is given by service. Note that the service needs to be a valid Bluetooth service that is currently registered on the local SDP server, e.g. obtained by using QSDAP::browseLocal().

This method returns true if the de-registration was completed successfully, false otherwise.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7