CESMRPolicy Class Reference

class CESMRPolicy : public CBase

CESMRPolicy defines ESMR policy. ES MR policies are relates to different roles and task scenarions. Policies are used by user interface views and tasks.

Policies can be defined in resource file with STRUCT ESMR_POLICY resource structure.

esmrservices.rh esmrpolicy.lib

Inherits from

Constructor & Destructor Documentation

CESMRPolicy()

CESMRPolicy()[private, inline]

~CESMRPolicy()

IMPORT_C~CESMRPolicy()

C++ destructor.

Member Functions Documentation

AllowedApp()

IMPORT_C TESMRUsingAppAllowedApp()const

Fetches the allowed applicatio for this policy

ConstructL(RResourceFile &, TResourceReader &)

voidConstructL(RResourceFile &aRFile,
TResourceReader &aReader
)[private]

Parameters

RResourceFile & aRFile
TResourceReader & aReader

EventType()

IMPORT_C TESMRCalendarEventTypeEventType()const

Returns the event type

FieldL(TESMREntryFieldId)

IMPORT_C const TESMREntryField &FieldL(TESMREntryFieldIdaFieldId)const

Fetches field matching field if from policy.

Parameters

TESMREntryFieldId aFieldIdField id.

Fields()

IMPORT_C const RArray< TESMREntryField > &Fields()const

Fetches default fields.

IsAdditionalCommand(TInt)

IMPORT_C TBoolIsAdditionalCommand(TIntaCommand)const

Checks if command belongs to additional commands

Parameters

TInt aCommandCommand id

IsDefaultCommand(TInt)

IMPORT_C TBoolIsDefaultCommand(TIntaCommand)const

Checks if <aCommand> belongs to default command list

Parameters

TInt aCommandCommand id

IsFieldIncluded(TESMREntryFieldId)

IMPORT_C TBoolIsFieldIncluded(TESMREntryFieldIdaFieldId)const

Checks, if field is included in policy.

Parameters

TESMREntryFieldId aFieldIdField id.

IsRoleIncluded(TESMRRole)

IMPORT_C TBoolIsRoleIncluded(TESMRRoleaRole)const

Tests, if specific ES MR role is included in policy.

Parameters

TESMRRole aRoleRole of user

NewL()

IMPORT_C CESMRPolicy *NewL()[static]

Two-phased constructor. Creates new CESMRPolicy object. Ownership is tranferred to caller.

NewL(RResourceFile &, TResourceReader &)

IMPORT_C CESMRPolicy *NewL(RResourceFile &aRFile,
TResourceReader &aReader
)[static]

Two-phased constructor. Reads esmr policy definition from resource. Caller is responsible for filling the resource reader with correct information.

Parameters

RResourceFile & aRFileResource file object.
TResourceReader & aReaderResource reader object.

PolicyId()

IMPORT_C TESMRPolicyIDPolicyId()const

Fetches policy id. TESMRPolicyID

ReadFromResourceL(RResourceFile &, TResourceReader &)

IMPORT_C voidReadFromResourceL(RResourceFile &aRFile,
TResourceReader &aReader
)

Reads policy definition from resource file. Caller is responsible for filling the resource reader with correct information.

Parameters

RResourceFile & aRFileResource file object.
TResourceReader & aReaderResource reader object.

ViewMode()

IMPORT_C TESMRViewModeViewMode()const

Fetches policy view mode. TESMRViewMode

Member Data Documentation

RArray< TESMRCommand > iAdditionalCommands

RArray< TESMRCommand >iAdditionalCommands[private]

TESMRUsingApp iAllowedApp

TESMRUsingApp iAllowedApp[private]

RArray< TESMRCommand > iDefaultCommands

RArray< TESMRCommand >iDefaultCommands[private]

TESMRCalendarEventType iEventType

TESMRCalendarEventType iEventType[private]

RArray< TESMREntryField > iMRFields

RArray< TESMREntryField >iMRFields[private]

TESMRPolicyID iPolicyId

TESMRPolicyID iPolicyId[private]

TBitFlags16 iRoleFlags

TBitFlags16 iRoleFlags[private]

TESMRViewMode iViewMode

TESMRViewMode iViewMode[private]