Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <BTDefCommPort.h>
Link against: btmanclient.lib
This item is not part of the S60 5th Edition SDK

Class RBTCommPortSettings

class RBTCommPortSettings : public RBTManSubSession;

Description

A subsession on the Bluetooth Registry server This subsession allows the virtual serial ports to be updated, modified, examined etc.

Derivation

Members

Defined in RBTCommPortSettings:

Inherited from RBTManSubSession:

Inherited from RSubSessionBase:


Construction and destruction


RBTCommPortSettings()

IMPORT_C RBTCommPortSettings();

Description

Default constructor

[Top]


Member functions


Open(RBTRegServ &)

IMPORT_C TInt Open(RBTRegServ &aSession);

Description

Open the virtual serial port subsession on the registry server

Parameters

RBTRegServ &aSession

the session on the Registry server on which to open this subsession

Return value

TInt

Systemwide error code


Get(TBTCommPortSettings &)

IMPORT_C TInt Get(TBTCommPortSettings &aSettings);

Description

Get the port settings for a given port At present the lookup is based on the port number in aPortSettings

Synchronous

Parameters

TBTCommPortSettings &aSettings

Reference to TBTCommPortSettings for result, and uses the port number within it to search

Return value

TInt

System-wide error


Modify(const TBTCommPortSettings &,TRequestStatus &)

IMPORT_C void Modify(const TBTCommPortSettings &aSettings, TRequestStatus &aStatus);

Description

Asynchronously update virtual serial port settings

Parameters

const TBTCommPortSettings &aSettings

The new settings

TRequestStatus &aStatus


Delete(const TBTCommPortSettings &,TRequestStatus &)

IMPORT_C void Delete(const TBTCommPortSettings &aSettings, TRequestStatus &aStatus);

Description

Delete virtual serial settings

Parameters

const TBTCommPortSettings &aSettings

reference to a const TBTCommPortSettings. aSettings MUST have a serial port number. This is used by the Registry to find the current settings and delete them from the Registry.

TRequestStatus &aStatus

reference to a TRequestStatus. Note this is an asynchronous call.


Close()

IMPORT_C virtual void Close();

Description

Close the virtual serial port subsession on the Registry