CCalenSettingsUiContainer Class Reference

class CCalenSettingsUiContainer : public CBase

Inherits from

Public Member Functions
~CCalenSettingsUiContainer ()
IMPORT_C void ConstructListBoxL ()
IMPORT_C TInt CurrentFeatureId ()
IMPORT_C void HandleListBoxSelectionL ( TInt , TBool &)
IMPORT_C CCalenSettingsUiContainer * NewL ( CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)
IMPORT_C void UpdateListBoxL ()
Private Member Functions
CCalenSettingsUiContainer ( CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)
void AddAlarmToneItemL ( TInt )
void AddBinaryItemL ( TBool &, TInt , TInt , TInt , TInt , TInt )
void AddCustomSettingsItemsL ( TInt &)
void AddCustomSettingsWithLinkL ( RPointerArray < CAknSettingItem > &, const TDesC &, TInt )
void AddDefaultViewItemL ( TInt &, TInt , TInt , TInt , TInt )
void AddEnumerationItemL ( TInt &, TInt , TInt , TInt , TInt , TInt )
void AddPluginSettingItemL ( TInt &)
void AddSingleCustomSettingL ( CAknSettingItem *, TInt )
void AddSnoozeTimeItemL ( TInt , CArrayPtr < CGulIcon > *, TInt &)
void ConstructL ()
void CreateListBoxItemsL ()
void CreateMailboxSettingsItemL ( TInt )
void DoLocaleCallbackL ()
TBool ExtCalendarAvailableL ()
void GetHelpContext ( TCoeHelpContext &)
void HandleExternalSettingsChangedL ( TUint32 )
void HandleNotifyError ( TUint32 , TInt , CCenRepNotifyHandler *)
void HandleNotifyGeneric ( TUint32 )
void HandlePluginChange ()
CAknSettingItem * Item ( TSettingListItemId )
void LoadCurrentValuesL ()
void LoadMailboxSettingsL ()
TInt LocaleCallbackL ( TAny *)
void PluginListChangedL ()
TBool PluginUidFinder (const TUid *, const CImplementationInformation &)
void PopulateViewsArrayL ( RArray < CCalenViewInfo > &)
TBool ShouldShowWeekTitleItem ()
void ShowOrHideWeekTitleL ()
void StoreMailboxSettingsL ()
void ValidateWeekTitleItemL ( CAknSettingItem *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
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()
Private Attributes
CCenRepNotifyHandler * iCenRepNotifyHandler
CCalenCustomisationManager & iCustomisationManager
TInt iDefMailbox
TInt iDefView
TInt iExtCalendar
CCalenGlobalData & iGlobalData
TBool iHasSelectedMailbox
TBool iIgnoreFirstLocaleChange
TBool iIgnoreNextSettingsNotification
CAknSettingStyleListBox & iListBox
CEnvironmentChangeNotifier * iLocaleChangeNotifier
RArray < CMRMailboxUtils::TMailboxInfo > iMailBoxes
TBool iPageStatus
CCoeControl * iParentControl
CRepository * iRepository
CAiwServiceHandler * iServiceHandler
CCalenSetting * iSetting
CAknSettingItemArray * iSettingItemArray
TInt iSnoozeTime
TInt iToolbar
TInt iWeekFormat
TInt iWeekNumberEnable
TInt iWeekTitle

Constructor & Destructor Documentation

CCalenSettingsUiContainer(CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)

CCalenSettingsUiContainer ( CCoeControl * aParentControl,
CAknSettingStyleListBox & aListBox,
CCalenGlobalData & aGlobalData,
CCalenCustomisationManager & aCustomisationManager
) [private]

Default C++ constructor

Parameters

CCoeControl * aParentControl
CAknSettingStyleListBox & aListBox
CCalenGlobalData & aGlobalData
CCalenCustomisationManager & aCustomisationManager

~CCalenSettingsUiContainer()

~CCalenSettingsUiContainer ( )

Destructor.

Member Functions Documentation

AddAlarmToneItemL(TInt)

void AddAlarmToneItemL ( TInt aOrdinal ) [private]

Parameters

TInt aOrdinal

AddBinaryItemL(TBool &, TInt, TInt, TInt, TInt, TInt)

void AddBinaryItemL ( TBool & aBuffer,
TInt aId,
TInt aTitleResource,
TInt aSettingPageResource,
TInt aAssociatedResource,
TInt aOrdinal
) [private]

Parameters

TBool & aBuffer
TInt aId
TInt aTitleResource
TInt aSettingPageResource
TInt aAssociatedResource
TInt aOrdinal

AddCustomSettingsItemsL(TInt &)

void AddCustomSettingsItemsL ( TInt & aOrdinal ) [private]

Parameters

TInt & aOrdinal

AddCustomSettingsWithLinkL(RPointerArray< CAknSettingItem > &, const TDesC &, TInt)

void AddCustomSettingsWithLinkL ( RPointerArray < CAknSettingItem > & aSettings,
const TDesC & aName,
TInt aOrdinal
) [private]

Parameters

RPointerArray < CAknSettingItem > & aSettings
const TDesC & aName
TInt aOrdinal

AddDefaultViewItemL(TInt &, TInt, TInt, TInt, TInt)

void AddDefaultViewItemL ( TInt & aBuffer,
TInt aId,
TInt aTitleResource,
TInt aSettingPageResource,
TInt aOrdinal
) [private]

Parameters

TInt & aBuffer
TInt aId
TInt aTitleResource
TInt aSettingPageResource
TInt aOrdinal

AddEnumerationItemL(TInt &, TInt, TInt, TInt, TInt, TInt)

void AddEnumerationItemL ( TInt & aBuffer,
TInt aId,
TInt aTitleResource,
TInt aSettingPageResource,
TInt aAssociatedResource,
TInt aOrdinal
) [private]

Parameters

TInt & aBuffer
TInt aId
TInt aTitleResource
TInt aSettingPageResource
TInt aAssociatedResource
TInt aOrdinal

AddPluginSettingItemL(TInt &)

void AddPluginSettingItemL ( TInt & aOrdinal ) [private]

Parameters

TInt & aOrdinal

AddSingleCustomSettingL(CAknSettingItem *, TInt)

void AddSingleCustomSettingL ( CAknSettingItem * aSetting,
TInt aOrdinal
) [private]

Parameters

CAknSettingItem * aSetting
TInt aOrdinal

AddSnoozeTimeItemL(TInt, CArrayPtr< CGulIcon > *, TInt &)

void AddSnoozeTimeItemL ( TInt aOrdinal,
CArrayPtr < CGulIcon > * aIconArray,
TInt & aSnoozeTime
) [private]

Parameters

TInt aOrdinal
CArrayPtr < CGulIcon > * aIconArray
TInt & aSnoozeTime

ConstructL()

void ConstructL ( ) [private]

Symbian OS default constructor.

ConstructListBoxL()

IMPORT_C void ConstructListBoxL ( )

Creates list box

CreateListBoxItemsL()

void CreateListBoxItemsL ( ) [private]

Creates list box items

CreateMailboxSettingsItemL(TInt)

void CreateMailboxSettingsItemL ( TInt aOrdinal ) [private]

Parameters

TInt aOrdinal

CurrentFeatureId()

IMPORT_C TInt CurrentFeatureId ( ) const
Retrieves the currently selected listbox feature id
Since
3.1

DoLocaleCallbackL()

void DoLocaleCallbackL ( ) [private]

Non static implementation of locale callback. We need to check if the week start has been modified and if so, update the listbox.

ExtCalendarAvailableL()

TBool ExtCalendarAvailableL ( ) [private]

GetHelpContext(TCoeHelpContext &)

void GetHelpContext ( TCoeHelpContext & aContext ) const [private]

Required for help.

Parameters

TCoeHelpContext & aContext

HandleExternalSettingsChangedL(TUint32)

void HandleExternalSettingsChangedL ( TUint32 aId = 0 ) [private]

Called when something else modified our settings.

Parameters

TUint32 aId = 0

HandleListBoxSelectionL(TInt, TBool &)

IMPORT_C void HandleListBoxSelectionL ( TInt aCommand,
TBool & aPageStatus
)

Handle listbox selection event

Parameters

TInt aCommand Command id to tell origin of event
TBool & aPageStatus

HandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)

