CCalenContextImpl Class Reference

class CCalenContextImpl : public CBase

The controller handles events from the rest of Calendar and delegates them to the appropriate place (i.e. the action ui classes).

Inherits from

Public Member Functions
CCalenContextImpl(MCalenContextChangeObserver *)
CCalenContextImpl()
CCalenContextImpl(const CCalenContextImpl &)
~CCalenContextImpl()
TCalLocalUid CalAlarmLocalUidL()
TAny *CalenContextExtensionL(TUid)
TCalTimeDefaultCalTimeForViewsL()
TTimeIntervalMinutes DefaultTimeForViews()
TCalTimeFocusDateAndTimeL()
TTimeIntervalMinutes FocusTime()
HBufC *GetCalAlarmEntryFileNameL()
TDesC &GetCalendarFileNameL()
CPosLandmark *GetLandMark()
RArray< TCalenInstanceId > &GetMutlipleContextIds(TInt)
TCalenInstanceId InstanceId()
TInt MutlipleContextIdsCount()
voidRemoveMultipleContextId(TCalenInstanceId)
voidResetCalAlarmEntryFileName()
voidResetCalendarFileName()
voidResetLandMark()
voidResetMultipleContextIds(TInt)
voidSetCalAlarmEntryFileNameL(const TDesC &)
voidSetCalAlarmEntryLocalUid(TCalLocalUid)
voidSetCalendarFileNameL(const TDesC &)
voidSetFocusDateAndTimeAndInstanceL(const TCalTime &, const TCalenInstanceId &, const TVwsViewId &)
voidSetFocusDateAndTimeL(const TCalTime &, const TVwsViewId &)
voidSetFocusDateL(const TCalTime &, const TVwsViewId &)
voidSetInstanceIdL(const TCalenInstanceId &, const TVwsViewId &)
voidSetLandMark(CPosLandmark *)
voidSetMutlipleContextIds(RArray< TCalenInstanceId > &)
TVwsViewId ViewId()
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
HBufC *iCalAlarmEntryFileName
TCalLocalUid iCalAlarmLocalUid
HBufC *iCalenFileName
TCalTimeiFocusDate
TTimeIntervalMinutes iFocusTime
CCalGeoValue *iGeoValue
TCalenInstanceId iInstanceId
CPosLandmark *iLandMark
HBufC *iLocation
RArray< TCalenInstanceId >iMutlipleContextIds
MCalenContextChangeObserver *iObserver
TVwsViewId iViewId

Constructor & Destructor Documentation

CCalenContextImpl(MCalenContextChangeObserver *)

CCalenContextImpl(MCalenContextChangeObserver *aObserver)

The only reason this should be created outside of this dll is for SCalenCommand, which needs a default constructor. Normal usage is to use the accessor from the global data. Attempting to call "setters" on any context not from the global data will panic.

Parameters

MCalenContextChangeObserver * aObserver

CCalenContextImpl()

CCalenContextImpl()

CCalenContextImpl(const CCalenContextImpl &)

CCalenContextImpl(const CCalenContextImpl &aContext)

Parameters

const CCalenContextImpl & aContext

~CCalenContextImpl()

~CCalenContextImpl()

Member Functions Documentation

CalAlarmLocalUidL()

TCalLocalUid CalAlarmLocalUidL()const

CalenContextExtensionL(TUid)

TAny *CalenContextExtensionL(TUidaExtensionUid)

Allows extending this API without breaking BC.

Parameters

TUid aExtensionUidspecifies

DefaultCalTimeForViewsL()

TCalTimeDefaultCalTimeForViewsL()const

Returns the default TCalTime for views. (Normally 8am today.) This would be used for example when a view is the first view loaded in Calendar.

DefaultTimeForViews()

TTimeIntervalMinutes DefaultTimeForViews()const

Returns the default time for views. (Normally 8am.) This would be used for example by the month view, which sets the focus time to 8am on a day. Then when opening the week view, a sane time is shown.

FocusDateAndTimeL()

TCalTimeFocusDateAndTimeL()const

Gets the date and time currently focused.

FocusTime()

TTimeIntervalMinutes FocusTime()const

Gets the time currently focused.

GetCalAlarmEntryFileNameL()

HBufC *GetCalAlarmEntryFileNameL()const

GetCalendarFileNameL()

TDesC &GetCalendarFileNameL()const

GetLandMark()

CPosLandmark *GetLandMark()

Returns the user selected landmark

GetMutlipleContextIds(TInt)

RArray< TCalenInstanceId > &GetMutlipleContextIds(TIntaDbId = 0)

Getter for multiple context ids

Parameters

TInt aDbId = 0

InstanceId()

TCalenInstanceId InstanceId()const

