|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Provides an interface to network databases, such as LM-IAS with IrDA, that may be provided by particular protocol modules. More...
#include <es_sock.h>
Public Member Functions | |
| IMPORT_C TInt | Open (RSocketServ &aSocketServer, TUint anAddrFamily, TUint aProtocol) |
| Initialises a database access service provided by a particular protocol. | |
| IMPORT_C void | Query (const TDesC8 &aQuery, TDes8 &aResult, TRequestStatus &aStat) |
| Makes a query to the database asynchronously. | |
| IMPORT_C TInt | Query (const TDesC8 &aQuery, TDes8 &aResult) |
| Makes a query to the database. | |
| IMPORT_C void | Add (const TDesC8 &anItem, TRequestStatus &aStat) |
| Adds a record to the database asynchronously. | |
| IMPORT_C TInt | Add (const TDesC8 &anItem) |
| Adds a record to the database. | |
| IMPORT_C void | Remove (const TDesC8 &anItem, TRequestStatus &aStat) |
| Removes a record from the database asynchronously. | |
| IMPORT_C TInt | Remove (const TDesC8 &anItem) |
| Removes a record from the database. | |
| IMPORT_C void | Close () |
| Closes a database access service. | |
| IMPORT_C void | Cancel () |
| Cancels any outstanding asynchronous calls, which will return with error code KErrCancel. | |
Public Member Functions inherited from RSubSessionBase | |
| TInt | SubSessionHandle () const |
| Gets the sub-session handle number. | |
Additional Inherited Members | |
Protected Member Functions inherited from RSubSessionBase | |
| RSubSessionBase () | |
| Default constructor. | |
| IMPORT_C const RSessionBase | Session () const |
| Returns a copy of the session associated with this sub-session. | |
| TInt | CreateSubSession (const RSessionBase &aSession, TInt aFunction, const TIpcArgs &aArgs) |
| Creates a new sub-session within an existing session. | |
| TInt | CreateSubSession (const RSessionBase &aSession, TInt aFunction) |
| Creates a new sub-session within an existing session. | |
| IMPORT_C TInt | CreateAutoCloseSubSession (RSessionBase &aSession, TInt aFunction, const TIpcArgs &aArgs) |
| Creates a new sub-session within an existing session. | |
| IMPORT_C void | CloseSubSession (TInt aFunction) |
| Closes the sub-session. | |
| TInt | Send (TInt aFunction, const TIpcArgs &aArgs) const |
| Sends a blind message to the server - no reply is expected. | |
| void | SendReceive (TInt aFunction, const TIpcArgs &aArgs, TRequestStatus &aStatus) const |
| Sends a message to the server and waits asynchronously for the reply. | |
| TInt | SendReceive (TInt aFunction, const TIpcArgs &aArgs) const |
| Sends a message to the server and waits synchronously for a reply. | |
| TInt | Send (TInt aFunction) const |
| Sends a blind message to the server - no reply is expected. | |
| void | SendReceive (TInt aFunction, TRequestStatus &aStatus) const |
| Sends a message to the server and waits asynchronously for the reply. | |
| TInt | SendReceive (TInt aFunction) const |
| Sends a message to the server and waits synchronously for a reply. | |
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.
| IMPORT_C TInt RNetDatabase::Add | ( | const TDesC8 & | anItem | ) |
Adds a record to the database.
| anItem | The record to add |
(generated from Symbian Developer Library)
| IMPORT_C void RNetDatabase::Add | ( | const TDesC8 & | anItem, |
| TRequestStatus & | aStat | ||
| ) |
Adds a record to the database asynchronously.
| anItem | The record to add |
| aStat | Indicates asynchronous operation and on completion contains an error code: see the system-wide error codes. |
(generated from Symbian Developer Library)
| IMPORT_C void RNetDatabase::Cancel | ( | ) |
Cancels any outstanding asynchronous calls, which will return with error code KErrCancel.
(generated from Symbian Developer Library)
| IMPORT_C void RNetDatabase::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.
(generated from Symbian Developer Library)
| IMPORT_C TInt RNetDatabase::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.
| aSocketServer | The socket server session |
| anAddrFamily | A constant identifying the protocol family |
| aProtocol | A constant that identifies the protocol that provides the database access service |
(generated from Symbian Developer Library)
| IMPORT_C TInt RNetDatabase::Query | ( | const TDesC8 & | aQuery, |
| TDes8 & | aResult | ||
| ) |
Makes a query to the database.
| aQuery | The query to perform |
| aResult | The result of the query |
(generated from Symbian Developer Library)
| IMPORT_C void RNetDatabase::Query | ( | const TDesC8 & | aQuery, |
| TDes8 & | aResult, | ||
| TRequestStatus & | aStat | ||
| ) |
Makes a query to the database asynchronously.
| aQuery | The query to perform |
| aResult | The result of the query |
| aStat | Indicates asynchronous operation and on completion contains an error code: see the system-wide error codes. |
(generated from Symbian Developer Library)
| IMPORT_C TInt RNetDatabase::Remove | ( | const TDesC8 & | anItem | ) |
Removes a record from the database.
| anItem | The record to remove |
(generated from Symbian Developer Library)
| IMPORT_C void RNetDatabase::Remove | ( | const TDesC8 & | anItem, |
| TRequestStatus & | aStat | ||
| ) |
Removes a record from the database asynchronously.
| anItem | The record to remove |
| aStat | Indicates asynchronous operation and on completion contains an error code: see the system-wide error codes. |
(generated from Symbian Developer Library)