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. |
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.