void HandleNotifyError ( TUint32 aId,
TInt aError,
CCenRepNotifyHandler * aHandler
) [private]

Called when the central repository changes.

Parameters

TUint32 aId
TInt aError
CCenRepNotifyHandler * aHandler

HandleNotifyGeneric(TUint32)

void HandleNotifyGeneric ( TUint32 aId ) [private]

Parameters

TUint32 aId

HandlePluginChange()

void HandlePluginChange ( ) [private]

Item(TSettingListItemId)

CAknSettingItem * Item ( TSettingListItemId aId ) [private]

Parameters

TSettingListItemId aId

LoadCurrentValuesL()

void LoadCurrentValuesL ( ) [private]

LoadMailboxSettingsL()

void LoadMailboxSettingsL ( ) [private]

LocaleCallbackL(TAny *)

TInt LocaleCallbackL ( TAny * aThisPtr ) [private, static]

This function is called when the locale is changed.

Parameters

TAny * aThisPtr Pointer to this object

NewL(CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)

IMPORT_C CCalenSettingsUiContainer * NewL ( CCoeControl * aParentControl,
CAknSettingStyleListBox & aListBox,
CCalenGlobalData & aGlobalData,
CCalenCustomisationManager & aCustomisationManager
) [static]

Two-phased constructor. Does NOT take ownership of aParentControl or aListBox.

