Location:
sendas.h
Link against:
send.lib
MSendAsObserver
Supported from 5.0
Allows CSendAs
to call back a client with further information or requests. Any client of the Send As functionality needs to implement this class.
Defined in MSendAsObserver
:
CancelRendering()
, CapabilityOK()
, RenderImage()
virtual TBool CapabilityOK(TInt aCapabilty, TInt aResponse)=0;
Checks an MTM capability that returns a response (e.g. maximum message size). After calling CSendAs::AddRequiredCapability()
, the observer is called with the response from the MTM. If the mixin function returns ETrue
, then the MTM has satisfied the required capability and will remain in the available MTM array.
|
|
virtual TInt RenderImage(TUid aPrinterUid, const TDesC& aFileName);
virtual TInt RenderImage(TUid aPrinterUid, const TDesC& aFileName, TRequestStatus& aRequestStatus);
Requests the message to be rendered using a certain printer driver (e.g. fax), using print-to-file. It passes the UID of the printer driver to use and the filename to which to print.
The default implementation returns KErrNotSupported
. The asynchronous version is used with the asynchronous SaveMessageL()
function.
|
|
virtual void CancelRendering();
Requests the client to stop rendering the image. This should occur synchronously. This function will only be called after an asynchronous RenderImage()
and before that function has completed. The default implementation is empty.