ESMRHelper Class Reference

class ESMRHelper

Static helpers methods ES MR UI subsystem

Public Member Functions
IMPORT_C TPtrCAddressWithoutMailtoPrefix(const TDesC &)
IMPORT_C CCalAttendee *CopyAttendeeL(CCalAttendee &)
IMPORT_C CCalAttendee *CopyAttendeeLC(CCalAttendee &)
IMPORT_C CCalEntry *CopyEntryL(const CCalEntry &, CCalEntry::TMethod, TCopyFields, TESMRCalendarEventType)
IMPORT_C CCalEntry *CopyEntryLC(const CCalEntry &, CCalEntry::TMethod, TCopyFields, TESMRCalendarEventType)
IMPORT_C voidCopyFieldsL(const CCalEntry &, CCalEntry &, TCopyFields)
IMPORT_C CCalUser *CopyUserL(CCalUser &)
IMPORT_C CCalUser *CopyUserLC(CCalUser &)
IMPORT_C TMsvIdCorrespondingSmtpServiceL(TMsvId, CMsvSession &)
IMPORT_C TIntCreateAndAppendOthersDirToFileName(TFileName &)
IMPORT_C TIntCreateAndAppendPrivateDirToFileName(TFileName &)
IMPORT_C voidGetCorrectDllDriveL(TFileName &)
IMPORT_C TIntLoadResourceL(const TDesC &, const TDesC &)
IMPORT_C TIntLocateResourceFile(const TDesC &, const TDesC &, TFileName &, RFs *)
IMPORT_C voidPopulateChildFromParentL(CCalEntry &, const CCalEntry &)
Private Member Functions
voidAddOrganizerL(CCalEntry &)
CCalEntry *CopyEntryAndSwitchTypeL(const CCalEntry &, TESMRCalendarEventType)
CCalEntry *CreateEntryL(CCalEntry::TType, const TDesC8 &, CCalEntry::TMethod, CalCommon::TRecurrenceRange)
TESMRSwitchEventType ResolveSwitchType(TESMRCalendarEventType, TESMRCalendarEventType)
voidSetDefaultAlarmForMeetingL(CCalEntry &)
voidSetMeetingTimeL(CCalEntry &, const CCalEntry &)
CCalEntry *SwitchToAnniversaryL(const CCalEntry &)
CCalEntry *SwitchToMRL(const CCalEntry &)
CCalEntry *SwitchToMeetingL(const CCalEntry &)
CCalEntry *SwitchToMemoL(const CCalEntry &)
CCalEntry *SwitchToTodoL(const CCalEntry &)
Public Member Enumerations
enumTCopyFields { ECopyFull, ECopyOrganizer, ECopySkeleton }
Private Member Enumerations
enumTESMRSwitchEventType {
EMRSwitchUnknown = -1, EMRSwitchMRToMeeting = 0, EMRSwitchMRToMemo, EMRSwitchMRToAnniversary, EMRSwitchMRToTodo, EMRSwitchMeetingToMR, EMRSwitchMeetingToMemo, EMRSwitchMeetingToAnniversary, EMRSwitchMeetingToTodo, EMRSwitchMemoToMR, EMRSwitchMemoToMeeting, EMRSwitchMemoToAnniversary, EMRSwitchMemoToTodo, EMRSwitchAnniversaryToMR, EMRSwitchAnniversaryToMeeting, EMRSwitchAnniversaryToMemo, EMRSwitchAnniversaryToTodo, EMRSwitchTodoToMR, EMRSwitchTodoToMeeting, EMRSwitchTodoToMemo, EMRSwitchTodoToAnniversary
}

Member Functions Documentation

AddOrganizerL(CCalEntry &)

voidAddOrganizerL(CCalEntry &aTargetEntry)[private, static]

Parameters

CCalEntry & aTargetEntry

AddressWithoutMailtoPrefix(const TDesC &)

IMPORT_C TPtrCAddressWithoutMailtoPrefix(const TDesC &aAddress)[static]

Returns TPtrC to all/part of the aAddress parameter so that possible "mailto:" or "MAILTO:" prefix is stripped out.

Parameters

const TDesC & aAddressaddress which might contain the prefix

CopyAttendeeL(CCalAttendee &)

IMPORT_C CCalAttendee *CopyAttendeeL(CCalAttendee &aSource)[static]

Creates a new copy of the given attendee.

Parameters

CCalAttendee & aSource

CopyAttendeeLC(CCalAttendee &)

IMPORT_C CCalAttendee *CopyAttendeeLC(CCalAttendee &aSource)[static]

