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 )
TCalTime DefaultCalTimeForViewsL ()
TTimeIntervalMinutes DefaultTimeForViews ()
TCalTime FocusDateAndTimeL ()
TTimeIntervalMinutes FocusTime ()
HBufC * GetCalAlarmEntryFileNameL ()
TDesC & GetCalendarFileNameL ()
CPosLandmark * GetLandMark ()
RArray < TCalenInstanceId > & GetMutlipleContextIds ( TInt )
TCalenInstanceId InstanceId ()
TInt MutlipleContextIdsCount ()
void RemoveMultipleContextId ( TCalenInstanceId )
void ResetCalAlarmEntryFileName ()
void ResetCalendarFileName ()
void ResetLandMark ()
void ResetMultipleContextIds ( TInt )
void SetCalAlarmEntryFileNameL (const TDesC &)
void SetCalAlarmEntryLocalUid ( TCalLocalUid )
void SetCalendarFileNameL (const TDesC &)
void SetFocusDateAndTimeAndInstanceL (const TCalTime &, const TCalenInstanceId &, const TVwsViewId &)
void SetFocusDateAndTimeL (const TCalTime &, const TVwsViewId &)
void SetFocusDateL (const TCalTime &, const TVwsViewId &)
void SetInstanceIdL (const TCalenInstanceId &, const TVwsViewId &)
void SetLandMark ( CPosLandmark *)
void SetMutlipleContextIds ( 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
TCalTime iFocusDate
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 ( TUid aExtensionUid )

Allows extending this API without breaking BC.

Parameters

TUid aExtensionUid specifies

DefaultCalTimeForViewsL()

TCalTime DefaultCalTimeForViewsL ( ) 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()

TCalTime FocusDateAndTimeL ( ) 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 ( TInt aDbId = 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)

void RemoveMultipleContextId ( TCalenInstanceId aInstanceId )

Remove multiple context id

Parameters

TCalenInstanceId aInstanceId Instance Id for which context to be removed

ResetCalAlarmEntryFileName()

void ResetCalAlarmEntryFileName ( )

ResetCalendarFileName()

void ResetCalendarFileName ( )

ResetLandMark()

void ResetLandMark ( )

Resets the landmark

ResetMultipleContextIds(TInt)

void ResetMultipleContextIds ( TInt aDbId = 0 )

Resets all the multiple context ids

Parameters

TInt aDbId = 0

SetCalAlarmEntryFileNameL(const TDesC &)

void SetCalAlarmEntryFileNameL ( const TDesC & aName )

Parameters

const TDesC & aName

SetCalAlarmEntryLocalUid(TCalLocalUid)

void SetCalAlarmEntryLocalUid ( TCalLocalUid aLocalId )

Parameters

TCalLocalUid aLocalId

SetCalendarFileNameL(const TDesC &)

void SetCalendarFileNameL ( const TDesC & aName )

Parameters

const TDesC & aName referance to calendar file name

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

void SetFocusDateAndTimeAndInstanceL ( const TCalTime & aFocusDateTime,
const TCalenInstanceId & aInstanceId,
const TVwsViewId & aViewId
)

Sets the time and instance currently focused.

Parameters

const TCalTime & aFocusDateTime
const TCalenInstanceId & aInstanceId the id of the focused instance.
const TVwsViewId & aViewId The view id of the currently active view.

SetFocusDateAndTimeL(const TCalTime &, const TVwsViewId &)

void SetFocusDateAndTimeL ( const TCalTime & aFocusDateTime,
const TVwsViewId & aViewId
)

Sets the date and time currently focused.

Parameters

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

SetFocusDateL(const TCalTime &, const TVwsViewId &)

void SetFocusDateL ( 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 & aFocusDate The new focus date and time.
const TVwsViewId & aViewId The view id of the currently active view.

SetInstanceIdL(const TCalenInstanceId &, const TVwsViewId &)

void SetInstanceIdL ( const TCalenInstanceId & aInstanceId,
const TVwsViewId & aViewId
)

Sets the id of the instance currently focused.

Parameters

const TCalenInstanceId & aInstanceId the id of the focused instance.
const TVwsViewId & aViewId The view id of the currently active view.

SetLandMark(CPosLandmark *)

void SetLandMark ( CPosLandmark * aLandMark )

Sets the user selected landmark

Parameters

CPosLandmark * aLandMark Landmark object

SetMutlipleContextIds(RArray< TCalenInstanceId > &)

void SetMutlipleContextIds ( 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

TCalTime iFocusDate [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]