Parameters

CCoeControl * aParentControl Parent control. Ownership remains with caller.
CAknSettingStyleListBox & aListBox Listbox used in this settings menu. Ownership remains with caller.
CCalenGlobalData & aGlobalData
CCalenCustomisationManager & aCustomisationManager

PluginListChangedL()

void PluginListChangedL ( ) [private]

PluginUidFinder(const TUid *, const CImplementationInformation &)

TBool PluginUidFinder ( const TUid * aUid,
const CImplementationInformation & aArrayItem
) [private, static]

Matches a uid to an array item's uid. Used in Find().

Parameters

const TUid * aUid
const CImplementationInformation & aArrayItem

PopulateViewsArrayL(RArray< CCalenViewInfo > &)

void PopulateViewsArrayL ( RArray < CCalenViewInfo > & aArray ) [private]

Populates the given array.

Parameters

RArray < CCalenViewInfo > & aArray

ShouldShowWeekTitleItem()

TBool ShouldShowWeekTitleItem ( ) const [private]

ShowOrHideWeekTitleL()

void ShowOrHideWeekTitleL ( ) [private]

Shows or hides the week title setting as appropriate.

StoreMailboxSettingsL()

void StoreMailboxSettingsL ( ) [private]

Stores changes to the default mailbox setting.

UpdateListBoxL()

IMPORT_C void UpdateListBoxL ( )

Updates list box

ValidateWeekTitleItemL(CAknSettingItem *)

void ValidateWeekTitleItemL ( CAknSettingItem * aItem ) [private]

Parameters

CAknSettingItem * aItem

Member Data Documentation

CCenRepNotifyHandler * iCenRepNotifyHandler

CCenRepNotifyHandler * iCenRepNotifyHandler [private]

CCalenCustomisationManager & iCustomisationManager

CCalenCustomisationManager & iCustomisationManager [private]

TInt iDefMailbox

TInt iDefMailbox [private]

TInt iDefView

TInt iDefView [private]

TInt iExtCalendar

TInt iExtCalendar [private]

CCalenGlobalData & iGlobalData

CCalenGlobalData & iGlobalData [private]

TBool iHasSelectedMailbox

TBool iHasSelectedMailbox [private]

TBool iIgnoreFirstLocaleChange

TBool iIgnoreFirstLocaleChange [private]

TBool iIgnoreNextSettingsNotification

TBool iIgnoreNextSettingsNotification [private]

CAknSettingStyleListBox & iListBox

CAknSettingStyleListBox & iListBox [private]

CEnvironmentChangeNotifier * iLocaleChangeNotifier

CEnvironmentChangeNotifier * iLocaleChangeNotifier [private]

RArray< CMRMailboxUtils::TMailboxInfo > iMailBoxes

RArray < CMRMailboxUtils::TMailboxInfo > iMailBoxes [private]

TBool iPageStatus

TBool iPageStatus [private]

CCoeControl * iParentControl

CCoeControl * iParentControl [private]

CRepository * iRepository

CRepository * iRepository [private]

CAiwServiceHandler * iServiceHandler

CAiwServiceHandler * iServiceHandler [private]

CCalenSetting * iSetting

CCalenSetting * iSetting [private]

CAknSettingItemArray * iSettingItemArray

CAknSettingItemArray * iSettingItemArray [private]

Array of setting items contained in the listbox. Owned.

TInt iSnoozeTime

TInt iSnoozeTime [private]

TInt iToolbar

TInt iToolbar [private]

TInt iWeekFormat

TInt iWeekFormat [private]

TInt iWeekNumberEnable

TInt iWeekNumberEnable [private]

TInt iWeekTitle

TInt iWeekTitle [private]