CImPop3RefreshOperation Class Reference

class CImPop3RefreshOperation : public CMsgActive

Inherits from

Nested Classes and Structures

Public Member Functions
~CImPop3RefreshOperation()
voidCancelAllowResume()
CImPop3RefreshOperation *NewL(CMsvServerEntry &, CImPop3Session *, RFs &)
voidPause()
TPop3Progress Progress()
TUint RemoteMessageSizeL(TMsvId)
voidResumeL(CImPop3Session *, TRequestStatus &)
voidSetMessagesToKeepL(const CMsvEntrySelection *)
voidStart(TRequestStatus &, CArrayFixFlat< TMsvId > *)
voidStart(TRequestStatus &)
Private Member Functions
CImPop3RefreshOperation(CMsvServerEntry &, CImPop3Session *, RFs &)
voidAllocateArraysL()
TBool CanDeleteEntry(const TMsvEmailEntry &)
voidChangeStateForMigrate(TState)
voidChangeStateL(TState)
TBool CompareIdAndSizeL()
voidCompleteSyncCollection()
voidConstructL()
voidCreateNewHeaderEntryL(TMsvEntry &)
voidCreateUidlFileL()
voidDeleteUidl(TInt)
voidDoCancel()
voidDoComplete(TInt &)
voidDoRunL()
voidGetCapabilitiesL()
voidGetHeaderByIndexL(TInt)
voidGetMessageByIndexL(TInt)
TBool GetMessagesIfAny()
voidGetMsgSizesL()
voidGetMsgUidlsL()
voidGetNoMessagesL()
voidGetRemoteMessagesL()
voidOpenUidlFileL()
voidQueueRemoteUpdate()
voidRefreshFinishedL()
voidRetrieveHeadersL()
TInt SelectNextState()
voidSyncCollectionL()
voidSyncUidlL()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
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()
CMsgActive::CMsgActive(TInt)
CMsgActive::Complete(TInt)
CMsgActive::Queue(TRequestStatus &)
CMsgActive::~CMsgActive()
Private Member Enumerations
enumTState {
EPopRefreshSyncCollection, EPopRefreshStat, EPopRefreshList, EPopRefreshUidl, EPopRefreshSyncUidl, EPopRefreshGetHeader, EPopRefreshDeleteDeadMessages, EPopRefreshComplete, EPopRefreshDeleteExcessMessages, EPopMigratingBearer
}
Inherited Enumerations
CActive:TPriority
Private Attributes
TInt iCheckDiskSpaceCounter
TInt iCurrentDrive
TBool iEmptyHeaders
TMsvEntry iEntry
TBool iFirstCallToTop
RFs &iFs
TInt32 *iIdTab
TPtrC8 iImMsgId
TInt iLastHeaderToGet
CMsvServerEntry *iLocalEntry
TUint iMboxSize
CMsvEntrySelection *iMessagesToKeep
TBool iMigratingToNewBearer
TInt iMsgCtr
CMsvEntrySelection *iMsvSelection
CArrayFixFlat< TMsvId > *iNewMsg
TUint iNoMessages
TBool iPipeliningSupported
CImPop3UidlMap *iPop3Uidls
CImPop3List *iPopList
CImPop3Retr *iPopRetr
CImPop3Session *iPopSession
CImPop3Stat *iPopStat
CImPop3Top *iPopTop
CImPop3Uidl *iPopUidl
TInt iPreviousIndex
TPop3Progress iProgress
CImRecvConvert *iRecvConverter
TInt iRemoteArrayCtr
TInt iRemoteArraySize
TMsvId iRemoteId
CMsvServerEntry &iRemoteServerEntry
TUint *iSize
TState iState
RArray< TInt >iTemporaryUidlPosArray
TBool iTopExists
CArrayFix< TMsgUidlStore > *iUidlArray
TBool iUidlExists
TKeyArrayFix iUidlKey
RArray< TInt >iUniqueUidlPosArray
CMsvEntrySelection *iUnwantedEntries
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CImPop3RefreshOperation(CMsvServerEntry &, CImPop3Session *, RFs &)

