CCalenSettingsUiContainer Class Reference

class CCalenSettingsUiContainer : public CBase

Inherits from

  • CCalenSettingsUiContainer
Public Member Functions
~CCalenSettingsUiContainer()
IMPORT_C voidConstructListBoxL()
IMPORT_C TIntCurrentFeatureId()
IMPORT_C voidHandleListBoxSelectionL(TInt, TBool &)
IMPORT_C CCalenSettingsUiContainer *NewL(CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)
IMPORT_C voidUpdateListBoxL()
Private Member Functions
CCalenSettingsUiContainer(CCoeControl *, CAknSettingStyleListBox &, CCalenGlobalData &, CCalenCustomisationManager &)
voidAddAlarmToneItemL(TInt)
voidAddBinaryItemL(TBool &, TInt, TInt, TInt, TInt, TInt)
voidAddCustomSettingsItemsL(TInt &)
voidAddCustomSettingsWithLinkL(RPointerArray< CAknSettingItem > &, const TDesC &, TInt)
voidAddDefaultViewItemL(TInt &, TInt, TInt, TInt, TInt)
voidAddEnumerationItemL(TInt &, TInt, TInt, TInt, TInt, TInt)
voidAddPluginSettingItemL(TInt &)
voidAddSingleCustomSettingL(CAknSettingItem *, TInt)
voidAddSnoozeTimeItemL(TInt, CArrayPtr< CGulIcon > *, TInt &)
voidConstructL()
voidCreateListBoxItemsL()
voidCreateMailboxSettingsItemL(TInt)
voidDoLocaleCallbackL()
TBool ExtCalendarAvailableL()
voidGetHelpContext(TCoeHelpContext &)
voidHandleExternalSettingsChangedL(TUint32)
voidHandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)
voidHandleNotifyGeneric(TUint32)
voidHandlePluginChange()
CAknSettingItem *Item(TSettingListItemId)
voidLoadCurrentValuesL()
voidLoadMailboxSettingsL()
TInt LocaleCallbackL(TAny *)
voidPluginListChangedL()
TBool PluginUidFinder(const TUid *, const CImplementationInformation &)
voidPopulateViewsArrayL(RArray< CCalenViewInfo > &)
TBool ShouldShowWeekTitleItem()
voidShowOrHideWeekTitleL()
voidStoreMailboxSettingsL()
voidValidateWeekTitleItemL(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)

voidAddAlarmToneItemL(TIntaOrdinal)[private]

Parameters

TInt aOrdinal

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

voidAddBinaryItemL(TBool &aBuffer,
TIntaId,
TIntaTitleResource,
TIntaSettingPageResource,
TIntaAssociatedResource,
TIntaOrdinal
)[private]

Parameters

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

AddCustomSettingsItemsL(TInt &)

voidAddCustomSettingsItemsL(TInt &aOrdinal)[private]

Parameters

TInt & aOrdinal

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

voidAddCustomSettingsWithLinkL(RPointerArray< CAknSettingItem > &aSettings,
const TDesC &aName,
TIntaOrdinal
)[private]

Parameters

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

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

voidAddDefaultViewItemL(TInt &aBuffer,
TIntaId,
TIntaTitleResource,
TIntaSettingPageResource,
TIntaOrdinal
)[private]

Parameters

TInt & aBuffer
TInt aId
TInt aTitleResource
TInt aSettingPageResource
TInt aOrdinal

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

voidAddEnumerationItemL(TInt &aBuffer,
TIntaId,
TIntaTitleResource,
TIntaSettingPageResource,
TIntaAssociatedResource,
TIntaOrdinal
)[private]

Parameters

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

AddPluginSettingItemL(TInt &)

voidAddPluginSettingItemL(TInt &aOrdinal)[private]

Parameters

TInt & aOrdinal

AddSingleCustomSettingL(CAknSettingItem *, TInt)

voidAddSingleCustomSettingL(CAknSettingItem *aSetting,
TIntaOrdinal
)[private]

Parameters

CAknSettingItem * aSetting
TInt aOrdinal

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

voidAddSnoozeTimeItemL(TIntaOrdinal,
CArrayPtr< CGulIcon > *aIconArray,
TInt &aSnoozeTime
)[private]

Parameters

TInt aOrdinal
CArrayPtr< CGulIcon > * aIconArray
TInt & aSnoozeTime

ConstructL()

voidConstructL()[private]

Symbian OS default constructor.

ConstructListBoxL()

IMPORT_C voidConstructListBoxL()

Creates list box

CreateListBoxItemsL()

voidCreateListBoxItemsL()[private]

Creates list box items

CreateMailboxSettingsItemL(TInt)

voidCreateMailboxSettingsItemL(TIntaOrdinal)[private]

Parameters

TInt aOrdinal

CurrentFeatureId()

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

DoLocaleCallbackL()

voidDoLocaleCallbackL()[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 &)

voidGetHelpContext(TCoeHelpContext &aContext)const [private]

Required for help.

Parameters

TCoeHelpContext & aContext

HandleExternalSettingsChangedL(TUint32)

voidHandleExternalSettingsChangedL(TUint32aId = 0)[private]

Called when something else modified our settings.

Parameters

TUint32 aId = 0

HandleListBoxSelectionL(TInt, TBool &)

IMPORT_C voidHandleListBoxSelectionL(TIntaCommand,
TBool &aPageStatus
)

Handle listbox selection event

Parameters

TInt aCommandCommand id to tell origin of event
TBool & aPageStatus

HandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)

voidHandleNotifyError(TUint32aId,
TIntaError,
CCenRepNotifyHandler *aHandler
)[private]

Called when the central repository changes.

Parameters

TUint32 aId
TInt aError
CCenRepNotifyHandler * aHandler

HandleNotifyGeneric(TUint32)

voidHandleNotifyGeneric(TUint32aId)[private]

Parameters

TUint32 aId

HandlePluginChange()

voidHandlePluginChange()[private]

Item(TSettingListItemId)

CAknSettingItem *Item(TSettingListItemIdaId)[private]

Parameters

TSettingListItemId aId

LoadCurrentValuesL()

voidLoadCurrentValuesL()[private]

LoadMailboxSettingsL()

voidLoadMailboxSettingsL()[private]

LocaleCallbackL(TAny *)

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

This function is called when the locale is changed.

Parameters

TAny * aThisPtrPointer 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 * aParentControlParent control. Ownership remains with caller.
CAknSettingStyleListBox & aListBoxListbox used in this settings menu. Ownership remains with caller.
CCalenGlobalData & aGlobalData
CCalenCustomisationManager & aCustomisationManager

PluginListChangedL()

voidPluginListChangedL()[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 > &)

voidPopulateViewsArrayL(RArray< CCalenViewInfo > &aArray)[private]

Populates the given array.

Parameters

RArray< CCalenViewInfo > & aArray

ShouldShowWeekTitleItem()

TBool ShouldShowWeekTitleItem()const [private]

ShowOrHideWeekTitleL()

voidShowOrHideWeekTitleL()[private]

Shows or hides the week title setting as appropriate.

StoreMailboxSettingsL()

voidStoreMailboxSettingsL()[private]

Stores changes to the default mailbox setting.

UpdateListBoxL()

IMPORT_C voidUpdateListBoxL()

Updates list box

ValidateWeekTitleItemL(CAknSettingItem *)

voidValidateWeekTitleItemL(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]