#include <mw/aknsettingitemlist.h>
class CAknTimeOrDateSettingItem : public CAknSettingItem |
Public Member Enumerations | |
---|---|
enum | TAknTimeOrDateSettingItemMode { ETime, EDate } |
Public Member Functions | |
---|---|
CAknTimeOrDateSettingItem(TInt, enum TAknTimeOrDateSettingItemMode, TTime &) | |
~CAknTimeOrDateSettingItem() | |
virtual IMPORT_C void | CompleteConstructionL() |
virtual IMPORT_C void | EditItemL(TBool) |
virtual IMPORT_C void | LoadL() |
IMPORT_C void | SetTimeFormatStringL(const TDesC &) |
virtual IMPORT_C const TDesC & | SettingTextL() |
virtual IMPORT_C void | StoreL() |
IMPORT_C const TPtrC | TimeFormatString() |
Inherited Enumerations | |
---|---|
CAknSettingItem:TFlags | |
CAknSettingItem:TSettingItemProtection |
Time or Date Setting Item
This class combines the time and the date functionality, as determined by a mode passed to the constructor.
Time or Date setting pages are launched from here, which use Time or date editor MFNEs to do the editing.
IMPORT_C | CAknTimeOrDateSettingItem | ( | TInt | aIdentifier, |
enum TAknTimeOrDateSettingItemMode | aMode, | |||
TTime & | aTime | |||
) |
IMPORT_C void | CompleteConstructionL | ( | ) | [virtual] |
Reimplemented from CAknSettingItem::CompleteConstructionL()
Method called by framework to complete the construction. Extra allocations of memory or extra resource reading can happen here.
IMPORT_C void | EditItemL | ( | TBool | aCalledFromMenu | ) | [virtual] |
Reimplemented from CAknSettingItem::EditItemL(TBool)
This launches the setting page for Time or Date editing
Parameter | Description |
---|---|
aCalledFromMenu | - ignored in this class |
IMPORT_C void | SetTimeFormatStringL | ( | const TDesC & | aTimeFormat | ) |
Set the time or date format string. If this is not called, then a localized, default string is used
IMPORT_C const TDesC & | SettingTextL | ( | ) | [virtual] |
Reimplemented from CAknSettingItem::SettingTextL()
IMPORT_C void | StoreL | ( | ) | [virtual] |
Reimplemented from CAknSettingItem::StoreL()
This command externalizes the current setting. The displayed (internal) copy is transferred to the external copy (the one referenced in the constructor).
This must be called by the client if he wants this to happen. Note that StoreAllL() on the setting item list will call this for each setting item.
IMPORT_C const TPtrC | TimeFormatString | ( | ) |
Obtain the time format string
Returns: A pointer descriptor to the date/time format string