CImPop3RefreshOperation(CMsvServerEntry &,
CImPop3Session *,
RFs &
)[private]

~CImPop3RefreshOperation()

~CImPop3RefreshOperation()

Member Functions Documentation

AllocateArraysL()

voidAllocateArraysL()[private]

CanDeleteEntry(const TMsvEmailEntry &)

TBool CanDeleteEntry(const TMsvEmailEntry &aEntry)const [private]

Parameters

const TMsvEmailEntry & aEntry

CancelAllowResume()

voidCancelAllowResume()

ChangeStateForMigrate(TState)

voidChangeStateForMigrate(TStateaState)[private]

Parameters

TState aState

ChangeStateL(TState)

voidChangeStateL(TStateaState)[private]

Parameters

TState aState

CompareIdAndSizeL()

TBool CompareIdAndSizeL()[private]

CompleteSyncCollection()

voidCompleteSyncCollection()[private]

ConstructL()

voidConstructL()[private]

CreateNewHeaderEntryL(TMsvEntry &)

voidCreateNewHeaderEntryL(TMsvEntry &aNewEntry)[private]

Parameters

TMsvEntry & aNewEntry

CreateUidlFileL()

voidCreateUidlFileL()[private]

DeleteUidl(TInt)

voidDeleteUidl(TIntanIndex)[private]

Parameters

TInt anIndex

DoCancel()

