| Home · All Classes · Grouped Classes · Annotated · Functions |
The QBluetoothSerialPortService class is a Bluetooth service implementation for the Bluetooth Serial Port Profile. More...
#include <QBluetoothSerialPortService>
Inherits QBluetoothAbstractService.
The QBluetoothSerialPortService class is a Bluetooth service implementation for the Bluetooth Serial Port Profile.
The Bluetooth Serial Port Profile emulates a serial port over a Bluetooth connection. This is used on mobile phones to give complete raw access to the modem device. For instance, it can be used to dial and receive calls or to send an SMS.
This profile is the prerequisite for a few other Bluetooth services such as the Dial-up Networking or Fax profile, too.
An incoming Bluetooth connection is automatically forwarded to the modem emulator.
This class is part of the Qtopia server and cannot be used by other QtopiaApplications.
Creates a Bluetooth serial port service and registers the service using sdpRecordFileName. This is frequently used when the Serial Port Profile is a prerequisite for another Bluetooth profile that needs access to the modem device, such as the Dial-up Networking Profile:
// Use a file that contains the SDP record data in XML format for creating // a Dial-Up Networking service. QString fileName = "dun.xml"; int channel = 2; // the channel stored in the XML file QBluetoothSerialPortService* srv = new QBluetoothSerialPortService( "DialupNetworking", tr("Dial-up Networking Service"), fileName, rfcommChannel );
The serviceID is the unique identifier for this Bluetooth service. The user visible (translatable) name for this service is serviceName. The rfcommChannel is the channel on which the service will be published. parent is the standard parent parameter defined by QObject.
A new service is registered in the Qtopia Bluetooth framework when the constructor is called.
Destructs this object.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |