Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: btdefcommport.h
Link against: btmanclient.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

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:
Close(), Delete(), Get(), Modify(), Open(), RBTCommPortSettings()

Inherited from RBTManSubSession:
CancelRequest(), iClientServerMsg, iPadding1, iPadding2

Inherited from RSubSessionBase:
CloseSubSession(), CreateAutoCloseSubSession(), CreateSubSession(), Send(), SendReceive(), Session(), SubSessionHandle()


Construction and destruction


RBTCommPortSettings()

IMPORT_C RBTCommPortSettings();

Description

Default constructor

[Top]


Member functions


Open()

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()

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()

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()

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()

virtual IMPORT_C void Close();

Description

Close the virtual serial port subsession on the Registry