Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: btsdp.h
Link against: sdpdatabase.lib

Class RSdp

class RSdp : public RSessionBase;

Description

Provides a session to the Service Discovery Database.

Used to create subsessions to database functionality. A clients must create and connect a session, before using a RSdpDatabase subsession to access the database.

Derivation

Members

Defined in RSdp:
Connect(), RSdp(), ResourceCount(), ResourceCountMarkEnd(), ResourceCountMarkStart(), Version()

Inherited from RHandleBase:
Attributes(), Close(), Duplicate(), FullName(), Handle(), HandleInfo(), Name(), SetHandle(), SetHandleNC(), iHandle

Inherited from RSessionBase:
CreateSession(), EAutoAttach, EExplicitAttach, Open(), Send(), SendReceive(), SetReturnedHandle(), ShareAuto(), ShareProtected(), TAttachMode

See also:


Construction and destruction


RSdp()

IMPORT_C RSdp();

Description

Default constructor.

[Top]


Member functions


Connect()

IMPORT_C TInt Connect();

Description

Connects a client process to the database.

The connection should be closed after use with RHandleBase::Close().

Return value

TInt

System-wide error code


Version()

IMPORT_C TVersion Version() const;

Description

Gets the version of the database server.

Return value

TVersion

Version information


ResourceCountMarkStart()

IMPORT_C void ResourceCountMarkStart();

Description

Starts the counter to keep track of open subsessions.

This should be used by clients to do resource leakage debugging checks.


ResourceCountMarkEnd()

IMPORT_C void ResourceCountMarkEnd();

Description

Stops the counter to keep track of open subsessions.

This should be used by clients to do resource leakage debugging checks.


ResourceCount()

IMPORT_C TInt ResourceCount();

Description

Gets the number of open subsessions to the database.

This should be used by clients to do resource leakage debugging checks.

Return value

TInt

Number of open subsessions to the database