Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

rdaResult Class Reference

Used to pass results of asynchronous device calls back to the calling client. More...

List of all members.

Public Member Functions

virtual void returnValue (const rdaData &value)=0
 Reports the specified value to the client.

virtual void returnError (const rdaIOError &error)=0
 Reports the specified error to the client.

virtual void returnError (const rdaBadParameter &error)=0
 Reports the specified error to the client.

virtual void returnVoid ()=0
 Notifies the client on a successfull completion of the set call.


Detailed Description

Used to pass results of asynchronous device calls back to the calling client.

Objects of this class serve as one-time disposable containers for the operation results. An rdaResult object is created by RDA and passed (by pointer) in the result parameter of each asynchronous device call (see "Asynchronous calls" in the rdaDeviceServerBase class). When the call results are ready, they can be reported to the client by invoking the appropriate return method on the object. All return calls put the specified value or error into the result container, send it to the client, and "dispose" the container. All return calls invalidate the result pointer; that is, each rdaResult object can be used only once to deliver a single operation result.


The documentation for this class was generated from the following file:
RDA-2.3 documentation - 27 Jun 2007 - N.Trofimov