CFSMailRequestHandler Class Reference

class CFSMailRequestHandler : public CBase

email framework asynchronous request handler

FSFWCommonLib
Since
S60 v3.1

Inherits from

  • CFSMailRequestHandler

Constructor & Destructor Documentation

CFSMailRequestHandler()

IMPORT_CCFSMailRequestHandler()[protected]

C++ default constructor.

~CFSMailRequestHandler()

IMPORT_C~CFSMailRequestHandler()[virtual]

destructor.

Member Functions Documentation

AddPluginL(TUid, CFSMailPlugin *)

IMPORT_C voidAddPluginL(TUidaPluginId,
CFSMailPlugin *aPlugin
)

adds new plugin to plugin list

Parameters

TUid aPluginIduid of the new plugin
CFSMailPlugin * aPluginplugin instance

CancelAllRequestsL()

IMPORT_C voidCancelAllRequestsL()

cancels all pending asynchronous requests

CancelRequestL(TInt)

IMPORT_C voidCancelRequestL(TIntaRequestId)

cancels pending asynchronous request

Parameters

TInt aRequestIdid of the request to be cancelled

CleanTempDirL()

IMPORT_C voidCleanTempDirL()

cleans temp dir

CompleteRequest(TInt)

IMPORT_C voidCompleteRequest(TIntaRequestId)

completes asynchronous request

Parameters

TInt aRequestIdid of the request to be completed

ConstructL(RPointerArray< CImplementationInformation >, RPointerArray< CFSMailPlugin >)

voidConstructL(RPointerArray< CImplementationInformation >aPluginInfo,
RPointerArray< CFSMailPlugin >aPlugins
)[protected]

two based constructor

GetPluginByUid(TFSMailMsgId)

IMPORT_C CFSMailPlugin *GetPluginByUid(TFSMailMsgIdaPluginId)[virtual]

returns plugin pointer related to plugin id

Parameters

TFSMailMsgId aPluginIdplugin id

GetTempDirL()

IMPORT_C TDesC &GetTempDirL()

returns temp dir path

GetTempFileL(TFSMailMsgId, TFileName)

RFile GetTempFileL(TFSMailMsgIdaContentId,
TFileNameaFileName
)

opens or creates file

Parameters

TFSMailMsgId aContentId
TFileName aFileNamefile name

InitAsyncRequestL(TUid, MFSMailRequestObserver &)

IMPORT_C TFSPendingRequestInitAsyncRequestL(TUidaPluginId,
MFSMailRequestObserver &aOperationObserver
)

starts asynchronous request

Parameters

TUid aPluginIdid of the target plugin request is accessed to
MFSMailRequestObserver & aOperationObserverobserver to forward request progress events to user from plugin

NewL(RPointerArray< CImplementationInformation > &, RPointerArray< CFSMailPlugin > &)

IMPORT_C CFSMailRequestHandler *NewL(RPointerArray< CImplementationInformation > &aPluginInfo,
RPointerArray< CFSMailPlugin > &aPlugins
)[static]

two based constructor

Parameters

RPointerArray< CImplementationInformation > & aPluginInfoplugin information table
RPointerArray< CFSMailPlugin > & aPluginsplugin instances table

NewLC(RPointerArray< CImplementationInformation > &, RPointerArray< CFSMailPlugin > &)

IMPORT_C CFSMailRequestHandler *NewLC(RPointerArray< CImplementationInformation > &aPluginInfo,
RPointerArray< CFSMailPlugin > &aPlugins
)[static]

two based constructor

Parameters

RPointerArray< CImplementationInformation > & aPluginInfoplugin information table
RPointerArray< CFSMailPlugin > & aPluginsplugin instances table

RemoveAllRequests()

voidRemoveAllRequests()[private]

removes all asynchronous requests

Member Data Documentation

RFs iFs

RFs iFs[private]

temp directory files handling

RArray< TFSPendingRequest > iPendingRequests

RArray< TFSPendingRequest >iPendingRequests[private]

list of pending requests

RPointerArray< CFSMailPluginData > iPluginList

RPointerArray< CFSMailPluginData >iPluginList[protected]

list of loaded plugins

TUint iRequestId

TUint iRequestId[private]

request id counter

HBufC * iTempDirName

HBufC *iTempDirName[private]