CMuiuMsgEditorService Class Reference

class CMuiuMsgEditorService : public CBase

Higher level client side service class

Inherits from

Constructor & Destructor Documentation

CMuiuMsgEditorService(TUid)

CMuiuMsgEditorService ( TUid aMtm ) [private]

C++ Constructor

Parameters

TUid aMtm

~CMuiuMsgEditorService()

~CMuiuMsgEditorService ( )

C++ Destructor

Member Functions Documentation

ConstructL(const TEditorParameters, MAknServerAppExitObserver *)

void ConstructL ( const TEditorParameters aParams,
MAknServerAppExitObserver * aObserver
) [private]

2nd phase constructor First calls Discover to find the right application with aParams. Then calls iService to connect to right application. Creates an instance of CApaServerAppExitMonitor Creates an instance of CMuiuMsgEditorService . Sets itself as observer for the service. IN: aParams - parameters for the service so that it knows which application to start aObserver - pointer of MAknServerAppExitObserver to be passed to iMonitor

Parameters

const TEditorParameters aParams
MAknServerAppExitObserver * aObserver

DiscoverL(const TEditorParameters)

TUid DiscoverL ( const TEditorParameters aParams ) [private]

DiscoverL Finds the right application id to be started and returns it. First checks if TEditorParameters.iSpecialAppId is set. If it is, returns that. Then connects RApaLsSession and initializes it with GetServerApps command. Then gets all the services that implement the service by using GetServiceImplementationsLC. Calls TryMatchL for each service and if there's a match, the appId is returned. If no implementation is found, 0 is returned.

Parameters

const TEditorParameters aParams

NewL(const TEditorParameters, TUid, MAknServerAppExitObserver *)

CMuiuMsgEditorService * NewL ( const TEditorParameters aParams,
TUid aMtm,
MAknServerAppExitObserver * aObserver
) [static]

C++ Constructor

Parameters

const TEditorParameters aParams
TUid aMtm
MAknServerAppExitObserver * aObserver

TryMatchL(const TEditorParameters, const TApaAppServiceInfo, TUid &)

TBool TryMatchL ( const TEditorParameters aParams,
const TApaAppServiceInfo aInfo,
TUid & aAppUid
) [private]

TryMatchL If TEditorParameters.iFlags has either EMsgReadOnly or EMsgPreviewMessage bit set, this function looks for a service that implements the KMsgServiceView part of the service. Otherwise looks for KMsgServiceEdit part. Reads the parameters ( service type (View/Edit), MtmType) from the opaque data. If type and mtm match, sets aAppUi as the application id and returns ETrue. If not found, returns EFalse.

Parameters

const TEditorParameters aParams
const TApaAppServiceInfo aInfo
TUid & aAppUid

Member Data Documentation

CApaServerAppExitMonitor * iMonitor

CApaServerAppExitMonitor * iMonitor [private]

TUid iMtm

TUid iMtm [private]

RMuiuMsgEditorService iService

RMuiuMsgEditorService iService [private]