#include <CCalendar.h>
Public Member Functions | |
string | getCacheEntry (time_t startDate, int &pErrorCode) |
bool | addCacheEntry (string sId, time_t startDate, int &pErrorCode) |
bool | deleteCacheEntry (time_t startDate, int &pErrorCode) |
int | getCacheTableCount (time_t inputDate, int &pErrorCode) |
bool | addCacheEntries (CComponent *pEntry, int &pErrorCode) |
bool | updateCacheEntry (string szId, time_t startDate, int &pErrorCode) |
bool | appendToIds (string Id, string &szIds) |
string | removeFromIds (string Id, string szIdStrings) |
bool | deleteCacheEntries (string szId, int eEntry, int &pErrorCode) |
bool | modifyCacheEntry (CComponent *oldEntry, int &pErrorCode) |
void | checkIfMultiDayEvent (CComponent *pEntry, vector< time_t > &vStartdates) |
CCalendar (CCalendar &ref) | |
const CCalendar & | operator= (const CCalendar &right) |
CCalendar (int iCalId, string szName, CalendarColour iColour, bool fIsReadOnly, bool fIsVisible, CalendarType iCalType, string szCalendarTune) | |
CCalendar (string szName, CalendarColour iColour, bool fIsReadOnly, bool fIsVisible, CalendarType iCalType, string szCalendarTune, string szCalendarVersion) | |
vector< CComponent * > | getAllEventsTodos (int iStDate, int iEndDate, int iLimit, int &iOffset, int &pErrorCode) |
CCalendar () | |
bool | setCalendarColor (CalendarColour iCalendarColor) |
CalendarColour | getCalendarColor () |
bool | setCalendarName (string szName) |
string | getCalendarName () |
bool | setCalendarId (int iId) |
int | getCalendarId () |
bool | setCalendarType (CalendarType iCalType) |
void | setProfileType (SyncProfileType iProfile) |
SyncProfileType | getProfileType () |
CalendarType | getCalendarType () |
bool | setCalendarReadOnly (bool fIsReadOnly) |
bool | IsReadOnly () |
bool | setCalendarShown (bool fIsVisible) |
bool | IsShown () |
bool | modifyEvent (CEvent *pEvent, int &pErrorCode) |
bool | modifyBirthDay (CBdayEvent *pBday, int &pErrorCode) |
bool | modifyJournal (CJournal *pJournal, int &pErrorCode) |
bool | modifyTodo (CTodo *pTodo, int &pErrorCode) |
bool | addEvent (CEvent *pEvent, int &pErrorCode) |
bool | addBirthDay (CBdayEvent *pBday, int &pErrorCode) |
bool | addTodo (CTodo *ptrTodo, int &pErrorCode) |
bool | addJournal (CJournal *ptrJournal, int &pErrorCode) |
bool | deleteEvent (string sEventID, int &pErrorCode) |
bool | deleteBirthDay (int iUid, int &pErrorCode) |
bool | deleteTodo (string sTodoID, int &pErrorCode) |
bool | deleteJournal (string sJournalID, int &pErrorCode) |
void | deleteComponent (string sId, int &pErrorCode) |
vector< long > | getCookie (string ietjId, int &pErrorCode) |
string | getCalendarVersion () |
void | setCalendarVersion (string szCalendarVersion) |
bool | registerAlarmForVisibleCalendar (int &perrorCode) |
~CCalendar () | |
vector< string > | getIdList (int iCompType, int &pErrorCode) |
CEvent * | getEvent (string sComponentID, int &pErrorCode) |
CTodo * | getTodo (string szComponentID, int &pErrorCode) |
CJournal * | getJournal (string sComponentID, int &pErrorCode) |
bool | checkDuplicateEntry (CComponent *pEntry, int iType, int &pErrorCode) |
vector< CEvent * > | getDetailedEventList (int &pErrorCode) |
vector< CTodo * > | getTodoListDetailed (int &pErrorCode) |
vector< CJournal * > | getJournalListDetailed (int &pErrorCode) |
bool | deleteBirthDay (string szUID, int &pErrorCode) |
vector< CComponent * > | getComponents (int iCalendarID, int iStartDate, int iEndDate, int &pErrorCode) |
vector< CComponent * > | getComponents (int iCalendarID, int iStartDate, int iEndDate, int iLimit, int iOffset, int &pErrorCode) |
int | updateTrash (int iCalendarID, string iComponentID, int iComponentType, time_t iDeletedTime, int &pErrorCode) |
vector< CEvent * > | getAllAddedEvents (int iDate, int &pErrorCode) |
vector< CTodo * > | getAllAddedTodos (int iDate, int &pErrorCode) |
vector< CJournal * > | getAllAddedJournals (int iDate, int &pErrorCode) |
vector< CComponent * > | getAllAddItems (int iDate, int &pErrorCode) |
vector< CEvent * > | getAllModifiedEvents (int iDate, int &pErrorCode) |
vector< CTodo * > | getAllModifiedTodos (int iDate, int &pErrorCode) |
vector< CJournal * > | getAllModifiedJournals (int iDate, int &pErrorCode) |
vector< CComponent * > | getAllModifiedItems (int iDate, int &pErrorCode) |
vector< string > | getAllDeletedItems (int iDate, int iType, int &pErrorCode) |
int | exportCalendarEntries (string szFilename, int &pErrorCode) |
bool | setNextAlarm (string sComponentId, int iType, int &pErrorCode) |
void | setCalendarTune (string szCalendarTune) |
string | getCalendarTune () |
bool | addParameters (map< string, vector< CParameters * > > hashMap, string sId, ACTION iAction, int &pErrorCode, bool clearHashMap=true) |
bool | addXProperties (vector< CProperties * > vXProp, string sId, ACTION iAction, int &pErrorCode) |
string | getExternalToLocalId (string sId, bool fetchLocal, int &pErrorCode) |
bool | addMapTableInfo (string sLocalId, string sExternalId, int &pErrorCode) |
vector< string > | getAllDeletedEvents (int iLastSyncDate, int &pErrorCode) |
vector< string > | getAllDeletedJournals (int iLastSyncDate, int &pErrorCode) |
vector< string > | getAllDeletedTodos (int iLastSyncDate, int &pErrorCode) |
bool | destroyExistingValidAlarms (int &pErrorCode) |
bool | checkEntryExist (string szTable, string iId, int &pErrorCode) |
CComponent * | getEntry (string sCompId, int iType, int &pErrorCode) |
vector< CEvent * > | getDetailedBdayList (int &pErrorCode) |
CEvent * | getBirthDayEvent (string sCompId, int &pErrorCode) |
void | deleteComponents (vector< string > idList, int &ErrorCode) |
void | modifyComponents (vector< CComponent * > &compList, int &ErrorCode) |
vector< string > | addComponents (vector< CComponent * > &compList, vector< string > &duplicateIds, int &ErrorCode) |
vector< CEvent * > | getEvents (int &pErrorCode) |
vector< CTodo * > | getTodos (int &pErrorCode) |
vector< CJournal * > | getJournals (int &pErrorCode) |
string | toString () |
Private Member Functions | |
vector< CCache * > | getDeletedCacheTableInfo (string sCompId, int &pErrorCode) |
bool | updateAttendeesForComponent (CComponentDetails *pCompDetails, int &pErrorCode) |
bool | deleteAttendeesForComponent (CComponentDetails *pCompDetails, int &pErrorCode) |
bool | updateOrganizerForComponent (CComponentDetails *pCompDetails, int &pErrorCode) |
bool | deleteOrganizerForComponent (CComponentDetails *pCompDetails, int &pErrorCode) |
bool | updateXPropertiesForComponent (CComponentDetails *pEntry, int &pErrorCode) |
bool | deleteXPropertiesForComponent (CComponentDetails *pEntry, int &pErrorCode) |
bool | updateParametersForComponent (CComponentDetails *pEntry, int &pErrorCode) |
bool | deleteParametersForComponent (CComponentDetails *pEntry, int &pErrorCode) |
bool | deregisterAlarm (CComponentDetails *pCompDetails, int &pErrorCode) |
bool | checkFieldinTable (string szTable, string szField, string szValue) |
vector< CComponent * > | getRecursiveEventsInRange (int iStartDate, int iEndDate, vector< CComponent * >vListEntry, int &pErrorCode) |
vector< string > | getChangeIds (int iComponentType, int iChangeType, int iDate, int &pErrorCode) |
bool | entrySetModifiedTime (CComponent *pEntry, int &pErrorCode) |
template<class comp> | |
bool | addCompDetails (sqlite3_stmt *pStmt, comp *cDet, int &pErrorCode) |
bool | addEventCompDetails (CEvent *pEvent, int &pErrorCode) |
bool | addTodoCompDetails (CTodo *ptrTodo, int &pErrorCode) |
bool | addJournalCompDetails (CJournal *ptrJournal, int &pErrorCode) |
bool | manageCookie (const ACTION iAction, CComponent *pcomp, int &pErrorCode) |
bool | addAlarm (CAlarm *ptrAlarm, ACTION iAction, string sId, int &pErrorCode) |
bool | addRecurrence (CRecurrence *ptrRecur, string sId, int &pErrorCode) |
bool | modifyRecurrence (CRecurrence *ptrRecur, string sId, int &pErrorCode) |
bool | addAttendeeDetails (vector< CAttendee * >vAttendeeList, string sId, int iType, ACTION iAction, int &pErrorCode) |
bool | addOrganizer (COrganizer *ptrOrganizer, string sId, int iType, ACTION iAction, int &pErrorCode) |
template<class ent> | |
int | addComponent (ent *pEvent, ACTION iAction, int &pErrorCode) |
Private Attributes | |
string | szName |
CalendarColour | iColor |
bool | fReadOnly |
bool | fIsVisible |
int | iCalId |
CalendarType | iCalType |
string | szCalendarTune |
string | szCalendarVersion |
SyncProfileType | iProfileType |
CCalendar class
CCalendar::CCalendar | ( | CCalendar & | ref | ) |
copy Constructor for CCalendarClass
Copy Constructor for CCalendarClass
References fIsVisible, fReadOnly, iCalId, iCalType, iColor, iProfileType, szCalendarTune, szCalendarVersion, and szName.
CCalendar::CCalendar | ( | int | iCalId, | |
string | szName, | |||
CalendarColour | iColor, | |||
bool | fReadOnly, | |||
bool | fIsVisible, | |||
CalendarType | iCalType, | |||
string | szCalendarTune | |||
) |
int iCalId represents calendar id | ||
string szName represents calendar name | ||
CalendarColour iColor represents calendar color | ||
bool fIsReadOnly represents whether calendar read only or not | ||
bool fIsVisbile represents whether calendar visible/invisible | ||
CalendarType iCalType represents type of the calendar | ||
string szCalendarTune represents ring tone of the calendar |
Calendar
iCalid | integer clendar Id | |
name | represents calendar name | |
color | represents calendar color | |
readonly | represents whether calendar read only or not | |
isvisbile | represents whether calendar visible/invisible | |
calendarTune | represents calendarTune |
CCalendar::CCalendar | ( | string | szName, | |
CalendarColour | iColor, | |||
bool | fReadOnly, | |||
bool | fIsVisible, | |||
CalendarType | iCalType, | |||
string | szCalendarTune, | |||
string | szCalendarVersion | |||
) |
string szName represents calendar name | ||
CalendarColour iColor represents calendar color | ||
bool fIsReadOnly represents whether calendar read only or not | ||
bool fIsVisbile represents whether calendar visible/invisible | ||
CalendarType iCalType represents type of the calendar | ||
string szCalendarTune represents ring tone of the calendar | ||
string szCalendarVersion represents Version of the calendar |
Calendar
fname | represents calendar name | |
fcolor | represents calendar color | |
freadonly | represents whether calendar read only or not | |
fisvisbile | represents whether calendar visible/invisible | |
calendarTune | represents calendarTune |
CCalendar::CCalendar | ( | ) |
None |
Calendar
None |
CCalendar::~CCalendar | ( | ) |
~Calendar
None |
~Calendar
None |
bool CCalendar::addCacheEntry | ( | string | sId, | |
time_t | startDate, | |||
int & | pErrorCode | |||
) |
Adds a single Id into cache table at specified start date
References CCalendarDB::getDb(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addCacheEntries().
bool CCalendar::deleteCacheEntry | ( | time_t | startDate, | |
int & | pErrorCode | |||
) |
deletes a single cache entry
References CCalendarDB::getDb(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by deleteCacheEntries().
int CCalendar::getCacheTableCount | ( | time_t | inputDate, | |
int & | pErrorCode | |||
) |
Checks if entries exist for a given date
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addCacheEntries().
bool CCalendar::addCacheEntries | ( | CComponent * | pEntry, | |
int & | pErrorCode | |||
) |
Adds mutiple entries for a recurrent event and single entry for events and to do TODO: No rollback mechanism and error scenarios handled TODO: To check impact of sync when adding, deleting, modifying
References addCacheEntry(), checkIfMultiDayEvent(), CComponent::generateInstanceTimes(), getCacheTableCount(), CComponent::getId(), and CComponent::getRecurrence().
string CCalendar::removeFromIds | ( | string | Id, | |
string | szIdStrings | |||
) |
Remove Id from comma separated Id string
Referenced by deleteCacheEntries().
bool CCalendar::deleteCacheEntries | ( | string | szId, | |
int | eEntry, | |||
int & | pErrorCode | |||
) |
Remove entries from cache table TODO: Use enum input param
References deleteCacheEntry(), and removeFromIds().
bool CCalendar::modifyCacheEntry | ( | CComponent * | oldEntry, | |
int & | pErrorCode | |||
) |
Modify the Cache entry
void CCalendar::checkIfMultiDayEvent | ( | CComponent * | pEntry, | |
vector< time_t > & | vStartdates | |||
) |
check if the event is multiday
References CComponent::getDateEnd(), and CComponent::getDateStart().
Referenced by addCacheEntries().
overloaded assignment operator for CCalendar class
Overloaded assignment operator for CCalendar class
References fIsVisible, fReadOnly, iCalId, iCalType, iColor, iProfileType, szCalendarTune, szCalendarVersion, and szName.
vector< CComponent * > CCalendar::getAllEventsTodos | ( | int | iStDate, | |
int | iEndDate, | |||
int | iLimit, | |||
int & | iOffset, | |||
int & | pErrorCode | |||
) |
: | stDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | endDate to do conditional fetching based on end date. -1 in case of no conditions | |
: | limit limit for number of events fetched by the calenadr | |
int | * pErrorCode error code: CALENDAR_OPERATION_SUCCESSFUL- fetching is successful and can be continued; CALENDAR_FETCH_NOITEMS- fetching is finished (no more items found in DB); other error code- fetching is failed. |
: | stDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | endDate to do conditional fetching based on end date. -1 in case of no conditions | |
: | limit limit for number of events fetched by the calenadr | |
int | * pErrorCode error code: CALENDAR_OPERATION_SUCCESSFUL- fetching is successful and can be continued; CALENDAR_FETCH_NOITEMS- fetching is finished (no more items found in DB); other error code- fetching is failed. |
References CComponent::getAlarmProperties(), getCalendarId(), CComponent::getFlags(), CComponent::getId(), CComponent::getInstanceNumber(), CCalendarDB::getRecords(), CComponent::getRecurrenceProperties(), CMulticalendar::getSystemTimeZone(), CComponent::getType(), iCalId, CCalendarDB::Instance(), CMulticalendar::MCInstance(), CComponent::setAllDay(), CComponent::setCalendarId(), CComponent::setCreatedTime(), CComponent::setDescription(), CComponent::setGUid(), CComponent::setId(), CComponent::setLastModified(), CComponent::setLocation(), CComponent::setStatus(), CComponent::setSummary(), CComponent::setTzid(), CComponent::setUntil(), CCalendarDB::sqliteErrorMapper(), and CComponent::toString().
Referenced by CMulticalendar::getAllEventsTodos().
bool CCalendar::setCalendarColor | ( | CalendarColour | iColor | ) |
iCalendarColour,: | Calendar Color to be set from any one of the following COLOUR_RED, COLOUR_GREEN, COLOUR_BLUE, COLOUR_PURPLE, COLOUR_YELLOW |
setCalendarColor
strColor | Calendar Color to be set |
Referenced by CMulticalendar::addCalendar(), CMulticalendar::getCalendarById(), CMulticalendar::getListCalFromMc(), and CMulticalendar::modifyCalendar().
CalendarColour CCalendar::getCalendarColor | ( | ) |
None |
getCalendarColor
None |
References iColor.
Referenced by CMulticalendar::addCalendar(), CMulticalendar::getUnusedCalendarColor(), CMulticalendar::modifyCalendar(), and toString().
bool CCalendar::setCalendarName | ( | string | szName | ) |
string | szName: Calendar Name to be set |
setCalendarName
strName | Calendar Name to be set |
Referenced by CMulticalendar::setCalendarName().
string CCalendar::getCalendarName | ( | ) |
None |
getCalendarName
None |
References szName.
Referenced by CMulticalendar::addCalendar(), CMulticalendar::modifyCalendar(), and toString().
bool CCalendar::setCalendarId | ( | int | iId | ) |
int | iId: Calendar id to be set |
setCalendarId
id | Calendar id to be set |
References iCalId.
Referenced by CMulticalendar::addCalendar(), CMulticalendar::getCalendarById(), and CMulticalendar::getListCalFromMc().
int CCalendar::getCalendarId | ( | ) |
None |
getCalendarId
None |
References iCalId.
Referenced by CMulticalendar::addBirthdays(), CMulticalendar::addCalendar(), addComponent(), CMulticalendar::addEvent(), addEvent(), CMulticalendar::addJournal(), CMulticalendar::addTodo(), checkDuplicateEntry(), deleteBirthDay(), CMulticalendar::deleteBirthdays(), CMulticalendar::deleteCalendar(), CMulticalendar::deleteEvent(), deleteEvent(), CMulticalendar::deleteJournal(), deleteJournal(), CMulticalendar::deleteTodo(), deleteTodo(), destroyExistingValidAlarms(), getAllDeletedItems(), getAllEventsTodos(), getChangeIds(), getComponents(), getEvents(), getIdList(), getJournals(), getRecursiveEventsInRange(), CMulticalendar::getTodaysAllDay(), getTodos(), manageCookie(), CMulticalendar::modifyBirthDay(), CMulticalendar::modifyCalendar(), CMulticalendar::modifyEvent(), CMulticalendar::modifyJournal(), CMulticalendar::modifyTodo(), registerAlarmForVisibleCalendar(), setNextAlarm(), and toString().
bool CCalendar::setCalendarType | ( | CalendarType | iCalType | ) |
CalendarType iCaltype: Calendar Type to be set |
setCalendarType
id,: | Calendar Type to be set |
Referenced by CMulticalendar::getCalendarById(), CMulticalendar::getListCalFromMc(), and CMulticalendar::modifyCalendar().
void CCalendar::setProfileType | ( | SyncProfileType | iProfile | ) |
SyncProfileType | - Profile type of calendar |
SyncProfileType | - Profile type of calendar |
Referenced by CMulticalendar::getCalendarById(), and CMulticalendar::getListCalFromMc().
SyncProfileType CCalendar::getProfileType | ( | ) |
NONE |
NONE |
Referenced by CMulticalendar::addCalendar(), CMulticalendar::modifyCalendar(), and toString().
CalendarType CCalendar::getCalendarType | ( | ) |
None |
getCalendarType
None |
References iCalType.
Referenced by CMulticalendar::addCalendar(), CMulticalendar::clearCalendar(), CMulticalendar::deleteCalendar(), destroyExistingValidAlarms(), exportCalendarEntries(), CMulticalendar::getLatestComponent(), CMulticalendar::getPrevNextComponent(), CMulticalendar::modifyCalendar(), and registerAlarmForVisibleCalendar().
bool CCalendar::setCalendarReadOnly | ( | bool | fFlag | ) |
bool | fIsReadonly: represents whether calendar is readonly |
setCalendarReadOnly
flag | represents whether calendar is readonly |
References fReadOnly.
Referenced by CMulticalendar::modifyCalendar().
bool CCalendar::IsReadOnly | ( | ) |
None |
IsReadOnly
None |
References fReadOnly.
Referenced by CMulticalendar::addCalendar(), CMulticalendar::modifyCalendar(), and toString().
bool CCalendar::setCalendarShown | ( | bool | fFlag | ) |
bool isVisible: represents whether calendar is visible or not |
setCalendarShown
flag | represents whether calendar is visible or not |
References fIsVisible.
Referenced by CMulticalendar::modifyCalendar().
bool CCalendar::IsShown | ( | ) |
None |
IsShown
None |
References fIsVisible.
Referenced by CMulticalendar::addCalendar(), addEvent(), addTodo(), CMulticalendar::getLatestComponent(), CMulticalendar::getTodaysAllDay(), modifyBirthDay(), CMulticalendar::modifyCalendar(), modifyEvent(), modifyTodo(), CMulticalendar::setNextAlarm(), and toString().
bool CCalendar::modifyEvent | ( | CEvent * | pEntry, | |
int & | pErrorCode | |||
) |
CEvent* pEvent: pointer to calEvent | ||
int& reference to error int to throw some error code. |
modifyEvent
ptrEntry | pointer to calEvent | |
int | * pErrorCode error code if any |
References addAlarm(), addAttendeeDetails(), addComponent(), addOrganizer(), addParameters(), addRecurrence(), addXProperties(), checkEntryExist(), CComponent::getAlarm(), CComponentDetails::getAttachments(), CComponentDetails::getAttendees(), CComponentDetails::getCategories(), CComponentDetails::getClas(), CComponentDetails::getComments(), CComponentDetails::getContact(), getCookie(), CComponentDetails::getDateStamp(), CCalendarDB::getDb(), CEvent::getGeo(), CComponentDetails::getHashMap(), CComponent::getId(), CComponentDetails::getOrganizer(), CEvent::getPriority(), CComponent::getRecurrence(), CComponentDetails::getRelated(), CComponentDetails::getResources(), CComponentDetails::getSequence(), CEvent::getTransparency(), CComponent::getType(), CComponentDetails::getUid(), CComponentDetails::getUrl(), CComponentDetails::getXProperties(), CCalendarDB::Instance(), IsShown(), manageCookie(), modifyRecurrence(), CComponent::removeAlarm(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by addEvent(), modifyComponents(), CMulticalendar::modifyEvent(), and setNextAlarm().
bool CCalendar::modifyBirthDay | ( | CBdayEvent * | pBday, | |
int & | pErrorCode | |||
) |
CBdayEvent* pBday: pointer to CBdayEvent | ||
int * pErrorCode error code if any |
modifyBirthDay
pBday | pointer to CBdayEvent object | |
int | * pErrorCode error code if any |
References addAlarm(), addComponent(), addRecurrence(), checkEntryExist(), CComponent::getAlarm(), CBdayEvent::getBirthDate(), getCookie(), CCalendarDB::getDb(), CComponent::getId(), CComponent::getRecurrence(), CCalendarDB::Instance(), IsShown(), manageCookie(), modifyRecurrence(), CComponent::removeAlarm(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by CMulticalendar::modifyBirthDay().
bool CCalendar::modifyJournal | ( | CJournal * | pEntry, | |
int & | pErrorCode | |||
) |
CJournal* pJournal: pointer to calJournal | ||
int * pErrorCode error code if any |
modifyJournal
ptrEntry | pointer to CJournal | |
int | * pErrorCode error code if any |
References addAttendeeDetails(), addComponent(), addOrganizer(), addParameters(), addXProperties(), CComponentDetails::getAttachments(), CComponentDetails::getAttendees(), CComponentDetails::getCategories(), CComponentDetails::getClas(), CComponentDetails::getComments(), CComponentDetails::getContact(), CComponentDetails::getDateStamp(), CCalendarDB::getDb(), CComponentDetails::getHashMap(), CComponent::getId(), CComponent::getLastModified(), CComponentDetails::getOrganizer(), CComponentDetails::getRelated(), CComponentDetails::getResources(), CComponentDetails::getSequence(), CComponent::getType(), CComponentDetails::getUid(), CComponentDetails::getUrl(), CComponentDetails::getXProperties(), CCalendarDB::Instance(), CComponent::setLastModified(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by addJournal(), modifyComponents(), and CMulticalendar::modifyJournal().
bool CCalendar::modifyTodo | ( | CTodo * | pEntry, | |
int & | pErrorCode | |||
) |
CTodo* pTodo: pointer to calTodo | ||
int * pErrorCode error code if any |
modifyTodo
ptrEntry | pointer to calTodo | |
int | * pErrorCode error code if any |
References addAlarm(), addComponent(), addRecurrence(), checkEntryExist(), CComponent::getAlarm(), CComponentDetails::getAttachments(), CComponentDetails::getAttendees(), CComponentDetails::getCategories(), CComponentDetails::getClas(), CComponentDetails::getComments(), CTodo::getCompleted(), CComponentDetails::getContact(), CComponentDetails::getDateStamp(), CCalendarDB::getDb(), CComponentDetails::getHashMap(), CComponent::getId(), CComponentDetails::getOrganizer(), CTodo::getPercentComplete(), CTodo::getPriority(), CComponent::getRecurrence(), CComponentDetails::getRelated(), CComponentDetails::getResources(), CComponentDetails::getSequence(), CComponent::getStatus(), CComponent::getType(), CComponentDetails::getUid(), CComponentDetails::getUrl(), CComponentDetails::getXProperties(), CCalendarDB::Instance(), IsShown(), manageCookie(), modifyRecurrence(), CTodo::setCompleted(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by addTodo(), modifyComponents(), CMulticalendar::modifyTodo(), and setNextAlarm().
bool CCalendar::addEvent | ( | CEvent * | pEvent, | |
int & | pErrorCode | |||
) |
CEvent* pEvent: calEvent pointer | ||
int * pErrorCode error code if any |
addEvent
pEvent | calEvent pointer | |
int | * pErrorCode error code if any |
References addAlarm(), addAttendeeDetails(), addComponent(), addEventCompDetails(), addOrganizer(), addParameters(), addRecurrence(), addXProperties(), checkDuplicateEntry(), CComponent::getAlarm(), CComponentDetails::getAttendees(), getCalendarId(), CComponent::getDateEnd(), CComponent::getDateStart(), CComponentDetails::getHashMap(), CComponent::getId(), CComponentDetails::getOrganizer(), CComponent::getRecurrence(), CComponentDetails::getXProperties(), IsShown(), manageCookie(), modifyEvent(), and CComponent::removeAlarm().
Referenced by addComponents(), and CMulticalendar::addEvent().
bool CCalendar::addBirthDay | ( | CBdayEvent * | pBday, | |
int & | pErrorCode | |||
) |
CBdayEvent *pBdayendar: CBdayEvent pointer | ||
int * pErrorCode error code if any |
addBirthDay
pBday | - pointer to CBdayEvent object | |
int | * pErrorCode error code if any |
References addComponent(), addMapTableInfo(), addRecurrence(), CBdayEvent::getBirthDate(), getExternalToLocalId(), CComponent::getId(), CComponent::getRecurrence(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by CMulticalendar::addBirthdays().
bool CCalendar::addTodo | ( | CTodo * | ptrTodo, | |
int & | pErrorCode | |||
) |
CTodo* ptrTodo: calTodo pointer | ||
int * pErrorCode error code if any |
addTodo
ptrTodo | calTodo pointer | |
int | * pErrorCode error code if any |
References addAlarm(), addAttendeeDetails(), addComponent(), addOrganizer(), addParameters(), addRecurrence(), addTodoCompDetails(), addXProperties(), checkDuplicateEntry(), CComponent::getAlarm(), CComponentDetails::getAttendees(), CComponentDetails::getHashMap(), CComponent::getId(), CComponentDetails::getOrganizer(), CComponent::getRecurrence(), CComponentDetails::getXProperties(), IsShown(), manageCookie(), modifyTodo(), and CComponent::removeAlarm().
Referenced by addComponents(), and CMulticalendar::addTodo().
bool CCalendar::addJournal | ( | CJournal * | ptrJournal, | |
int & | pErrorCode | |||
) |
ptrJournal,: | calJournal pointer | |
int | * pErrorCode error code if any |
addJournal
ptrJournal | calJournal pointer | |
int | * pErrorCode error code if any |
References addAttendeeDetails(), addComponent(), addJournalCompDetails(), addOrganizer(), addParameters(), addXProperties(), checkDuplicateEntry(), CComponentDetails::getAttendees(), CComponentDetails::getHashMap(), CComponent::getId(), CComponentDetails::getOrganizer(), CComponentDetails::getXProperties(), and modifyJournal().
Referenced by addComponents(), and CMulticalendar::addJournal().
bool CCalendar::deleteEvent | ( | string | sEtjId, | |
int & | pErrorCode | |||
) |
string | sEventID: eventId to be deleted | |
int | * pErrorCode error code if any |
deleteEvent
sEtjId | eventId to be deleted | |
int | * pErrorCode error code if any |
References CAlarm::deleteAlarmEvent(), getCalendarId(), getCookie(), CCalendarDB::getDb(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), CCalendarDB::updateDB(), and updateTrash().
Referenced by deleteComponent(), and CMulticalendar::deleteEvent().
bool CCalendar::deleteBirthDay | ( | int | iUid, | |
int & | pErrorCode | |||
) |
int | iUid: Unique UID for birthday contacts from Ebook db. | |
int | * pErrorCode error code if any |
Referenced by CMulticalendar::deleteBirthdays().
bool CCalendar::deleteTodo | ( | string | sEtjId, | |
int & | pErrorCode | |||
) |
string | todoid: todoid to be deleted | |
int | * pErrorCode error code if any |
deleteTodo
sEtjId | todoid to be deleted | |
int | * pErrorCode error code if any |
References CAlarm::deleteAlarmEvent(), getCalendarId(), getCookie(), CCalendarDB::getDb(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), CCalendarDB::updateDB(), and updateTrash().
Referenced by deleteComponent(), and CMulticalendar::deleteTodo().
bool CCalendar::deleteJournal | ( | string | sJournalId, | |
int & | pErrorCode | |||
) |
string | sJournalid: journalid to be deleted | |
int | * pErrorCode error code if any |
deleteJournal
iJournalId | iJournalId to be deleted | |
int | * pErrorCode error code if any |
References getCalendarId(), CCalendarDB::getDb(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), CCalendarDB::updateDB(), and updateTrash().
Referenced by deleteComponent(), and CMulticalendar::deleteJournal().
void CCalendar::deleteComponent | ( | string | sId, | |
int & | pErrorCode | |||
) |
string | sId: id of the component to be deleted | |
int | * pErrorCode error code if any |
deleteComponent
sId | of the component to be deleted | |
int | * pErrorCode error code if any |
References deleteEvent(), deleteJournal(), deleteTodo(), CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by deleteComponents().
vector< long > CCalendar::getCookie | ( | string | ietjId, | |
int & | pErrorCode | |||
) |
string | etjId: id of event/todo | |
int | * pErrorCode error code if any |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by deleteBirthDay(), deleteEvent(), deleteTodo(), destroyExistingValidAlarms(), manageCookie(), modifyBirthDay(), and modifyEvent().
string CCalendar::getCalendarVersion | ( | ) |
none |
getCalendarVersion
none |
Referenced by CMulticalendar::addCalendar(), and CMulticalendar::modifyCalendar().
void CCalendar::setCalendarVersion | ( | string | szCalendarVersion | ) |
string | szCaeldnarVersion |
setCalendarVersion
string | szCaeldnarVersion |
Referenced by CMulticalendar::getCalendarById(), CMulticalendar::getListCalFromMc(), and CMulticalendar::modifyCalendar().
bool CCalendar::registerAlarmForVisibleCalendar | ( | int & | perrorCode | ) |
perrorCode |
References addAlarm(), CAlarm::addAlarmEvent(), CComponent::getAlarm(), CComponent::getAllDay(), getBirthDayEvent(), getCalendarId(), getCalendarType(), CComponent::getDateEnd(), CComponent::getDateStart(), CComponent::getDescription(), getEvent(), CComponent::getId(), CComponent::getLocation(), CCalendarDB::getRecords(), CComponent::getSummary(), CAlarm::getTrigger(), CComponent::getType(), CComponent::getTzid(), CCalendarDB::Instance(), CAlarm::setCookie(), CCalendarDB::sqliteErrorMapper(), and CComponent::updateAlarmTriggerTime().
Referenced by CMulticalendar::modifyCalendar().
vector< string > CCalendar::getIdList | ( | int | iCompType, | |
int & | pErrorCode | |||
) |
int | iCompType Component Type | |
int& | pErrorCode error code if any |
getIdList
Component | type | |
int | * pErrorCode error code if any |
References getCalendarId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by getDetailedBdayList(), getDetailedEventList(), getJournalListDetailed(), and getTodoListDetailed().
CEvent * CCalendar::getEvent | ( | string | sCompId, | |
int & | pErrorCode | |||
) |
string | Component Id | |
int | * pErrorCode error code if any |
getEvent
Component | ID | |
int | * pErrorCode error code if any |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), CAlarm::setAction(), CAlarm::setAttach(), CAlarm::setCookie(), CAlarm::setDuration(), CRecurrence::setEDays(), CRecurrence::setErule(), CRecurrence::setRDays(), CRecurrence::setRecurId(), CAlarm::setRepeat(), CRecurrence::setRrule(), CRecurrence::setRtype(), CAlarm::setTimeBefore(), CAlarm::setTrigger(), and CCalendarDB::sqliteErrorMapper().
Referenced by destroyExistingValidAlarms(), getAllAddedEvents(), getAllAddItems(), getAllModifiedEvents(), getAllModifiedItems(), getDetailedEventList(), getEntry(), CMulticalendar::getLatestComponent(), CMulticalendar::getPrevNextComponent(), registerAlarmForVisibleCalendar(), and setNextAlarm().
CTodo * CCalendar::getTodo | ( | string | sCompId, | |
int & | pErrorCode | |||
) |
string | szComponentId Component Id | |
int& | pErrorCode place holder |
Function used to get the complete todo details of particular component ID
getTodo
Component | ID | |
int | * pErrorCode error code if any |
References CComponent::getFlags(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CComponentDetails::retrieveParameterDetails(), CComponentDetails::retrieveXPropertyDetails(), CAlarm::setAction(), CComponent::setAlarm(), CAlarm::setAttach(), CComponentDetails::setCategories(), CComponentDetails::setClas(), CComponentDetails::setComments(), CTodo::setCompleted(), CComponentDetails::setContact(), CAlarm::setCookie(), CComponent::setDescription(), CAlarm::setDuration(), CTodo::setGeo(), CComponent::setGUid(), CComponentDetails::setHashMap(), CComponent::setId(), CComponent::setLocation(), CComponentDetails::setRelated(), CAlarm::setRepeat(), CComponentDetails::setResources(), CComponent::setSummary(), CAlarm::setTrigger(), CComponent::setType(), CComponent::setTzid(), CComponentDetails::setUid(), CComponentDetails::setUrl(), CComponentDetails::setXProperties(), CCalendarDB::sqliteErrorMapper(), and CTodo::toString().
Referenced by getAllAddedTodos(), getAllAddItems(), getAllModifiedItems(), getAllModifiedTodos(), getEntry(), getTodoListDetailed(), and setNextAlarm().
CJournal * CCalendar::getJournal | ( | string | sCompId, | |
int & | pErrorCode | |||
) |
string | szComponentId Id of component(Event/Todo/Journal) | |
int& | pErrorCode place holder |
getJournal
Component | ID | |
int | * pErrorCode error code if any |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), CComponentDetails::retrieveParameterDetails(), CComponentDetails::retrieveXPropertyDetails(), CComponentDetails::setCategories(), CComponentDetails::setClas(), CComponentDetails::setComments(), CComponentDetails::setContact(), CComponent::setDescription(), CComponent::setGUid(), CComponentDetails::setHashMap(), CComponent::setId(), CComponent::setLocation(), CComponentDetails::setRelated(), CComponentDetails::setResources(), CComponent::setSummary(), CComponent::setTzid(), CComponentDetails::setXProperties(), CCalendarDB::sqliteErrorMapper(), and CJournal::toString().
Referenced by getAllAddedJournals(), getAllAddItems(), getAllModifiedItems(), getAllModifiedJournals(), getEntry(), and getJournalListDetailed().
bool CCalendar::checkDuplicateEntry | ( | CComponent * | pEntry, | |
int | iType, | |||
int & | pErrorCode | |||
) |
CComponent* | pEntry - pointer to CComponent | |
int | iType - Type of entry can be event todo or journal | |
int& | pErrorCode - |
int | iType - Type of entry can be event todo or journal | |
int | iType - Type of entry can be event todo or journal | |
int& | pErrorCode - |
References getCalendarId(), CComponent::getDateStart(), CComponent::getDescription(), CComponent::getGUid(), CComponent::getLastModified(), CComponent::getLocation(), CCalendarDB::getRecords(), CComponent::getSummary(), CCalendarDB::Instance(), CComponent::setId(), CComponent::setLastModified(), and CCalendarDB::sqliteErrorMapper().
Referenced by addEvent(), addJournal(), and addTodo().
vector< CEvent * > CCalendar::getDetailedEventList | ( | int & | pErrorCode | ) |
int& | pErrorCode place holder |
int | * pErrorCode error code if any |
References getEvent(), and getIdList().
Referenced by exportCalendarEntries().
vector< CTodo * > CCalendar::getTodoListDetailed | ( | int & | pErrorCode | ) |
int& | pErrorCode place holder | |
int | * pErrorCode error code if any |
int | * pErrorCode error code if any |
References getIdList(), and getTodo().
Referenced by exportCalendarEntries().
vector< CJournal * > CCalendar::getJournalListDetailed | ( | int & | pErrorCode | ) |
int& | pErrorCode place holder |
getJournalListDetailed
int | * pErrorCode error code if any |
References getIdList(), and getJournal().
Referenced by exportCalendarEntries().
bool CCalendar::deleteBirthDay | ( | string | szUId, | |
int & | pErrorCode | |||
) |
string | Id of the birthday event in DB | |
int& | pErrorCode place holder |
deleteBirthDay
sUid | Ebook Uid to be deleted | |
int | * pErrorCode error code if any |
References CAlarm::deleteAlarmEvent(), getCalendarId(), getCookie(), CCalendarDB::getDb(), getExternalToLocalId(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), CCalendarDB::updateDB(), and updateTrash().
vector< CComponent * > CCalendar::getComponents | ( | int | iType, | |
int | iStDate, | |||
int | iEndDate, | |||
int & | pErrorCode | |||
) |
getComponents
: | calid Calendar ID | |
: | 1 -> EVENT 2 -> TODO 3 -> JOURNAL 4 -> BDAY | |
: | stDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | endDate to do conditional fetching based on end date. -1 in case of no conditions | |
int& | pErrorCode place holder |
: | calid Calendar ID | |
: | type 0 -> All entries 1 -> EVENT 2 -> TODO 3 -> JOURNAL 4 -> BDAY | |
: | stDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | endDate to do conditional fetching based on end date. -1 in case of no conditions | |
int | * pErrorCode error code if any |
References CComponent::getAlarmProperties(), getCalendarId(), CComponent::getFlags(), CCalendarDB::getRecords(), CComponent::getRecurrenceProperties(), getRecursiveEventsInRange(), CMulticalendar::getSystemTimeZone(), CComponent::getType(), CCalendarDB::Instance(), CMulticalendar::MCInstance(), CComponent::setAllDay(), CComponent::setCalendarId(), CComponent::setCreatedTime(), CComponent::setDateEnd(), CComponent::setDateStart(), CComponent::setDescription(), CComponent::setFlags(), CComponent::setGUid(), CComponent::setId(), CComponent::setLastModified(), CComponent::setLocation(), CComponent::setSummary(), CComponent::setType(), CComponent::setTzid(), CComponent::setUntil(), CCalendarDB::sqliteErrorMapper(), and CComponent::toString().
Referenced by CMulticalendar::getComponents(), and CMulticalendar::getTodaysAllDay().
vector< CComponent * > CCalendar::getComponents | ( | int | iType, | |
int | iStDate, | |||
int | iEndDate, | |||
int | iLimit, | |||
int | iOffset, | |||
int & | pErrorCode | |||
) |
getComponents
: | int iCalendarId Calendar ID | |
: | int type 1 -> EVENT 2 -> TODO 3 -> JOURNAL 4 -> BDAY | |
: | int iStDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | int iEndDate to do conditional fetching based on end date. -1 in case of no conditions | |
: | int iLimit limit for number of events fetched by the calenadr | |
int | * pErrorCode error code: CALENDAR_OPERATION_SUCCESSFUL- fetching is successful and can be continued; CALENDAR_FETCH_NOITEMS- fetching is finished (no more items found in DB); other error code- fetching is failed. |
: | calid Calendar ID | |
: | type 0 -> All entries 1 -> EVENT 2 -> TODO 3 -> JOURNAL 4 -> BDAY | |
: | stDate to do conditional fetching based on start date. -1 in case of no conditions | |
: | endDate to do conditional fetching based on end date. -1 in case of no conditions | |
: | limit limit for number of events fetched by the calenadr | |
int | * pErrorCode error code: CALENDAR_OPERATION_SUCCESSFUL- fetching is successful and can be continued; CALENDAR_FETCH_NOITEMS- fetching is finished (no more items found in DB); other error code- fetching is failed. |
References CComponent::getAlarmProperties(), getCalendarId(), CComponent::getFlags(), CComponent::getId(), CComponent::getInstanceNumber(), CCalendarDB::getRecords(), CComponent::getRecurrenceProperties(), CMulticalendar::getSystemTimeZone(), CComponent::getType(), iCalId, CCalendarDB::Instance(), CMulticalendar::MCInstance(), CComponent::setCalendarId(), CComponent::setCreatedTime(), CComponent::setDateStart(), CComponent::setDescription(), CComponent::setFlags(), CComponent::setGUid(), CComponent::setId(), CComponent::setLastModified(), CComponent::setLocation(), CComponent::setStatus(), CComponent::setSummary(), CComponent::setType(), CComponent::setTzid(), CCalendarDB::sqliteErrorMapper(), and CComponent::toString().
int CCalendar::updateTrash | ( | int | iCalId, | |
string | sCompId, | |||
int | iCompType, | |||
time_t | iDeletedTime, | |||
int & | pErrorCode | |||
) |
int | Calendar id | |
string | component id | |
int | component type | |
time_t | Deleted time | |
int& | place holder for pErrorCode error code |
updateTrash This function will be called when components are deleted, to update them in trash table
int | Calendar id | |
string | component id | |
int | component type | |
time_t | Deleted time | |
int | * pErrorCode error code if any |
References CCalendarDB::getDb(), CCalendarDB::getRecords(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by deleteBirthDay(), deleteEvent(), deleteJournal(), and deleteTodo().
vector< CEvent * > CCalendar::getAllAddedEvents | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Added items after this date | ||
int& | place holder for pErrorCode error code |
int Date Added items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getEvent().
vector< CTodo * > CCalendar::getAllAddedTodos | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Added items after this date | ||
int& | place holder for pErrorCode error code |
int Date Added items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getTodo().
vector< CJournal * > CCalendar::getAllAddedJournals | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Added items after this date | ||
int& | place holder for pErrorCode error code |
int Date Added items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getJournal().
vector< CComponent * > CCalendar::getAllAddItems | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Added items after this date | ||
int& | place holder for pErrorCode error code |
int Date Added items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), getEvent(), getJournal(), and getTodo().
vector< CEvent * > CCalendar::getAllModifiedEvents | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Modified items after this date | ||
int& | place holder for pErrorCode error code |
int Date Modified items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getEvent().
vector< CTodo * > CCalendar::getAllModifiedTodos | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Modified items after this date | ||
int& | place holder for pErrorCode error code |
int Date Modified items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getTodo().
vector< CJournal * > CCalendar::getAllModifiedJournals | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Modified items after this date | ||
int& | place holder for pErrorCode error code |
int Date Modified items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), and getJournal().
vector< CComponent * > CCalendar::getAllModifiedItems | ( | int | iDate, | |
int & | pErrorCode | |||
) |
int Date Modified items after this date | ||
int& | place holder for pErrorCode error code |
int Date Modified items after this date | ||
int | * pErrorCode error code if any |
References getChangeIds(), getEvent(), getJournal(), and getTodo().
vector< string > CCalendar::getAllDeletedItems | ( | int | iLastSyncDate, | |
int | iType, | |||
int & | pErrorCode | |||
) |
vector of string id of Deleted items | ||
int | iType specifies the component type to be fetched | |
int& | place holder for pErrorCode error code |
int Date Deleted items after this date | ||
: | int iType signifies the component type can be Event /Todo/Journal | |
int | * pErrorCode error code if any |
References getCalendarId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by getAllDeletedEvents(), getAllDeletedJournals(), and getAllDeletedTodos().
int CCalendar::exportCalendarEntries | ( | string | szFileName, | |
int & | pErrorCode | |||
) |
string | - filename of the ics file | |
int& | place holder for pErrorCode error code |
string | - filename of the ics file | |
int | * pErrorCode error code if any |
References getCalendarType(), getDetailedBdayList(), getDetailedEventList(), getJournalListDetailed(), getTodoListDetailed(), ICalConverter::localToIcalVcal(), and ICalConverter::setSyncing().
Referenced by CMulticalendar::exportCalendarEntries().
bool CCalendar::setNextAlarm | ( | string | sComponentId, | |
int | iType, | |||
int & | pErrorCode | |||
) |
int | component id | |
int& | place holder for pErrorCode error code | |
int | iType Component type |
int | Component id | |
int | Component Type | |
int | * pErrorCode error code if any |
References addAlarm(), CAlarm::addAlarmEvent(), CComponent::getAlarm(), CComponent::getAllDay(), getBirthDayEvent(), getCalendarId(), CComponent::getDateEnd(), CComponent::getDateStart(), CComponent::getDescription(), getEvent(), CComponent::getFlags(), CComponent::getId(), CComponent::getLocation(), CComponent::getSummary(), getTodo(), CAlarm::getTrigger(), CComponent::getType(), CComponent::getTzid(), modifyEvent(), modifyTodo(), CComponent::removeAlarm(), CAlarm::setCookie(), CComponent::setFlags(), and CComponent::updateAlarmTriggerTime().
Referenced by CMulticalendar::setNextAlarm().
void CCalendar::setCalendarTune | ( | string | szCalendarTune | ) |
string | szCaeldnarTune |
setCalendarTune
string | szCaeldnarTune |
Referenced by CMulticalendar::getCalendarById(), CMulticalendar::getListCalFromMc(), and CMulticalendar::modifyCalendar().
string CCalendar::getCalendarTune | ( | ) |
NONE |
getCalendarTune
NONE |
Referenced by CAlarm::addAlarmEvent(), CMulticalendar::addCalendar(), and CMulticalendar::modifyCalendar().
bool CCalendar::addParameters | ( | map< string, vector< CParameters * > > | hashMap, | |
string | sId, | |||
ACTION | iAction, | |||
int & | pErrorCode, | |||
bool | clearHashMap = true | |||
) |
: | hashMap to store prop and param values | |
: | sId id of the entry | |
: | iAction action to be taken | |
int& | place holder for pErrorCode error code | |
: | clearHashMap indicator for hashMap content deletion |
: | hashMap to store prop and param values | |
: | sId id of the entry | |
: | iAction action to be taken | |
: | int pErrorCode | |
: | clearHashMap indicator for hashMap content deletion |
References CCalendarDB::getDb(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addAttendeeDetails(), addEvent(), addJournal(), addOrganizer(), addTodo(), modifyEvent(), and modifyJournal().
bool CCalendar::addXProperties | ( | vector< CProperties * > | vXProp, | |
string | sId, | |||
ACTION | iAction, | |||
int & | pErrorCode | |||
) |
vector<Cproperties*> | vXprop | |
string | sId | |
ACTION | iAction can be add/modify/delete | |
int& | place holder for pErrorCode error code |
References CCalendarDB::getDb(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addEvent(), addJournal(), addTodo(), modifyEvent(), and modifyJournal().
string CCalendar::getExternalToLocalId | ( | string | sId, | |
bool | fetchLocal, | |||
int & | pErrorCode | |||
) |
sId | input Id string for which mapped Id has to be found | |
bool | fetchExternal - flag to fetch external Id | |
int | & reference to error code. |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addBirthDay(), and deleteBirthDay().
bool CCalendar::addMapTableInfo | ( | string | sLocalId, | |
string | sExternalId, | |||
int & | pErrorCode | |||
) |
string | sLocalId - local Id of Birthday event | |
string | externalId Id maintained by exteranl applications | |
int& | pErrorCode - reference to errorcode |
INSERT_IDMAP
References CCalendarDB::getDb(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addBirthDay().
vector< string > CCalendar::getAllDeletedEvents | ( | int | iLastSyncDate, | |
int & | pErrorCode | |||
) |
int Date Deleted items after this date | ||
int | * pErrorCode error code if any |
References getAllDeletedItems().
vector< string > CCalendar::getAllDeletedJournals | ( | int | iLastSyncDate, | |
int & | pErrorCode | |||
) |
int Date Deleted items after this date | ||
int | * pErrorCode error code if any |
References getAllDeletedItems().
vector< string > CCalendar::getAllDeletedTodos | ( | int | iLastSyncDate, | |
int & | pErrorCode | |||
) |
int Date Deleted items after this date | ||
int | * pErrorCode error code if any |
References getAllDeletedItems().
bool CCalendar::destroyExistingValidAlarms | ( | int & | pErrorCode | ) |
destroyExistingValidAlarms
pErrorCode | - reference to error Code |
References addAlarm(), CAlarm::deleteAlarmEvent(), CComponent::getAlarm(), getBirthDayEvent(), getCalendarId(), getCalendarType(), getCookie(), getEvent(), CComponent::getId(), CCalendarDB::getRecords(), CComponent::getSummary(), CCalendarDB::Instance(), CAlarm::setCookie(), and CCalendarDB::sqliteErrorMapper().
Referenced by CMulticalendar::clearCalendar(), and CMulticalendar::modifyCalendar().
bool CCalendar::checkEntryExist | ( | string | szTable, | |
string | sId, | |||
int & | pErrorCode | |||
) |
string | table name | |
entryid | can be Id of event todo or Journal | |
int& | place holder for pErrorCode error code |
string | table name | |
entryid | can be Id of event todo or Journal | |
int | * pErrorCode error code if any |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by modifyBirthDay(), modifyEvent(), and modifyTodo().
CComponent * CCalendar::getEntry | ( | string | sCompId, | |
int | iType, | |||
int & | pErrorCode | |||
) |
string | sCompId Component Id | |
int | iType cand be E_EVENT,E_TODO or E_JOURNAL | |
int | pErrorCode reference to error code |
string | sCompId Component Id | |
int | iType cand be E_EVENT,E_TODO or E_JOURNAL | |
int | pErrorCode reference to error code |
References getEvent(), getJournal(), and getTodo().
vector< CEvent * > CCalendar::getDetailedBdayList | ( | int & | pErrorCode | ) |
int | * pErrorCode error code if any |
References getBirthDayEvent(), and getIdList().
Referenced by exportCalendarEntries().
CEvent * CCalendar::getBirthDayEvent | ( | string | sCompId, | |
int & | pErrorCode | |||
) |
getEvent
Component | ID | |
int | * pErrorCode error code if any |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by destroyExistingValidAlarms(), getDetailedBdayList(), CMulticalendar::getLatestComponent(), CMulticalendar::getPrevNextComponent(), registerAlarmForVisibleCalendar(), and setNextAlarm().
void CCalendar::deleteComponents | ( | vector< string > | idList, | |
int & | ErrorCode | |||
) |
vector<string> | list of component Ids to be deleted | |
ErrorCode |
References deleteComponent().
Referenced by CMulticalendar::deleteComponents().
void CCalendar::modifyComponents | ( | vector< CComponent * > & | compList, | |
int & | ErrorCode | |||
) |
vector<CComponent*> | CComponent to be modified | |
ErrorCode |
References modifyEvent(), modifyJournal(), and modifyTodo().
Referenced by CMulticalendar::modifyComponents().
vector< string > CCalendar::addComponents | ( | vector< CComponent * > & | compList, | |
vector< string > & | duplicateIds, | |||
int & | ErrorCode | |||
) |
vector<CComponent*> | vector of CComponent * to be added | |
vector | <string> duplicate Ids if at all they exist | |
Error | code - can be CALENDAR_OPERATION_SUCCESSFUL/CALENDAR_ENTRY_DUPLICATED |
FIXME: will add a set of error codes, which can be passed to API user each one corresponding to one evntry in component list,but this would mean changes in way api is used, will integrate this in coming weeks.
Function to add Events/tasks /Journals in batch
References addEvent(), addJournal(), and addTodo().
Referenced by CMulticalendar::addComponents().
vector< CEvent * > CCalendar::getEvents | ( | int & | pErrorCode | ) |
int | errorcode |
batch read API
int | errorcode |
References getCalendarId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CAlarm::setAction(), CAlarm::setAttach(), CAlarm::setCookie(), CAlarm::setDuration(), CRecurrence::setEDays(), CRecurrence::setErule(), CRecurrence::setRDays(), CRecurrence::setRecurId(), CAlarm::setRepeat(), CRecurrence::setRrule(), CRecurrence::setRtype(), CAlarm::setTrigger(), and CCalendarDB::sqliteErrorMapper().
vector< CTodo * > CCalendar::getTodos | ( | int & | pErrorCode | ) |
pErrorCode | Reference to error code |
References getCalendarId(), CComponent::getFlags(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CComponentDetails::retrieveParameterDetails(), CComponentDetails::retrieveXPropertyDetails(), CAlarm::setAction(), CComponent::setAlarm(), CAlarm::setAttach(), CComponentDetails::setCategories(), CComponentDetails::setClas(), CComponentDetails::setComments(), CTodo::setCompleted(), CComponentDetails::setContact(), CAlarm::setCookie(), CComponent::setDescription(), CAlarm::setDuration(), CTodo::setGeo(), CComponent::setGUid(), CComponentDetails::setHashMap(), CComponent::setId(), CComponent::setLocation(), CComponentDetails::setRelated(), CAlarm::setRepeat(), CComponentDetails::setResources(), CComponent::setSummary(), CAlarm::setTrigger(), CComponent::setType(), CComponent::setTzid(), CComponentDetails::setUid(), CComponentDetails::setUrl(), CComponentDetails::setXProperties(), CCalendarDB::sqliteErrorMapper(), and CTodo::toString().
vector< CJournal * > CCalendar::getJournals | ( | int & | pErrorCode | ) |
pErrorCode | Reference to error code |
pErrorCode | Reference to error code |
References getCalendarId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CComponentDetails::retrieveParameterDetails(), CComponentDetails::retrieveXPropertyDetails(), CComponentDetails::setCategories(), CComponentDetails::setClas(), CComponentDetails::setComments(), CComponentDetails::setContact(), CComponent::setDescription(), CComponent::setGUid(), CComponentDetails::setHashMap(), CComponent::setId(), CComponent::setLocation(), CComponentDetails::setRelated(), CComponentDetails::setResources(), CComponent::setSummary(), CComponent::setTzid(), CComponentDetails::setXProperties(), CCalendarDB::sqliteErrorMapper(), and CJournal::toString().
string CCalendar::toString | ( | ) |
toString
References getCalendarColor(), getCalendarId(), getCalendarName(), getProfileType(), IsReadOnly(), and IsShown().
Referenced by CMulticalendar::getCalendarById(), and CMulticalendar::getListCalFromMc().
bool CCalendar::checkFieldinTable | ( | string | szTable, | |
string | szField, | |||
string | szValue | |||
) | [private] |
string | szTable table name | |
string | szField column name | |
string | szValue value to be checked |
References CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
vector< CComponent * > CCalendar::getRecursiveEventsInRange | ( | int | iStDate, | |
int | iEndDate, | |||
vector< CComponent * > | vListEntry, | |||
int & | pErrorCode | |||
) | [private] |
int | stDate date start in integer format | |
int | end Date in integer format | |
vector | <CComponent*> vector of CComponent pointers | |
int& | place holder for pErrorCode error code |
int | iCalid calendar Id | |
int | stDate date start in integer format | |
vector | <CComponent*> vector of CComponent pointers | |
int | * pErrorCode error code if any |
References CComponent::getAlarmProperties(), getCalendarId(), CComponent::getFlags(), CComponent::getInstanceNumber(), CCalendarDB::getRecords(), CComponent::getRecurrenceProperties(), CComponent::getType(), CCalendarDB::Instance(), CComponent::setCalendarId(), CComponent::setCreatedTime(), CComponent::setDescription(), CComponent::setGUid(), CComponent::setId(), CComponent::setLastModified(), CComponent::setLocation(), CComponent::setSummary(), CComponent::setTzid(), CCalendarDB::sqliteErrorMapper(), and CComponent::toString().
Referenced by getComponents().
vector< string > CCalendar::getChangeIds | ( | int | iCompType, | |
int | iChangeType, | |||
int | iDate, | |||
int & | pErrorCode | |||
) | [private] |
int iCompType specifies ComponentType (event/todo/journal) | ||
int iChangeType specifies ChangeType (add/mod/delete) | ||
int iDate | ||
int& | place holder for pErrorCode error code |
int iCompType specifies ComponentType (event/todo/journal) | ||
int iChangeType specifies ChangeType (add/mod/delete) | ||
int iDate | ||
int | * pErrorCode error code if any |
References getCalendarId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by getAllAddedEvents(), getAllAddedJournals(), getAllAddedTodos(), getAllAddItems(), getAllModifiedEvents(), getAllModifiedItems(), getAllModifiedJournals(), and getAllModifiedTodos().
bool CCalendar::entrySetModifiedTime | ( | CComponent * | pEntry, | |
int & | pErrorCode | |||
) | [private] |
CComponent | * | |
int& | place holder for pErrorCode error code |
bool CCalendar::addCompDetails | ( | sqlite3_stmt * | pStmt, | |
comp * | cDet, | |||
int & | pErrorCode | |||
) | [inline, private] |
sqlite3_stmt* | Sqlite pPreparedStmttement comp* template to CEvent, CTodo, CJournal | |
int& | place holder for pErrorCode error code |
addCompDetails
sqlite3_stmt* | Sqlite pPreparedStmttement comp* template to CEvent, CTodo, CJournal | |
int | * pErrorCode error code if any |
This function is used to do the prepared statement for common parameters
Referenced by addEventCompDetails(), addJournalCompDetails(), and addTodoCompDetails().
bool CCalendar::addEventCompDetails | ( | CEvent * | pEvent, | |
int & | pErrorCode | |||
) | [private] |
CEvent* | Pointer to CEvent class | |
int& | place holder for pErrorCode error code |
addEventCompDetails
CEvent* | Pointer to CEvent class | |
int | * pErrorCode error code if any |
References addCompDetails(), CCalendarDB::getDb(), CEvent::getGeo(), CEvent::getPriority(), CEvent::getTransparency(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addEvent().
bool CCalendar::addTodoCompDetails | ( | CTodo * | ptrTodo, | |
int & | pErrorCode | |||
) | [private] |
CTodo* | Pointer to CTodo class | |
int& | place holder for pErrorCode error code |
addTodoCompDetails
CTodo* | Pointer to CTodo class | |
int | * pErrorCode error code if any |
References addCompDetails(), CTodo::getCompleted(), CCalendarDB::getDb(), CTodo::getGeo(), CTodo::getPercentComplete(), CTodo::getPriority(), CComponent::getStatus(), CCalendarDB::insertRows(), CCalendarDB::Instance(), CTodo::setCompleted(), and CCalendarDB::sqliteErrorMapper().
Referenced by addTodo().
bool CCalendar::addJournalCompDetails | ( | CJournal * | ptrJournal, | |
int & | pErrorCode | |||
) | [private] |
CJournal* | Pointer to CJournal class | |
int& | place holder for pErrorCode error code |
addJournalCompDetails
CJournal* | Pointer to CJournal class | |
int | * pErrorCode error code if any |
References addCompDetails(), CCalendarDB::getDb(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addJournal().
bool CCalendar::manageCookie | ( | const ACTION | iAction, | |
CComponent * | pcomp, | |||
int & | pErrorCode | |||
) | [private] |
ACTION | Enumerated data type | |
CComponent | pointer | |
Calendar | id | |
int& | place holder for pErrorCode error code |
ACTION | Enumerated data type | |
CComponent | pointer | |
Calendar | id | |
int | * pErrorCode error code if any |
References CAlarm::addAlarmEvent(), CAlarm::deleteAlarmEvent(), CComponent::getAlarm(), CComponent::getAllDay(), getCalendarId(), getCookie(), CComponent::getDateEnd(), CComponent::getDateStart(), CComponent::getDescription(), CComponent::getId(), CComponent::getLocation(), CComponent::getSummary(), CAlarm::getTrigger(), CComponent::getType(), CComponent::getTzid(), CAlarm::setCookie(), and CComponent::updateAlarmTriggerTime().
Referenced by addEvent(), addTodo(), modifyBirthDay(), modifyEvent(), and modifyTodo().
bool CCalendar::addAlarm | ( | CAlarm * | ptrAlarm, | |
ACTION | iAction, | |||
string | sId, | |||
int & | pErrorCode | |||
) | [private] |
ptrAlarm | pointer to Alarm | |
sId | - id of component string | |
iAction | type of Action | |
int& | place holder for pErrorCode error code |
ptrAlarm | pointer to Alarm | |
sId | - id of component string | |
iAction | type of Action | |
int | * pErrorCode error code if any |
References CAlarm::getAction(), CAlarm::getAttach(), CAlarm::getCookie(), CCalendarDB::getDb(), CAlarm::getDuration(), CAlarm::getRepeat(), CAlarm::getTimeBefore(), CAlarm::getTrigger(), CCalendarDB::insertRows(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by addEvent(), addTodo(), destroyExistingValidAlarms(), modifyBirthDay(), modifyEvent(), modifyTodo(), registerAlarmForVisibleCalendar(), and setNextAlarm().
bool CCalendar::addRecurrence | ( | CRecurrence * | ptrRecur, | |
string | sId, | |||
int & | pErrorCode | |||
) | [private] |
ptrRecur | Pointer to Recurrence | |
sId | Event id - string | |
int& | place holder for pErrorCode error code |
ptrRecur | Pointer to Recurrence | |
iAction | Add / Modify | |
sId | Event id - string | |
int | * pErrorCode error code if any |
References CCalendarDB::getDb(), CRecurrence::getEDays(), CRecurrence::getErule(), CRecurrence::getRDays(), CRecurrence::getRecurId(), CRecurrence::getRrule(), CRecurrence::getRtype(), CCalendarDB::insertRows(), CCalendarDB::Instance(), and CCalendarDB::sqliteErrorMapper().
Referenced by addBirthDay(), addEvent(), addTodo(), modifyBirthDay(), modifyEvent(), and modifyTodo().
bool CCalendar::modifyRecurrence | ( | CRecurrence * | ptrRecur, | |
string | sId, | |||
int & | pErrorCode | |||
) | [private] |
ptrRecur | Pointer to Recurrence | |
sId | Event id - string | |
int | pErrorCode error code if any |
References CCalendarDB::getDb(), CRecurrence::getEDays(), CRecurrence::getErule(), CRecurrence::getRDays(), CRecurrence::getRecurId(), CRecurrence::getRrule(), CRecurrence::getRtype(), CCalendarDB::Instance(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by modifyBirthDay(), modifyEvent(), and modifyTodo().
bool CCalendar::addAttendeeDetails | ( | vector< CAttendee * > | vAttenList, | |
string | sId, | |||
int | iType, | |||
ACTION | iAction, | |||
int & | pErrorCode | |||
) | [private] |
vector | list of CAttendee pointers | |
string | represents id of the component | |
int | type can be event/todo or journal | |
iAction | type can be Add / Modify | |
int& | place holder for pErrorCode error code |
addAttendeeDetails
vector | list of CAttendee pointers | |
string | represents id of the component | |
int | type can be EVENT , TODO or JOURNAL. | |
ACTION | type can be Add / Modify. | |
int | * pErrorCode error code if any |
References addParameters(), CCalendarDB::Instance(), CParameters::setParamName(), and CParameters::setParamValue().
Referenced by addEvent(), addJournal(), addTodo(), modifyEvent(), and modifyJournal().
bool CCalendar::addOrganizer | ( | COrganizer * | ptrOrganizer, | |
string | sId, | |||
int | iType, | |||
ACTION | iAction, | |||
int & | pErrorCode | |||
) | [private] |
ptrOrganizer | COrganizer pointer | |
string | sId Id of the component | |
int | iType can be event/todo or journal | |
iAction | type can be Add / Modify | |
int& | place holder for pErrorCode error code |
addOrganizer
ptrOrganizer | COrganizer pointer | |
string | sId Id of the component | |
int | * pErrorCode error code if any | |
iType | type can be Event/Todo/Journal | |
iAction | can be add/modify |
References addParameters(), CParticipant::getCommonName(), CParticipant::getDirectoryParameter(), CParticipant::getLanguage(), CParticipant::getMailTo(), CParticipant::getSentBy(), CCalendarDB::Instance(), CParameters::setParamName(), and CParameters::setParamValue().
Referenced by addEvent(), addJournal(), addTodo(), modifyEvent(), and modifyJournal().
int CCalendar::addComponent | ( | ent * | pEvent, | |
ACTION | iAction, | |||
int & | pErrorCode | |||
) | [inline, private] |
Template | pointer can be CEvent* ,CTodo* ,CJournal* | |
ACTION | - enumeration for add/del/modify | |
int& | place holder for pErrorCode error code |
addComponent
pEvent | calEvent pointer | |
int | * pErrorCode error code if any |
adding the time zone to which event belongs
References CMulticalendar::addInstance(), CMulticalendar::addInstances(), CMulticalendar::dropInstances(), getCalendarId(), CCalendarDB::getDb(), CMulticalendar::getSystemTimeZone(), CCalendarDB::insertRows(), CCalendarDB::Instance(), CMulticalendar::MCInstance(), CCalendarDB::sqliteErrorMapper(), and CCalendarDB::updateDB().
Referenced by addBirthDay(), addEvent(), addJournal(), addTodo(), modifyBirthDay(), modifyEvent(), modifyJournal(), and modifyTodo().
string CCalendar::szName [private] |
Calendar Name
Referenced by CCalendar(), getCalendarName(), and operator=().
CalendarColour CCalendar::iColor [private] |
Calendar color
Referenced by CCalendar(), getCalendarColor(), and operator=().
bool CCalendar::fReadOnly [private] |
Calendar read only status
Referenced by CCalendar(), IsReadOnly(), operator=(), and setCalendarReadOnly().
bool CCalendar::fIsVisible [private] |
Calendar visibility status
Referenced by CCalendar(), IsShown(), operator=(), and setCalendarShown().
int CCalendar::iCalId [private] |
Calendar ID - Primary key in database
Referenced by CCalendar(), getAllEventsTodos(), getCalendarId(), getComponents(), operator=(), and setCalendarId().
CalendarType CCalendar::iCalType [private] |
Calendar Type
Referenced by CCalendar(), getCalendarType(), and operator=().