CCalenViewInfo Class Reference

class CCalenViewInfo : public CBase

Wrapper around views. This lets us quickly get info on views. When accessed through general settings, native views won't be constructed so their iView pointer will be NULL.

Inherits from

Public Member Functions
~CCalenViewInfo()
IMPORT_C CCalenView::TCyclePositionCyclePosition()
IMPORT_C TIntCyclePositionComparison(const CCalenViewInfo &, const CCalenViewInfo &)
IMPORT_C TBoolHidden()
IMPORT_C voidHide(TBool)
IMPORT_C const TDesC &MenuName()
IMPORT_C CCalenViewInfo *NewL(TUid, TUid, const TDesC &, const TDesC &, CCalenView::TCyclePosition)
IMPORT_C TUidPluginUid()
IMPORT_C const TDesC &SettingsName()
IMPORT_C TBoolViewInfoIdentifier(const TUid *, const CCalenViewInfo &)
IMPORT_C TBoolViewPluginIdentifier(const TUid *, const CCalenViewInfo &)
IMPORT_C TUidViewUid()
Private Member Functions
CCalenViewInfo(TUid, TUid, CCalenView::TCyclePosition)
voidConstructL(const TDesC &, const TDesC &)
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
CCalenView::TCyclePositioniCyclePos
TBool iHidden
HBufC *iMenuName
TUid iPluginUid
HBufC *iSettingsName
TUid iViewUid

Constructor & Destructor Documentation

CCalenViewInfo(TUid, TUid, CCalenView::TCyclePosition)

CCalenViewInfo(TUidaViewUid,
TUidaPluginUid,
CCalenView::TCyclePositionaCyclePos
)[private]

Parameters

TUid aViewUid
TUid aPluginUid
CCalenView::TCyclePosition aCyclePos

~CCalenViewInfo()

~CCalenViewInfo()[virtual]

Member Functions Documentation

ConstructL(const TDesC &, const TDesC &)

voidConstructL(const TDesC &aMenuName,
const TDesC &aSettingsName
)[private]

Parameters

const TDesC & aMenuName
const TDesC & aSettingsName

CyclePosition()

IMPORT_C CCalenView::TCyclePositionCyclePosition()const

Position the view would like to go in view cycling.

CyclePositionComparison(const CCalenViewInfo &, const CCalenViewInfo &)

IMPORT_C TIntCyclePositionComparison(const CCalenViewInfo &aFirstView,
const CCalenViewInfo &aSecondView
)[static]

Compares two views based upon their view cycle position used for sorting CCalenViewInfo arrays.

Parameters

const CCalenViewInfo & aFirstView
const CCalenViewInfo & aSecondView

Hidden()

IMPORT_C TBoolHidden()const

Is the view hidden?

Hide(TBool)

IMPORT_C voidHide(TBoolaHide)

Hide the view from the view cycle list

Parameters

TBool aHide

MenuName()

IMPORT_C const TDesC &MenuName()const

Localised view name, as appears in e.g. view cycle menu.

NewL(TUid, TUid, const TDesC &, const TDesC &, CCalenView::TCyclePosition)

IMPORT_C CCalenViewInfo *NewL(TUidaViewUid,
TUidaPluginUid,
const TDesC &aMenuName,
const TDesC &aSettingsName,
CCalenView::TCyclePositionaCyclePos
)[static]

Parameters

TUid aViewUid
TUid aPluginUid
const TDesC & aMenuName
const TDesC & aSettingsName
CCalenView::TCyclePosition aCyclePos

PluginUid()

IMPORT_C TUidPluginUid()const

UID of the plugin.

SettingsName()

IMPORT_C const TDesC &SettingsName()const

Localised view name, as appears in default view settings page.

ViewInfoIdentifier(const TUid *, const CCalenViewInfo &)

IMPORT_C TBoolViewInfoIdentifier(const TUid *aUid,
const CCalenViewInfo &aArrayItem
)[static]

Matches a CCalenViewInfo object with its view Uid

Parameters

const TUid * aUid
const CCalenViewInfo & aArrayItem

ViewPluginIdentifier(const TUid *, const CCalenViewInfo &)

IMPORT_C TBoolViewPluginIdentifier(const TUid *aUid,
const CCalenViewInfo &aArrayItem
)[static]

Matches a CCalenViewInfo object with its plugin uid.

Parameters

const TUid * aUid
const CCalenViewInfo & aArrayItem

ViewUid()

IMPORT_C TUidViewUid()const

UID of the view.

Member Data Documentation

CCalenView::TCyclePosition iCyclePos

CCalenView::TCyclePositioniCyclePos[private]

TBool iHidden

TBool iHidden[private]

HBufC * iMenuName

HBufC *iMenuName[private]

TUid iPluginUid

TUid iPluginUid[private]

HBufC * iSettingsName

HBufC *iSettingsName[private]

TUid iViewUid

TUid iViewUid[private]