Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from RHandleBase:

Inherited from RSessionBase:

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

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