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 103 of file CalendarAPIexampleEngine.h.
CCalendarAPIexampleEngine::~CCalendarAPIexampleEngine | ( | ) | [virtual] |
Destructor.
Definition at line 69 of file CalendarAPIexampleEngine.cpp.
CCalendarAPIexampleEngine * CCalendarAPIexampleEngine::NewL | ( | MCalenderEngineObserverUI & | aAppUi | ) | [static] |
Two-phased constructor.
Definition at line 111 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 242 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 277 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 598 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 653 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 313 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::DoAddL | ( | ) | [virtual] |
Activates the proper view for adding entries.
Implements MCalendarEngineCommandsInterface.
Definition at line 452 of file CalendarAPIexampleEngine.cpp.
TInt CCalendarAPIexampleEngine::ModifyIndex | ( | ) | const [virtual] |
Returns the modify index.
Implements MCalendarEngineCommandsInterface.
Definition at line 673 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 552 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 574 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 467 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 397 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 603 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 623 of file CalendarAPIexampleEngine.cpp.
void CCalendarAPIexampleEngine::ExecuteDeletionL | ( | ) | [virtual] |
Does the actual deletion of selected entry.
Implements MCalendarEngineCommandsInterface.
Definition at line 678 of file CalendarAPIexampleEngine.cpp.