CMsvSendOperation Class Reference

#include <mw/msvapi.h>

class CMsvSendOperation : public CMsvOperation, public CMsvOperation

Nested Classes and Structures

Detailed Description

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.

Member Attribute Documentation

iOperation

CMsvOperation *iOperation[protected]

The sending operation.

Assigned when ConstructL is called

iProgress

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

Member Enumeration Documentation

Enum TSendOperationState

Constructor & Destructor Documentation

CMsvSendOperation ( CMsvSession &, TRequestStatus & )

IMPORT_CCMsvSendOperation(CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus
)[protected]

Constructor.

Parameters
aObserverRequestStatusRequest status of the operation observer. This
Return Value
New CMsvSendOperation object
Leave Codes
KErrNoMemory

~CMsvSendOperation ( )

IMPORT_C~CMsvSendOperation()[virtual]

Destructor.

Any active request on the object is cancelled.

Member Function Documentation

FinalProgress ( )

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.

Return Value
Descriptor holding progress information

ProgressL ( )

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.

Return Value
Descriptor holding progress information

Start ( CMsvOperation * )

IMPORT_C voidStart(CMsvOperation *aOperation)

Takes ownership of a CMsvOperation object that is set to complete iStatus of this object. This implementation does not leave.