voidDoCancel()[private, virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

CActive::Cancel

DoComplete(TInt &)

voidDoComplete(TInt &)[private, virtual]

Parameters

TInt &

DoRunL()

voidDoRunL()[private, virtual]

GetCapabilitiesL()

voidGetCapabilitiesL()[private]

GetHeaderByIndexL(TInt)

voidGetHeaderByIndexL(TInt)[private]

Parameters

TInt

GetMessageByIndexL(TInt)

voidGetMessageByIndexL(TInt)[private]

Parameters

TInt

GetMessagesIfAny()

TBool GetMessagesIfAny()[private]

GetMsgSizesL()

voidGetMsgSizesL()[private]

GetMsgUidlsL()

voidGetMsgUidlsL()[private]

GetNoMessagesL()

voidGetNoMessagesL()[private]

GetRemoteMessagesL()

voidGetRemoteMessagesL()[private]

NewL(CMsvServerEntry &, CImPop3Session *, RFs &)

CImPop3RefreshOperation *NewL(CMsvServerEntry &,
CImPop3Session *,
RFs &
)[static]

OpenUidlFileL()

voidOpenUidlFileL()[private]

Pause()

voidPause()

Progress()

TPop3Progress Progress()

QueueRemoteUpdate()

voidQueueRemoteUpdate()[private]

RefreshFinishedL()

voidRefreshFinishedL()[private]

RemoteMessageSizeL(TMsvId)

TUint RemoteMessageSizeL(TMsvIdaId)

Parameters

TMsvId aId

ResumeL(CImPop3Session *, TRequestStatus &)

voidResumeL(CImPop3Session *aPopSession,
TRequestStatus &aStatus
)

Parameters

CImPop3Session * aPopSession
TRequestStatus & aStatus

RetrieveHeadersL()

voidRetrieveHeadersL()[private]

SelectNextState()

TInt SelectNextState()[private]

SetMessagesToKeepL(const CMsvEntrySelection *)

voidSetMessagesToKeepL(const CMsvEntrySelection *aMessagesToKeep)

Parameters

const CMsvEntrySelection * aMessagesToKeep

Start(TRequestStatus &, CArrayFixFlat< TMsvId > *)

voidStart(TRequestStatus &aStatus,
CArrayFixFlat< TMsvId > *aMsvIdArray
)

Parameters

TRequestStatus & aStatus
CArrayFixFlat< TMsvId > * aMsvIdArray

Start(TRequestStatus &)

voidStart(TRequestStatus &aStatus)

Parameters

TRequestStatus & aStatus

SyncCollectionL()

voidSyncCollectionL()[private]

SyncUidlL()

voidSyncUidlL()[private]

Member Enumerations Documentation

Enum TState

Enumerators

EPopRefreshSyncCollection
EPopRefreshStat
EPopRefreshList
EPopRefreshUidl
EPopRefreshSyncUidl
EPopRefreshGetHeader
EPopRefreshDeleteDeadMessages
EPopRefreshComplete
EPopRefreshDeleteExcessMessages
EPopMigratingBearer

Member Data Documentation

TInt iCheckDiskSpaceCounter

TInt iCheckDiskSpaceCounter[private]

TInt iCurrentDrive

TInt iCurrentDrive[private]

TBool iEmptyHeaders

TBool iEmptyHeaders[private]

TMsvEntry iEntry

TMsvEntry iEntry[private]

TBool iFirstCallToTop

TBool iFirstCallToTop[private]

RFs & iFs

RFs &iFs[private]

TInt32 * iIdTab

TInt32 *iIdTab[private]

TPtrC8 iImMsgId

TPtrC8 iImMsgId[private]

TInt iLastHeaderToGet

TInt iLastHeaderToGet[private]

CMsvServerEntry * iLocalEntry

CMsvServerEntry *iLocalEntry[private]

TUint iMboxSize

TUint iMboxSize[private]

CMsvEntrySelection * iMessagesToKeep

CMsvEntrySelection *iMessagesToKeep[private]

TBool iMigratingToNewBearer

TBool iMigratingToNewBearer[private]

TInt iMsgCtr

TInt iMsgCtr[private]

CMsvEntrySelection * iMsvSelection

CMsvEntrySelection *iMsvSelection[private]

CArrayFixFlat< TMsvId > * iNewMsg

CArrayFixFlat< TMsvId > *iNewMsg[private]

TUint iNoMessages

TUint iNoMessages[private]

TBool iPipeliningSupported

TBool iPipeliningSupported[private]

CImPop3UidlMap * iPop3Uidls

CImPop3UidlMap *iPop3Uidls[private]

CImPop3List * iPopList

CImPop3List *iPopList[private]

CImPop3Retr * iPopRetr

CImPop3Retr *iPopRetr[private]

CImPop3Session * iPopSession

CImPop3Session *iPopSession[private]

CImPop3Stat * iPopStat

CImPop3Stat *iPopStat[private]

CImPop3Top * iPopTop

CImPop3Top *iPopTop[private]

CImPop3Uidl * iPopUidl

CImPop3Uidl *iPopUidl[private]

TInt iPreviousIndex

TInt iPreviousIndex[private]

TPop3Progress iProgress

TPop3Progress iProgress[private]

CImRecvConvert * iRecvConverter

CImRecvConvert *iRecvConverter[private]

TInt iRemoteArrayCtr

TInt iRemoteArrayCtr[private]

TInt iRemoteArraySize

TInt iRemoteArraySize[private]

TMsvId iRemoteId

TMsvId iRemoteId[private]

CMsvServerEntry & iRemoteServerEntry

CMsvServerEntry &iRemoteServerEntry[private]

TUint * iSize

TUint *iSize[private]

TState iState

TState iState[private]

RArray< TInt > iTemporaryUidlPosArray

RArray< TInt >iTemporaryUidlPosArray[private]

TBool iTopExists

TBool iTopExists[private]

CArrayFix< TMsgUidlStore > * iUidlArray

CArrayFix< TMsgUidlStore > *iUidlArray[private]

TBool iUidlExists

TBool iUidlExists[private]

TKeyArrayFix iUidlKey

TKeyArrayFix iUidlKey[private]

RArray< TInt > iUniqueUidlPosArray

RArray< TInt >iUniqueUidlPosArray[private]

CMsvEntrySelection * iUnwantedEntries

CMsvEntrySelection *iUnwantedEntries[private]