CImMhtmlUriResolver Class Reference

class CImMhtmlUriResolver : public CMsgActive

Inherits from

Public Member Functions
~CImMhtmlUriResolver ()
TBool CheckCacheForLinkedEntryL ()
TInt FileHandle ( RFile &)
HBufC * FileNameL ()
void FindFirstL ( TMsvId , TBool , TRequestStatus &)
TMsvId LinkedEntryId ()
CImMhtmlUriResolver * NewL ( CMsvEntry &)
CImMhtmlUriResolver * NewLC ( CMsvEntry &)
void ResolveL (const TDesC &, const TDesC &, TMsvId , TBool , TRequestStatus &)
Protected Member Functions
CImMhtmlUriResolver ( CMsvEntry &)
void ConstructL ()
Private Member Functions
void DoCancel ()
void DoComplete ( TInt &)
void DoRunL ()
HBufC * GetContentLocationL ( TMsvId )
void ResolveL (const TDesC &, TMsvId )
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
enum TImMhtmlUriResolveState { EImResolvingUri , EImTryingWithoutResolve , EImFindingFirstUri , EImFindingFile }
Inherited Enumerations
CActive:TPriority
Private Attributes
TMsvId iBodyPartId
CMsvEntry & iCurrentEntry
RFile iFile
TFileName iFileName
TBool iFileNameOnly
TMsvId iLinkedEntryId
CImMhtmlFileFinder * iMhtmlFileFinder
CImMhtmlFirstPageFinder * iMhtmlFirstPageFinder
TBool iResolved
TImMhtmlUriResolveState iState
TBool iTryingThisMessage
CImMhtmlUri * iUri
RPointerArray < CImCacheUriEntry > iUriCacheArray
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CImMhtmlUriResolver(CMsvEntry &)

CImMhtmlUriResolver ( CMsvEntry & aEntry ) [protected]

Parameters

CMsvEntry & aEntry

~CImMhtmlUriResolver()

~CImMhtmlUriResolver ( )

Member Functions Documentation

CheckCacheForLinkedEntryL()

TBool CheckCacheForLinkedEntryL ( )

Searches in cache for a URl that need to be resolved. If URL found in cache then it implies that URL has been resolved in previous look ups (Each entry of cache contains a URL and its corresponding Linked Entry)

ConstructL()

void ConstructL ( ) [protected]

DoCancel()

void DoCancel ( ) [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 &)

void DoComplete ( TInt & ) [private, virtual]

Parameters

TInt &

DoRunL()

void DoRunL ( ) [private, virtual]

FileHandle(RFile &)

TInt FileHandle ( RFile & aFile ) const

Parameters

RFile & aFile

FileNameL()

HBufC * FileNameL ( ) const

FindFirstL(TMsvId, TBool, TRequestStatus &)

void FindFirstL ( TMsvId aRootMessageId,
TBool aFileNameOnly,
TRequestStatus & aStatus
)

Parameters

TMsvId aRootMessageId
TBool aFileNameOnly
TRequestStatus & aStatus

GetContentLocationL(TMsvId)

HBufC * GetContentLocationL ( TMsvId aEntryId ) [private]

Parameters

TMsvId aEntryId

LinkedEntryId()

TMsvId LinkedEntryId ( ) const

NewL(CMsvEntry &)

CImMhtmlUriResolver * NewL ( CMsvEntry & aEntry ) [static]

Parameters

CMsvEntry & aEntry

NewLC(CMsvEntry &)

CImMhtmlUriResolver * NewLC ( CMsvEntry & aEntry ) [static]

Parameters

CMsvEntry & aEntry

ResolveL(const TDesC &, const TDesC &, TMsvId, TBool, TRequestStatus &)

void ResolveL ( const TDesC & aURI,
const TDesC & aHtmlBase,
TMsvId aCurrentPartId,
TBool aFileNameOnly,
TRequestStatus & aStatus
)

Parameters

const TDesC & aURI
const TDesC & aHtmlBase
TMsvId aCurrentPartId
TBool aFileNameOnly
TRequestStatus & aStatus

ResolveL(const TDesC &, TMsvId)

void ResolveL ( const TDesC & aHtmlBase,
TMsvId aCurrentPartId
) [private]

Parameters

const TDesC & aHtmlBase
TMsvId aCurrentPartId

Member Enumerations Documentation

Enum TImMhtmlUriResolveState

Enumerators

EImResolvingUri
EImTryingWithoutResolve
EImFindingFirstUri
EImFindingFile

Member Data Documentation

TMsvId iBodyPartId

TMsvId iBodyPartId [private]

CMsvEntry & iCurrentEntry

CMsvEntry & iCurrentEntry [private]

RFile iFile

RFile iFile [private]

TFileName iFileName

TFileName iFileName [private]

TBool iFileNameOnly

TBool iFileNameOnly [private]

TMsvId iLinkedEntryId

TMsvId iLinkedEntryId [private]

CImMhtmlFileFinder * iMhtmlFileFinder

CImMhtmlFileFinder * iMhtmlFileFinder [private]

CImMhtmlFirstPageFinder * iMhtmlFirstPageFinder

CImMhtmlFirstPageFinder * iMhtmlFirstPageFinder [private]

TBool iResolved

TBool iResolved [private]

TImMhtmlUriResolveState iState

TImMhtmlUriResolveState iState [private]

TBool iTryingThisMessage

TBool iTryingThisMessage [private]

CImMhtmlUri * iUri

CImMhtmlUri * iUri [private]

RPointerArray< CImCacheUriEntry > iUriCacheArray

RPointerArray < CImCacheUriEntry > iUriCacheArray [private]