Location:
es_sock.h
Link against: esock.lib
RNetDatabase
Supported from 5.0
Provides an interface to network databases, such as LM-IAS with IrDA, that may be provided by particular protocol modules.
Note the following points before using this class:
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.
|
Defined in RNetDatabase:
Add(), Cancel(), Close(), Open(), Query(), Remove()
Inherited from RSubSessionBase:
CloseSubSession(),
CreateSubSession(),
Send(),
SendReceive(),
SubSessionHandle(),
operator=()
TInt Open(RSocketServ& aSocketServer,TUint anAddrFamily,TUint aProtocol);
Initialises a database access service provided by a particular protocol. It must be called before other object functions are used.
|
|
void Close();
Closes a database access service. If a service has been opened
using Open(), then it should be closed using Close().
This will ensure all associated resources are released.
TInt Query(const TDesC8& aQuery,TDes8& aResult);
void Query(const TDesC8& aQuery,TDes8& aResult,TRequestStatus& aStat);
Makes a query to the database.
|
|
TInt Add(const TDesC8& anItem);
void Add(const TDesC8& anItem,TRequestStatus& aStat);
Adds a record to the database.
|
|
TInt Remove(const TDesC8& anItem);
void Remove(const TDesC8& anItem,TRequestStatus& aStat);
Removes a record from the database.
|
|
void Cancel();
Cancels any outstanding asynchronous calls, which will return with error
code KErrCancel.