Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: btmanclient.h
Link against: bluetooth.lib

Class RBTSecuritySettings

RBTSecuritySettings

Support

Supported from 6.1

Description

A subsession to the Security Manager, used to register and unregister services with the security manager.

Derivation

RBTManSubSessionBase class for a subsession to the Security Manager
RBTSecuritySettingsA subsession to the Security Manager, used to register and unregister services with the security manager
RSubSessionBaseClient-side handle to a sub-session

Defined in RBTSecuritySettings:
Close(), Open(), RegisterService(), UnregisterService()

Inherited from RBTManSubSession:
CancelRequest()

Inherited from RSubSessionBase:
CloseSubSession(), CreateSubSession(), Send(), SendReceive(), SubSessionHandle(), operator=()


Open()

TInt Open(RBTMan& aSession);

Description

Opens a subsession to the Security Manager.

Parameters

RBTMan& aSession

Session to the Security Manager

Return value

TInt

System-wide error code

[Top]


Close()

void Close();

Description

Closes a subsession to the Security Manager.

[Top]


RegisterService()

void RegisterService(const TBTServiceSecurity& aService, TRequestStatus& aStatus);

Description

Registers a service with the Security Manager.

A Bluetooth service that wishes to receive incoming connections must register its security preferences on startup and unregister on exit.

If two services register with the same ProtocolID/ChannelID pair, the latter service will overwrite the former.

Parameters

const TBTServiceSecurity& aService

The service to be registered.

TRequestStatus& aStatus

The iStatus of the active object making this call.

[Top]


UnregisterService()

void UnregisterService(const TBTServiceSecurity& aService, TRequestStatus& aStatus);

Description

Unregisters a service with the Security Manager.

A Bluetooth service that has registered with the security manager must unregister itself on shutdown.

Parameters

const TBTServiceSecurity& aService

The service to be unregistered. This object needs only to indicate the UID of the service.

TRequestStatus& aStatus

The iStatus of the active object making this call.