#include <mw/msvapi.h>
class CMsvSendOperation : public CMsvOperation, public CMsvOperation |
Protected Attributes | |
---|---|
CMsvOperation * | iOperation |
TPckgBuf< TSendOperationProgress > | iProgress |
Public Member Enumerations | |
---|---|
enum | TSendOperationState { ESendStateInPreparation, ESendStateWaitingToSend, ESendStateConnecting, ESendStateSending, ..., ESendStateFailed } |
Public Member Functions | |
---|---|
virtual | ~CMsvSendOperation() |
virtual IMPORT_C const TDesC8 & | FinalProgress() |
virtual IMPORT_C const TDesC8 & | ProgressL() |
IMPORT_C void | Start(CMsvOperation *) |
Protected Member Functions | |
---|---|
CMsvSendOperation(CMsvSession &, TRequestStatus &) |
Inherited Attributes | |
---|---|
CActive::iStatus | |
CMsvOperation::iMsvSession | |
CMsvOperation::iMtm | |
CMsvOperation::iObserverRequestStatus | |
CMsvOperation::iService |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Utility to create an operation containing a sending operation which may be used to retrieve a standard progress structure.
This class is intended to be derived from. The derived class must define the TranslateProgress() member function. This function is responsible for translating the native progress of the given mtm into the standard progress structure, CMsvSendOperation::TSendOperationProgress.
CMsvOperation * | iOperation | [protected] |
The sending operation.
Assigned when ConstructL is called
TPckgBuf< TSendOperationProgress > | iProgress | [protected] |
The progress that is associated with this operation.
The TranslateProgress defined by derived classes must populate and return this progress structure.
See also: TranslateProgress() TSendOperationProgress
Enumerator | Value | Description |
---|---|---|
ESendStateInPreparation | ||
ESendStateWaitingToSend | ||
ESendStateConnecting | ||
ESendStateSending | ||
ESendStateDone | ||
ESendStateFailed |
IMPORT_C | CMsvSendOperation | ( | CMsvSession & | aMsvSession, |
TRequestStatus & | aObserverRequestStatus | |||
) | [protected] |
Constructor.
Parameters | |
---|---|
aObserverRequestStatus | Request status of the operation observer. This |
Leave Codes | |
---|---|
KErrNoMemory |
IMPORT_C | ~CMsvSendOperation | ( | ) | [virtual] |
Destructor.
Any active request on the object is cancelled.
IMPORT_C const TDesC8 & | FinalProgress | ( | ) | [virtual] |
Reimplemented from CMsvOperation::FinalProgress()
Gets information about a completed operation.
Returns the translated progress for the current send operation. Calls the sending operation's FinalProgress function to obtain the native progress then calls TranslateProgressL to translate the native progress into standard send progress.
IMPORT_C const TDesC8 & | ProgressL | ( | ) | [virtual] |
Reimplemented from CMsvOperation::ProgressL()
Gets progress information about the current send operation
Returns the translated progress for the current send operation. Calls the underlying ProgressL function to obtain the native progress then calls TranslateProgressL to translate the native progress into standard send progress.
IMPORT_C void | Start | ( | CMsvOperation * | aOperation | ) |
Takes ownership of a CMsvOperation object that is set to complete iStatus of this object. This implementation does not leave.