Gets the id of the instance currently focused.

MutlipleContextIdsCount()

TInt MutlipleContextIdsCount()

Returns mutliple context's count

RemoveMultipleContextId(TCalenInstanceId)

voidRemoveMultipleContextId(TCalenInstanceIdaInstanceId)

Remove multiple context id

Parameters

TCalenInstanceId aInstanceIdInstance Id for which context to be removed

ResetCalAlarmEntryFileName()

voidResetCalAlarmEntryFileName()

ResetCalendarFileName()

voidResetCalendarFileName()

ResetLandMark()

voidResetLandMark()

Resets the landmark

ResetMultipleContextIds(TInt)

voidResetMultipleContextIds(TIntaDbId = 0)

Resets all the multiple context ids

Parameters

TInt aDbId = 0

SetCalAlarmEntryFileNameL(const TDesC &)

voidSetCalAlarmEntryFileNameL(const TDesC &aName)

Parameters

const TDesC & aName

SetCalAlarmEntryLocalUid(TCalLocalUid)

voidSetCalAlarmEntryLocalUid(TCalLocalUidaLocalId)

Parameters

TCalLocalUid aLocalId

SetCalendarFileNameL(const TDesC &)

voidSetCalendarFileNameL(const TDesC &aName)

Parameters

const TDesC & aNamereferance to calendar file name

SetFocusDateAndTimeAndInstanceL(const TCalTime &, const TCalenInstanceId &, const TVwsViewId &)

voidSetFocusDateAndTimeAndInstanceL(const TCalTime &aFocusDateTime,
const TCalenInstanceId &aInstanceId,
const TVwsViewId &aViewId
)

Sets the time and instance currently focused.

Parameters

const TCalTime & aFocusDateTime
const TCalenInstanceId & aInstanceIdthe id of the focused instance.
const TVwsViewId & aViewIdThe view id of the currently active view.

SetFocusDateAndTimeL(const TCalTime &, const TVwsViewId &)

voidSetFocusDateAndTimeL(const TCalTime &aFocusDateTime,
const TVwsViewId &aViewId
)

Sets the date and time currently focused.

Parameters

const TCalTime & aFocusDateTime
const TVwsViewId & aViewIdThe view id of the currently active view.

SetFocusDateL(const TCalTime &, const TVwsViewId &)

voidSetFocusDateL(const TCalTime &aFocusDate,
const TVwsViewId &aViewId
)

Sets the date currently focused. When retrieving the focus date and time after calling this function, the time component will be set to the default of view. When retrieving the focus time only, it will be set to -1.

Parameters

const TCalTime & aFocusDateThe new focus date and time.
const TVwsViewId & aViewIdThe view id of the currently active view.

SetInstanceIdL(const TCalenInstanceId &, const TVwsViewId &)

voidSetInstanceIdL(const TCalenInstanceId &aInstanceId,
const TVwsViewId &aViewId
)

Sets the id of the instance currently focused.

Parameters

const TCalenInstanceId & aInstanceIdthe id of the focused instance.
const TVwsViewId & aViewIdThe view id of the currently active view.

SetLandMark(CPosLandmark *)

voidSetLandMark(CPosLandmark *aLandMark)

Sets the user selected landmark

Parameters

CPosLandmark * aLandMarkLandmark object

SetMutlipleContextIds(RArray< TCalenInstanceId > &)

voidSetMutlipleContextIds(RArray< TCalenInstanceId > &aMutlipleContextIds)

Set multiple context ids

Parameters

RArray< TCalenInstanceId > & aMutlipleContextIds

ViewId()

TVwsViewId ViewId()const

Gets the id of the currently active view.

Member Data Documentation

HBufC * iCalAlarmEntryFileName

HBufC *iCalAlarmEntryFileName[private]

TCalLocalUid iCalAlarmLocalUid

TCalLocalUid iCalAlarmLocalUid[private]

HBufC * iCalenFileName

HBufC *iCalenFileName[private]

TCalTime iFocusDate

TCalTimeiFocusDate[private]

TTimeIntervalMinutes iFocusTime

TTimeIntervalMinutes iFocusTime[private]

CCalGeoValue * iGeoValue

CCalGeoValue *iGeoValue[private]

TCalenInstanceId iInstanceId

TCalenInstanceId iInstanceId[private]

CPosLandmark * iLandMark

CPosLandmark *iLandMark[private]

HBufC * iLocation

HBufC *iLocation[private]

RArray< TCalenInstanceId > iMutlipleContextIds

RArray< TCalenInstanceId >iMutlipleContextIds[private]

MCalenContextChangeObserver * iObserver

MCalenContextChangeObserver *iObserver[private]

TVwsViewId iViewId

TVwsViewId iViewId[private]