RNetDatabase Class Reference

class RNetDatabase : public RSubSessionBase

Provides an interface to network databases, such as LM-IAS with IrDA, that may be provided by particular protocol modules.

Before making any queries, a connection to a socket server session must be made.

Each function is available in both synchronous and asynchronous versions.

A single RNetDatabase can only perform one request of any type at once. A client is panicked if it makes two requests.

Particular database access services will specify the format of queries and of responses.

Inherits from

Member Functions Documentation

Add(const TDesC8 &, TRequestStatus &)

IMPORT_C voidAdd(const TDesC8 &anItem,
TRequestStatus &aStat
)

Parameters

const TDesC8 & anItem
TRequestStatus & aStat

Add(const TDesC8 &)

IMPORT_C TIntAdd(const TDesC8 &anItem)

Parameters

const TDesC8 & anItem

Cancel()

IMPORT_C voidCancel()

Close()

IMPORT_C voidClose()

Open(RSocketServ &, TUint, TUint)

IMPORT_C TIntOpen(RSocketServ &aSocketServer,
TUintanAddrFamily,
TUintaProtocol
)

Parameters

RSocketServ & aSocketServer
TUint anAddrFamily
TUint aProtocol

Query(const TDesC8 &, TDes8 &, TRequestStatus &)

IMPORT_C voidQuery(const TDesC8 &aQuery,
TDes8 &aResult,
TRequestStatus &aStat
)

Parameters

const TDesC8 & aQuery
TDes8 & aResult
TRequestStatus & aStat

Query(const TDesC8 &, TDes8 &)

IMPORT_C TIntQuery(const TDesC8 &aQuery,
TDes8 &aResult
)

Parameters

const TDesC8 & aQuery
TDes8 & aResult

Remove(const TDesC8 &, TRequestStatus &)

IMPORT_C voidRemove(const TDesC8 &anItem,
TRequestStatus &aStat
)

Parameters

const TDesC8 & anItem
TRequestStatus & aStat

Remove(const TDesC8 &)

IMPORT_C TIntRemove(const TDesC8 &anItem)

Parameters

const TDesC8 & anItem