Creates a new copy of the given attendee. Item is left in the cleanup stack.

Parameters

CCalAttendee & aSource

CopyEntryAndSwitchTypeL(const CCalEntry &, TESMRCalendarEventType)

CCalEntry *CopyEntryAndSwitchTypeL(const CCalEntry &aSourceEntry,
TESMRCalendarEventTypeaTargetType
)[private, static]

Parameters

const CCalEntry & aSourceEntry
TESMRCalendarEventType aTargetType

CopyEntryL(const CCalEntry &, CCalEntry::TMethod, TCopyFields, TESMRCalendarEventType)

IMPORT_C CCalEntry *CopyEntryL(const CCalEntry &aEntry,
CCalEntry::TMethodaMethod,
TCopyFieldsaCopyType,
TESMRCalendarEventTypeaEntryType = EESMREventTypeNone
)[static]

Creates a copy with given method type. Start/end time and DTSTAMP are set even for a skeleton.

Parameters

const CCalEntry & aEntrysource entry
CCalEntry::TMethod aMethod
TCopyFields aCopyTypespecifies copied data
TESMRCalendarEventType aEntryType = EESMREventTypeNone

CopyEntryLC(const CCalEntry &, CCalEntry::TMethod, TCopyFields, TESMRCalendarEventType)

IMPORT_C CCalEntry *CopyEntryLC(const CCalEntry &aEntry,
CCalEntry::TMethodaMethod,
TCopyFieldsaCopyType,
TESMRCalendarEventTypeaEntryType = EESMREventTypeNone
)[static]

Creates a copy with given method type. Start/end time and DTSTAMP are set even for a skeleton. Copied entry is left in the cleanup stack.

Parameters

const CCalEntry & aEntrysource entry
CCalEntry::TMethod aMethod
TCopyFields aCopyTypespecifies copied data
TESMRCalendarEventType aEntryType = EESMREventTypeNone

CopyFieldsL(const CCalEntry &, CCalEntry &, TCopyFields)

IMPORT_C voidCopyFieldsL(const CCalEntry &aSource,
CCalEntry &aTarget,
TCopyFieldsaCopyType
)[static]

Copies entry fields according to the copy type specification. Unlike CCalEntry::CopyFromL() this function never copies the entry method property.

Parameters

const CCalEntry & aSourcesource for copying
CCalEntry & aTargettarget for copying
TCopyFields aCopyTypespecifies what data to copy

CopyUserL(CCalUser &)

IMPORT_C CCalUser *CopyUserL(CCalUser &aSource)[static]

Creates a new copy of the given cal user.

Parameters

CCalUser & aSource

CopyUserLC(CCalUser &)

IMPORT_C CCalUser *CopyUserLC(CCalUser &aSource)[static]

Creates a new copy of the given cal user. Item is left in the cleanup stack.

Parameters

CCalUser & aSource

CorrespondingSmtpServiceL(TMsvId, CMsvSession &)

IMPORT_C TMsvIdCorrespondingSmtpServiceL(TMsvIdaRelatedService,
CMsvSession &aMsvSession
)[static]

Resolves corresponding SMTP service for received MTM

Parameters

TMsvId aRelatedServiceRelated service
CMsvSession & aMsvSessionReference to MSV session.

CreateAndAppendOthersDirToFileName(TFileName &)

IMPORT_C TIntCreateAndAppendOthersDirToFileName(TFileName &aFileName)[static]

Creates and appends system private directory to beginning of file. It also appends two back slashes, so aFileName should not contain any backslashes in the begining.

Parameters

TFileName & aFileNameOthers directory is appended to this file name

CreateAndAppendPrivateDirToFileName(TFileName &)

IMPORT_C TIntCreateAndAppendPrivateDirToFileName(TFileName &aFileName)[static]

Creates and appends process' private directory to beginning of file. It also appends two back slashes, so aFileName should not contain any backslashes in the begining.

Parameters

TFileName & aFileNameprivate directory is appended to this file name

CreateEntryL(CCalEntry::TType, const TDesC8 &, CCalEntry::TMethod, CalCommon::TRecurrenceRange)

CCalEntry *CreateEntryL(CCalEntry::TTypeaType,
const TDesC8 &aUid,
CCalEntry::TMethodaMethod,
CalCommon::TRecurrenceRangeaRange
)[private, static]

Parameters

CCalEntry::TType aType
const TDesC8 & aUid
CCalEntry::TMethod aMethod
CalCommon::TRecurrenceRange aRange

