Inherits MCalendarEngineCommandsInterface.
Public Member Functions | |
virtual | ~CCalendarAPIexampleEngine () |
void | AddAnniversaryL (CCalEntry *aAnniv) |
void | UpdateAnniversaryL (CCalEntry *aAnniv) |
void | DeleteAnniversaryL (CCalEntry *aAnniv) |
void | GetAnniversariesL (const TDateTime &aFrom, const TDateTime &aTo, RPointerArray< CCalInstance > &aAnniversaries) |
TInt | EntryCount () const |
CCalHelperEntry & | Entry (const TInt &aIndex) |
void | DoSearchL (const TSearchType &aType) |
void | DoAddL () |
TInt | ModifyIndex () const |
void | SetModifyIndex (const TInt &aIndex) |
void | CreateEntryForModificationL (TBool &aModify) |
void | SaveL () |
void | DoSaveL () |
void | DeleteEntryL (const TInt &aIndex) |
TBool | SetValuesToNewEntry (const TDesC &aName, const TDateTime &aDate, const TBool &aAlarm, const TDateTime &aAlarmTime, const TInt &aSynchronizationMethod) |
void | GetValuesToSet (TDes &aName, TTime &aDate, TBool &aAlarm, TTime &aAlarmTime, TInt &aSync) |
void | ExecuteDeletionL () |
Static Public Member Functions | |
static CCalendarAPIexampleEngine * | NewL (MCalenderEngineObserverUI &aAppUi) |
CCalendarAPIexampleEngine engine class. Provides support for the following features:
Definition at line 78 of file CalendarAPIexampleEngine.h.
CCalendarAPIexampleEngine::~CCalendarAPIexampleEngine | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file CalendarAPIexampleEngine.cpp.
CCalendarAPIexampleEngine * CCalendarAPIexampleEngine::NewL | ( | MCalenderEngineObserverUI & | aAppUi | ) | [static] |
Two-phased constructor.
Definition at line 87 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::AddAnniversaryL | ( | CCalEntry * | aAnniv | ) |
Adds an anniversary to the agenda file. param aAnniv - CCalEntry object that is added to the agenda file
Definition at line 218 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::UpdateAnniversaryL | ( | CCalEntry * | aAnniv | ) |
Updates an anniversarys data to the agenda file. param aAnniv - CCalEntry object that is updated
Definition at line 253 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::DeleteAnniversaryL | ( | CCalEntry * | aAnniv | ) |
Deletes an anniversary from the agenda file. param aAnniv - CCalEntry object that is deleted from the agenda file
void CCalendarAPIexampleEngine::GetAnniversariesL | ( | const TDateTime & | aFrom, | |
const TDateTime & | aTo, | |||
RPointerArray< CCalInstance > & | aAnniversaries | |||
) |
Finds all anniversaries within given time interval. param aFrom - date where the searching begins param aTo - date where the search ends param aAnniversaries - found anniversaries are put to this array.
TInt CCalendarAPIexampleEngine::EntryCount | ( | ) | const [virtual] |
Returns the number of found anniversaries.
Implements MCalendarEngineCommandsInterface.
Definition at line 574 of file CalendarAPIexampleEngine.cpp.
CCalHelperEntry & CCalendarAPIexampleEngine::Entry | ( | const TInt & | aIndex | ) | [virtual] |
Returns a reference to an entry. param aIndex - index of the wanted entry.
Implements MCalendarEngineCommandsInterface.
Definition at line 629 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::DoSearchL | ( | const TSearchType & | aType | ) | [virtual] |
Finds all anniversaries in given time interval. param aType - search interval (week, month...)
Implements MCalendarEngineCommandsInterface.
Definition at line 289 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::DoAddL | ( | ) | [virtual] |
Activates the proper view for adding entries.
Implements MCalendarEngineCommandsInterface.
Definition at line 428 of file CalendarAPIexampleEngine.cpp.
TInt CCalendarAPIexampleEngine::ModifyIndex | ( | ) | const [virtual] |
Returns the modify index.
Implements MCalendarEngineCommandsInterface.
Definition at line 649 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::SetModifyIndex | ( | const TInt & | aIndex | ) | [virtual] |
Sets the modify index to given index. Modify index is used when calling CreateEntryForModificationL. param aIndex - modify index is set to this index
Implements MCalendarEngineCommandsInterface.
Definition at line 528 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::CreateEntryForModificationL | ( | TBool & | aModify | ) | [virtual] |
Returns a reference to an entry. If iModifyIndex is negative, a new entry is created, otherwise a reference to an existing entry (defined by iModifyIndex) is returned. param aModify - is set to EFalse if a new entry was created and ETrue if existing entry was returned.
Implements MCalendarEngineCommandsInterface.
Definition at line 550 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::SaveL | ( | ) |
Adds or updates the current entry to the agenda file. Current entry is defined by calling CreateEntryForModificationL().
void CCalendarAPIexampleEngine::DoSaveL | ( | ) | [virtual] |
DoSaveL() Called from the views when there's a need to save data.
Implements MCalendarEngineCommandsInterface.
Definition at line 443 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::DeleteEntryL | ( | const TInt & | aIndex | ) | [virtual] |
Deletes an entry from the agenda file. param aIndex - index of which entry is deleted.
Implements MCalendarEngineCommandsInterface.
Definition at line 373 of file CalendarAPIexampleEngine.cpp.
TBool CCalendarAPIexampleEngine::SetValuesToNewEntry | ( | const TDesC & | aName, | |
const TDateTime & | aDate, | |||
const TBool & | aAlarm, | |||
const TDateTime & | aAlarmTime, | |||
const TInt & | aSynchronizationMethod | |||
) | [virtual] |
Called by the view when there are values to be set to the new entry
Implements MCalendarEngineCommandsInterface.
Definition at line 579 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::GetValuesToSet | ( | TDes & | aName, | |
TTime & | aDate, | |||
TBool & | aAlarm, | |||
TTime & | aAlarmTime, | |||
TInt & | aSync | |||
) | [virtual] |
Called by the view to get the values to be set
Implements MCalendarEngineCommandsInterface.
Definition at line 599 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::ExecuteDeletionL | ( | ) | [virtual] |
Does the actual deletion of selected entry.
Implements MCalendarEngineCommandsInterface.
Definition at line 654 of file CalendarAPIexampleEngine.cpp.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.