CMsvProgressReporterOperation Class Reference

class CMsvProgressReporterOperation : public CMsvOperation

Progress reporter operation.

A 'super-operation' implementing the abstract progress reporter mixin interface. This class encapsulates the operation; which provides the progress; and the dialog that displays it.

Inherits from

Public Member Functions
~CMsvProgressReporterOperation()
IMPORT_C voidMakeProgressVisibleL(TBool)
IMPORT_C CMtmStore &MtmStore()
IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &, TRequestStatus &, TInt)
IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &, TRequestStatus &)
IMPORT_C CMsvProgressReporterOperation *NewL(TBool, CMsvSession &, TRequestStatus &, TInt)
IMPORT_C CMsvProgressReporterOperation *NewL(TBool, CMsvSession &, TRequestStatus &)
IMPORT_C CMsvProgressReporterOperation *NewL(TBool, TBool, CMsvSession &, TRequestStatus &, TInt)
IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &, TRequestStatus &, TInt, TUid)
IMPORT_C const TDesC8 &ProgressL()
IMPORT_C voidPublishNewDialogL(TInt, TUid)
IMPORT_C TRequestStatus &RequestStatus()
IMPORT_C voidSetAnimationL(TInt)
IMPORT_C voidSetCanCancelL(TBool)
voidSetCompleteWithExit(TBool)
IMPORT_C voidSetHelpContext(const TCoeHelpContext &)
IMPORT_C voidSetOperationL(CMsvOperation *)
IMPORT_C voidSetProgressDecoder(MMsvProgressDecoder &)
IMPORT_C voidSetProgressVisibilityDelay(TBool)
IMPORT_C voidSetSeeding(TBool)
IMPORT_C voidSetTitleL(const TDesC &)
IMPORT_C voidSetTitleL(TInt)
IMPORT_C voidUnsetProgressDecoder()
Protected Member Functions
voidDoCancel()
voidRunL()
Private Member Functions
CMsvProgressReporterOperation(CMsvSession &, TRequestStatus &, TInt)
voidCompleteObserver(TInt)
voidConstructL(TBool, TBool)
voidConstructL(TInt, TUid, TBool, TBool)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMsvOperation::CMsvOperation(CMsvSession &,TInt,TRequestStatus &)
CMsvOperation::Extension_(TUint,TAny *&,TAny *)
CMsvOperation::FinalProgress()
CMsvOperation::Id()const
CMsvOperation::Mtm()const
CMsvOperation::Service()const
CMsvOperation::SystemProgress(TMsvSystemProgress &)
CMsvOperation::~CMsvOperation()
Inherited Enumerations
CActive:TPriority
Private Attributes
TBool iCompleteWithExit
CMsvWrappableProgressDialog *iDialog
TBool iDisplayWaitAnimation
TBufC8< 1 >iDummyProgress
TInt iImageIndex
CMtmStore *iMtmStore
CMsvOperation *iOperation
HBufC *iProgressString
Inherited Attributes
CActive::iStatus
CMsvOperation::iMsvSession
CMsvOperation::iMtm
CMsvOperation::iObserverRequestStatus
CMsvOperation::iService

Constructor & Destructor Documentation

CMsvProgressReporterOperation(CMsvSession &, TRequestStatus &, TInt)

CMsvProgressReporterOperation(CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus,
TIntaImageIndex
)[private]

C++ constructor

Parameters

CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus
TInt aImageIndex

~CMsvProgressReporterOperation()

IMPORT_C~CMsvProgressReporterOperation()[virtual]

Destructor

Member Functions Documentation

CompleteObserver(TInt)

voidCompleteObserver(TIntaCode)[private]

internal Completes observer with the aCode

Parameters

TInt aCode

ConstructL(TBool, TBool)

voidConstructL(TBoolaProgressVisibilityDelayOff = EFalse,
TBoolaDisplayWaitAnimation = ETrue
)[private]

Symbian OS constructor

Parameters

TBool aProgressVisibilityDelayOff = EFalse
TBool aDisplayWaitAnimation = ETrue

ConstructL(TInt, TUid, TBool, TBool)

voidConstructL(TIntaDialogIndex,
TUidaCategoryUid,
TBoolaProgressVisibilityDelayOff = EFalse,
TBoolaDisplayWaitAnimation = ETrue
)[private]

Symbian OS constructor This method is used only when progress dialog is shown also in cover side.

Parameters

TInt aDialogIndex
TUid aCategoryUid
TBool aProgressVisibilityDelayOff = EFalse
TBool aDisplayWaitAnimation = ETrue

DoCancel()

voidDoCancel()[protected, virtual]

from CActive

MakeProgressVisibleL(TBool)

IMPORT_C voidMakeProgressVisibleL(TBoolaVisible)[virtual]

Make progress visible

Parameters

TBool aVisible

MtmStore()

IMPORT_C CMtmStore &MtmStore()[virtual]

NewL(CMsvSession &, TRequestStatus &, TInt)

IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus,
TIntaImageIndex
)[static]

Creates new CMsvProgressReporterOperation operation

Parameters

CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus
TInt aImageIndex

NewL(CMsvSession &, TRequestStatus &)

IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus
)[static]

Parameters

CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus

NewL(TBool, CMsvSession &, TRequestStatus &, TInt)

IMPORT_C CMsvProgressReporterOperation *NewL(TBoolaProgressVisibilityDelayOff,
CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus,
TIntaImageIndex
)[static]

Creates new CMsvProgressReporterOperation operation

Parameters

TBool aProgressVisibilityDelayOff
CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus
TInt aImageIndex

NewL(TBool, CMsvSession &, TRequestStatus &)

IMPORT_C CMsvProgressReporterOperation *NewL(TBoolaProgressVisibilityDelayOff,
CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus
)[static]

Parameters

TBool aProgressVisibilityDelayOff
CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus

NewL(TBool, TBool, CMsvSession &, TRequestStatus &, TInt)

IMPORT_C CMsvProgressReporterOperation *NewL(TBoolaProgressVisibilityDelayOff,
TBoolaDisplayWaitAnimation,
CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus,
TIntaImageIndex
)[static]

Creates new CMsvProgressReporterOperation operation. With this method it is possible to show note dialog with EWaitLayout(With wait note bar).

Parameters

TBool aProgressVisibilityDelayOff
TBool aDisplayWaitAnimationif ETrue then shows note dialog with wait note bar
CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus
TInt aImageIndex

NewL(CMsvSession &, TRequestStatus &, TInt, TUid)

IMPORT_C CMsvProgressReporterOperation *NewL(CMsvSession &aMsvSession,
TRequestStatus &aObserverRequestStatus,
TIntaDialogIndex,
TUidaCategoryUid
)[static]

Creates new CMsvProgressReporterOperation operation. This method is used only when progress dialog is shown also in cover side.

Parameters

CMsvSession & aMsvSession
TRequestStatus & aObserverRequestStatus
TInt aDialogIndexunique index to identify a dialog within the category.
TUid aCategoryUidcategory uid

ProgressL()

IMPORT_C const TDesC8 &ProgressL()[virtual]

PublishNewDialogL(TInt, TUid)

IMPORT_C voidPublishNewDialogL(TIntaDialogIndex,
TUidaCategoryUid
)

Publish new dialog on secondary display. This method first dismisses the original dialog both from primary and secondary displays. After that a new dialog is created and it is published on secondary display with given parameters.

Parameters

TInt aDialogIndexunique index to identify a dialog within the category.
TUid aCategoryUidcategory uid

RequestStatus()

IMPORT_C TRequestStatus &RequestStatus()

RunL()

voidRunL()[protected, virtual]

from CActive

SetAnimationL(TInt)

IMPORT_C voidSetAnimationL(TIntaResourceId)[virtual]

Sets animation

Parameters

TInt aResourceId

SetCanCancelL(TBool)

IMPORT_C voidSetCanCancelL(TBoolaCanCancel)[virtual]

Sets if operation can be cancelled by user or not

Parameters

TBool aCanCancel

SetCompleteWithExit(TBool)

voidSetCompleteWithExit(TBoolaCompleteWithExit)

SetCompleteWithExit This function sets complete code

Parameters

TBool aCompleteWithExit

SetHelpContext(const TCoeHelpContext &)

IMPORT_C voidSetHelpContext(const TCoeHelpContext &aContext)[virtual]

Sets help context

Parameters

const TCoeHelpContext & aContext

SetOperationL(CMsvOperation *)

IMPORT_C voidSetOperationL(CMsvOperation *aOp)

Sets operations Takes ownership of the operation so this class will delete the operation.

Parameters

CMsvOperation * aOp

SetProgressDecoder(MMsvProgressDecoder &)

IMPORT_C voidSetProgressDecoder(MMsvProgressDecoder &aDecoder)[virtual]

Sets progress decoder.

Parameters

MMsvProgressDecoder & aDecoder

SetProgressVisibilityDelay(TBool)

IMPORT_C voidSetProgressVisibilityDelay(TBoolaDelay)

Parameters

TBool aDelay

SetSeeding(TBool)

IMPORT_C voidSetSeeding(TBoolaSeed)

Sets seeding

Parameters

TBool aSeed

SetTitleL(const TDesC &)

IMPORT_C voidSetTitleL(const TDesC &aTitle)[virtual]

Sets text to the dialog

Parameters

const TDesC & aTitle

SetTitleL(TInt)

IMPORT_C voidSetTitleL(TIntaTitleResourceId)[virtual]

Sets text to the dialog

Parameters

TInt aTitleResourceId

UnsetProgressDecoder()

IMPORT_C voidUnsetProgressDecoder()[virtual]

Removes progress decoder.

Member Data Documentation

TBool iCompleteWithExit

TBool iCompleteWithExit[private]

CMsvWrappableProgressDialog * iDialog

CMsvWrappableProgressDialog *iDialog[private]

TBool iDisplayWaitAnimation

TBool iDisplayWaitAnimation[private]

TBufC8< 1 > iDummyProgress

TBufC8< 1 >iDummyProgress[private]

TInt iImageIndex

TInt iImageIndex[private]

CMtmStore * iMtmStore

CMtmStore *iMtmStore[private]

CMsvOperation * iOperation

CMsvOperation *iOperation[private]

HBufC * iProgressString

HBufC *iProgressString[private]