GetCorrectDllDriveL(TFileName &)

IMPORT_C voidGetCorrectDllDriveL(TFileName &aDriveName)[static]

Parses drive name of dll(eg. "c:") and sets it to aDriveName parameter.

Parameters

TFileName & aDriveNameTFileName where parsed drive letter shall be set.

LoadResourceL(const TDesC &, const TDesC &)

IMPORT_C TIntLoadResourceL(const TDesC &aResourceFile,
const TDesC &aResourcePath
)[static]

Loads resource file into CONE environment.

Parameters

const TDesC & aResourceFileResource file name.
const TDesC & aResourcePathResource file path.

LocateResourceFile(const TDesC &, const TDesC &, TFileName &, RFs *)

IMPORT_C TIntLocateResourceFile(const TDesC &aResource,
const TDesC &aPath,
TFileName &aResourceFile,
RFs *aFs = NULL
)[static]

Locates the calentry policy resource file.

Parameters

const TDesC & aResourceResourcefile to be located.
const TDesC & aPathPath from which file is searched
TFileName & aResourceFileOn return contains the resource file name.
RFs * aFs = NULLFile server session reference. Ownership is not transfered.

PopulateChildFromParentL(CCalEntry &, const CCalEntry &)

IMPORT_C voidPopulateChildFromParentL(CCalEntry &aChild,
const CCalEntry &aParent
)[static]

Populates empty fields of a child entry with data from the parent entry.

Parameters

CCalEntry & aChildChild (modifying) entry to be populated .
const CCalEntry & aParent

ResolveSwitchType(TESMRCalendarEventType, TESMRCalendarEventType)

TESMRSwitchEventType ResolveSwitchType(TESMRCalendarEventTypeaSourceType,
TESMRCalendarEventTypeaTargetType
)[private, static]

Parameters

TESMRCalendarEventType aSourceType
TESMRCalendarEventType aTargetType

SetDefaultAlarmForMeetingL(CCalEntry &)

voidSetDefaultAlarmForMeetingL(CCalEntry &aTargetEntry)[private, static]

Parameters

CCalEntry & aTargetEntry

SetMeetingTimeL(CCalEntry &, const CCalEntry &)

voidSetMeetingTimeL(CCalEntry &aTargetEntry,
const CCalEntry &aSourceEntry
)[private, static]

Parameters

CCalEntry & aTargetEntry
const CCalEntry & aSourceEntry

SwitchToAnniversaryL(const CCalEntry &)

CCalEntry *SwitchToAnniversaryL(const CCalEntry &aSourceEntry)[private, static]

Parameters

const CCalEntry & aSourceEntry

SwitchToMRL(const CCalEntry &)

CCalEntry *SwitchToMRL(const CCalEntry &aSourceEntry)[private, static]

Parameters

const CCalEntry & aSourceEntry

SwitchToMeetingL(const CCalEntry &)

CCalEntry *SwitchToMeetingL(const CCalEntry &aSourceEntry)[private, static]

Parameters

const CCalEntry & aSourceEntry

SwitchToMemoL(const CCalEntry &)

CCalEntry *SwitchToMemoL(const CCalEntry &aSourceEntry)[private, static]

Parameters

const CCalEntry & aSourceEntry

SwitchToTodoL(const CCalEntry &)

CCalEntry *SwitchToTodoL(const CCalEntry &aSourceEntry)[private, static]

Parameters

const CCalEntry & aSourceEntry

Member Enumerations Documentation

Enum TCopyFields

Enumeration for entry copy method

Enumerators

ECopyFull
ECopyOrganizer
ECopySkeleton

Enum TESMRSwitchEventType

Enumeration for entry type switching

Enumerators

EMRSwitchUnknown = -1
EMRSwitchMRToMeeting = 0
EMRSwitchMRToMemo
EMRSwitchMRToAnniversary
EMRSwitchMRToTodo
EMRSwitchMeetingToMR
EMRSwitchMeetingToMemo
EMRSwitchMeetingToAnniversary
EMRSwitchMeetingToTodo
EMRSwitchMemoToMR
EMRSwitchMemoToMeeting
EMRSwitchMemoToAnniversary
EMRSwitchMemoToTodo
EMRSwitchAnniversaryToMR
EMRSwitchAnniversaryToMeeting
EMRSwitchAnniversaryToMemo
EMRSwitchAnniversaryToTodo
EMRSwitchTodoToMR
EMRSwitchTodoToMeeting
EMRSwitchTodoToMemo
EMRSwitchTodoToAnniversary