#include <CComponent.h>
Public Member Functions | |
CComponent () | |
CComponent (CComponent &) | |
CComponent (string description) | |
CComponent (string summary, time_t tododue, int status) | |
CComponent (string summary, string description, string location, time_t dateStart, time_t dateEnd) | |
CComponent (string szuid, string szDescription, time_t stDateStart) | |
vector< CRecurrenceRule * > | retrieveRecurreceRuleObject () |
const CComponent & | operator= (const CComponent &right) |
CComponent (string id, int type, int flags, string summary, string description, string location, int status, time_t dateStart, time_t dateEnd, time_t lastModified, time_t iCreatedTime) | |
bool | setId (string sId) |
string | getId () |
bool | setType (int num) |
int | getType () |
bool | setFlags (int iflag) |
int | getFlags () |
bool | setSummary (string szSummary) |
string | getSummary () |
bool | setDescription (string strDescription) |
string | getDescription () |
bool | setLocation (string szLocation) |
string | getLocation () |
bool | setStatus (int iStatus) |
int | getStatus () |
bool | setDateStart (time_t dateStart) |
time_t | getDateStart () |
bool | setDateEnd (time_t dateEnd) |
time_t | getDateEnd () |
bool | setLastModified (time_t lastModified) |
bool | setRecurrence (CRecurrence *ptrRecur) |
CRecurrence * | getRecurrence () |
time_t | getLastModified () |
bool | setUntil (time_t iuntil) |
time_t | getUntil () |
bool | setGUid (string szuid) |
string | getGUid () |
bool | setRtype (int irtype) |
int | getRtype () |
bool | setAlarm (CAlarm *uAlarm) |
bool | setAlarm (int time_before, int alarm_duration) |
bool | setAlarmBefore (int time_before) |
CAlarm * | getAlarm () |
int | getAlarmBefore () |
int | getAllDay () |
bool | setAllDay (int iAllDay) |
vector< time_t > | generateInstanceTimes (time_t viewBegin, time_t viewEnd) |
vector< time_t > | getInstanceTimes (time_t viewBegin, time_t viewEnd) |
int | getInstanceNumber (time_t viewBegin, time_t viewEnd) |
int | getDuration () |
bool | getRecurrenceProperties () |
bool | getAlarmProperties () |
virtual | ~CComponent () |
void | setCreatedTime (time_t iCreatedTime) |
time_t | getCreatedTime () |
void | removeAlarm () |
void | removeRecurrence () |
string | getTzid () |
void | setTzid (string sZone) |
time_t | getTzOffset (void) |
void | setTzOffset (time_t) |
string | toString () |
vector< string > | extractSubStrings (string SourceString, string byField) |
void | updateUntilInDB (time_t until, int &pErrorCode) |
bool | updateAlarmTriggerTime (time_t *pOutInstanceTime) |
void | setCalendarId (int iId) |
int | getCalendarId () |
Private Member Functions | |
bool | generateYearlyInstanceTime (time_t viewBegin, time_t viewEnd, vector< time_t > &time) |
Private Attributes | |
string | sId |
int | iCalId |
int | iType |
int | iFlags |
int | iStatus |
time_t | iDateStart |
time_t | iDateEnd |
time_t | iLastModified |
time_t | iCreatedTime |
time_t | iuntil |
int | iAllDay |
string | szSummary |
string | szDescription |
string | szLocation |
string | szuid |
CRecurrence * | pRecurrence |
CAlarm * | pAlarm |
string | sTzid |
time_t | tzOffset |
time_t | iStDate |
time_t | iEndDate |
vector< time_t > | rTimes |
CComponent class
CComponent::CComponent | ( | ) |
CComponent() This is the defult constructor for CComponent class
CComponent () Default CComponent constructor
CComponent::CComponent | ( | CComponent & | ref | ) |
Copy Constructor
Component() CComponent copy constructor
References iAllDay, iCalId, iCreatedTime, iDateEnd, iDateStart, iEndDate, iFlags, iLastModified, iStatus, iStDate, iType, iuntil, pAlarm, pRecurrence, setAlarm(), setRecurrence(), sId, sTzid, szDescription, szLocation, szSummary, and tzOffset.
CComponent::CComponent | ( | string | szDescription | ) |
Overloaded Constructor
CComponent::CComponent | ( | string | szSummary, | |
time_t | stTododue, | |||
int | iStatus | |||
) |
Overloaded constructor
CComponent Overloaded Parametrized constructor
CComponent::CComponent | ( | string | szSummary, | |
string | szDescription, | |||
string | szLocation, | |||
time_t | iDateStart, | |||
time_t | iDateEnd | |||
) |
Overloaded Constructor
CComponent Overloaded Parametrized with minimal parameters for UI
CComponent::CComponent | ( | string | szuid, | |
string | szSummary, | |||
time_t | iDateStart | |||
) |
overloaded Constructor
CComponent Overloaded Parametrized constructor for CBdayEvent
CComponent::CComponent | ( | string | sId, | |
int | iType, | |||
int | iFlags, | |||
string | szSummary, | |||
string | szDescription, | |||
string | szLocation, | |||
int | iStatus, | |||
time_t | iDateStart, | |||
time_t | iDateEnd, | |||
time_t | iLastModified, | |||
time_t | iCreatedTime | |||
) |
id | entryid | |
type | entry type | |
calendarId | Calendar ID | |
flags | Flags to identify secondary table | |
summary | Summary for event / todo / journal | |
description | Entry description | |
status | Entry status | |
dateStart | Start date for event | |
dateEnd | End date for event | |
lastModified | Last modified date for event |
CComponent Overloaded Parametrized constructor
CComponent::~CComponent | ( | ) | [virtual] |
Destructor for CComponent class.
References pAlarm, and pRecurrence.
vector< CRecurrenceRule * > CComponent::retrieveRecurreceRuleObject | ( | ) |
NONE |
retrieveRecurrenceRuleObject
NONE |
References CRecurrence::getRecurrenceRule(), and pRecurrence.
const CComponent & CComponent::operator= | ( | const CComponent & | right | ) |
Constant | reference to CComponent |
overloaded assignment operator
References iAllDay, iCalId, iDateEnd, iDateStart, iFlags, iStatus, iType, pAlarm, pRecurrence, removeAlarm(), removeRecurrence(), setAlarm(), setRecurrence(), sId, sTzid, szDescription, szLocation, szSummary, and tzOffset.
Referenced by CComponentDetails::operator=().
bool CComponent::setId | ( | string | sId | ) |
: | string sId Id of the string |
setId
: | string sId |
Referenced by CCalendar::checkDuplicateEntry(), CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CCalendar::getJournal(), CCalendar::getJournals(), CMulticalendar::getLatestComponent(), getRecurrenceProperties(), CCalendar::getRecursiveEventsInRange(), CMulticalendar::getTodaysAllDay(), CCalendar::getTodo(), CCalendar::getTodos(), and CMulticalendar::popEventDetails().
string CComponent::getId | ( | ) |
:None |
:None |
References sId.
Referenced by CCalendar::addBirthDay(), CCalendar::addCacheEntries(), CCalendar::addEvent(), CCalendar::addJournal(), CCalendar::addTodo(), CCalendar::destroyExistingValidAlarms(), CMulticalendar::enableAutomaticDeletion(), generateInstanceTimes(), getAlarmProperties(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), getInstanceNumber(), CMulticalendar::getLatestComponent(), CComponentDetails::getParameter(), CComponentDetails::getPropertyValues(), getRecurrenceProperties(), CCalendar::manageCookie(), CCalendar::modifyBirthDay(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), CCalendar::modifyTodo(), CCalendar::registerAlarmForVisibleCalendar(), CComponentDetails::retrieveAttendeeDetails(), CComponentDetails::retrieveOrganizerDetails(), CComponentDetails::retrieveParameterDetails(), CComponentDetails::retrieveXPropertyDetails(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setType | ( | int | type | ) |
: | int num used to set type of entry |
: | num(int) > > used to set type of entry |
References iType.
Referenced by CEvent::CEvent(), CJournal::CJournal(), CTodo::CTodo(), CCalendar::getComponents(), CCalendar::getTodo(), CCalendar::getTodos(), ICalConverter::localToIcalVcal(), and ICalConverter::toLocal().
int CComponent::getType | ( | ) |
:None |
:None |
References iType.
Referenced by generateInstanceTimes(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), getInstanceNumber(), CCalendar::getRecursiveEventsInRange(), ICalConverter::localToIcalVcal(), CCalendar::manageCookie(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), CCalendar::modifyTodo(), CMulticalendar::popEventDetails(), CCalendar::registerAlarmForVisibleCalendar(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setFlags | ( | int | flags | ) |
int | iflag to indicate recurrence or alarm |
: | calendarId(int) > > Used to set the flags. |
References iFlags.
Referenced by CCalendar::getComponents(), and CCalendar::setNextAlarm().
int CComponent::getFlags | ( | ) |
:None |
:None |
References iFlags.
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CCalendar::getRecursiveEventsInRange(), CCalendar::getTodo(), CCalendar::getTodos(), CMulticalendar::popEventDetails(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setSummary | ( | string | summary | ) |
: | string szSummary it is the summary of the entry |
: | string > > it is the summary of the entry |
References szSummary.
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CCalendar::getJournal(), CCalendar::getJournals(), CMulticalendar::getLatestComponent(), CCalendar::getRecursiveEventsInRange(), CMulticalendar::getTodaysAllDay(), CCalendar::getTodo(), CCalendar::getTodos(), CMulticalendar::popEventDetails(), and CBdayEvent::setFirstName().
string CComponent::getSummary | ( | ) |
: | None |
: | None |
References szSummary.
Referenced by CCalendar::checkDuplicateEntry(), generateYearlyInstanceTime(), CBdayEvent::getFirstName(), CMulticalendar::getLatestComponent(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), ICalConverter::replaceWithEncodedString(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setDescription | ( | string | description | ) |
: | string szDescripton it is the description of the entry |
: | string > > it is the description of the entry |
References szDescription.
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getRecursiveEventsInRange(), CCalendar::getTodo(), CCalendar::getTodos(), and CMulticalendar::popEventDetails().
string CComponent::getDescription | ( | ) |
: | None |
getDescription ()
: | None |
References szDescription.
Referenced by CCalendar::checkDuplicateEntry(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), ICalConverter::replaceWithEncodedString(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setLocation | ( | string | location | ) |
: | string szLocation it is the location of the entry |
: | string > > it is the location of the entry |
References szLocation.
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getRecursiveEventsInRange(), CCalendar::getTodo(), CCalendar::getTodos(), and CMulticalendar::popEventDetails().
string CComponent::getLocation | ( | ) |
: | None |
References szLocation.
Referenced by CCalendar::checkDuplicateEntry(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), ICalConverter::replaceWithEncodedString(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setStatus | ( | int | status | ) |
: | int iStatus Used to set the status for entry. |
: | Used to set the status for entry. |
References iStatus.
Referenced by CCalendar::getAllEventsTodos(), and CCalendar::getComponents().
int CComponent::getStatus | ( | ) |
:None |
:None |
References iStatus.
Referenced by CCalendar::addTodoCompDetails(), CCalendar::modifyTodo(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setDateStart | ( | time_t | dateStart | ) |
: | time_t Used to set the start date for event. |
: | Used to set the start date for event. |
References iDateStart.
Referenced by CMulticalendar::enableAutomaticDeletion(), CCalendar::getComponents(), CMulticalendar::getLatestComponent(), ICalConverter::importEventDateStartAndDateEnd(), ICalConverter::importTodoDue(), CBdayEvent::setBirthDate(), and ICalConverter::toLocal().
time_t CComponent::getDateStart | ( | ) |
:None |
:None |
References iDateStart.
Referenced by CCalendar::addEvent(), CCalendar::checkDuplicateEntry(), CCalendar::checkIfMultiDayEvent(), CMulticalendar::enableAutomaticDeletion(), generateYearlyInstanceTime(), CBdayEvent::getBirthDate(), CTodo::getDue(), CMulticalendar::getLatestComponent(), CMulticalendar::getPrevNextComponent(), ICalConverter::importEventDateEnd(), ICalConverter::importEventDateStartAndDateEnd(), ICalConverter::localToIcalVcal(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), CCalendar::setNextAlarm(), ICalConverter::toLocal(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setDateEnd | ( | time_t | dateEnd | ) |
: | time_t Used to set the date end for entry. |
: | Used to set the date end for entry. |
References iDateEnd.
Referenced by CMulticalendar::enableAutomaticDeletion(), CCalendar::getComponents(), ICalConverter::importEventDateEnd(), and ICalConverter::importEventDateStartAndDateEnd().
time_t CComponent::getDateEnd | ( | ) |
:None |
:None |
References iDateEnd.
Referenced by CCalendar::addEvent(), CCalendar::checkIfMultiDayEvent(), CMulticalendar::enableAutomaticDeletion(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setLastModified | ( | time_t | lastModified | ) |
: | time_t Used to set the last modified value |
: | Used to set the last modified value |
References iLastModified.
Referenced by CCalendar::checkDuplicateEntry(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CCalendar::getRecursiveEventsInRange(), and CCalendar::modifyJournal().
bool CComponent::setRecurrence | ( | CRecurrence * | uRecurrence | ) |
:CRecurrence | * pTrRecur pointer to recurrence object |
:CRecurrence | * |
References pRecurrence, and removeRecurrence().
Referenced by CComponent(), getRecurrenceProperties(), ICalConverter::importEventRecurrence(), and operator=().
CRecurrence * CComponent::getRecurrence | ( | ) |
:None |
:None |
References pRecurrence.
Referenced by CCalendar::addBirthDay(), CCalendar::addCacheEntries(), CCalendar::addEvent(), CCalendar::addTodo(), ICalConverter::localToIcalVcal(), CCalendar::modifyBirthDay(), CCalendar::modifyEvent(), CCalendar::modifyTodo(), ICalConverter::toLocal(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), toString(), and CBdayEvent::toString().
time_t CComponent::getLastModified | ( | ) |
:None |
:None |
References iLastModified.
Referenced by CCalendar::checkDuplicateEntry(), CCalendar::modifyJournal(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setUntil | ( | time_t | iuntil | ) |
: | time_t time in UTC (integer) format. |
setUntil
: | int time in UTC (integer) format. |
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), and ICalConverter::importEventRecurrence().
time_t CComponent::getUntil | ( | ) |
: | NONE. |
getUntil
: | NONE. |
References iuntil.
Referenced by CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), CBdayEvent::toString(), and updateAlarmTriggerTime().
bool CComponent::setGUid | ( | string | szuid | ) |
: | string globally unique ID for component. |
setGUid
: | string globally unique ID for component. |
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getRecursiveEventsInRange(), CCalendar::getTodo(), CCalendar::getTodos(), CMulticalendar::popEventDetails(), and CBdayEvent::setEBookUid().
string CComponent::getGUid | ( | ) |
: | NONE |
getGUid
: | NONE |
References szuid.
Referenced by CCalendar::checkDuplicateEntry(), CBdayEvent::getEBookUid(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setRtype | ( | int | irtype | ) |
: | NONE. |
setRtype
: | int Type of recurrence . |
References pRecurrence, and CRecurrence::setRtype().
int CComponent::getRtype | ( | ) |
: | NONE. |
getRtype
: | NONE. |
References CRecurrence::getRtype(), and pRecurrence.
bool CComponent::setAlarm | ( | CAlarm * | uAlarm | ) |
CAlarm* | uAlarm pointer to CAlarm object |
setAlarm(Calarm *)
CAlarm* | pointer to CAlarm object |
References iType, pAlarm, removeAlarm(), CAlarm::setDuration(), and CAlarm::setTimeBefore().
Referenced by CComponent(), getAlarmProperties(), CCalendar::getTodo(), CCalendar::getTodos(), operator=(), and setAlarmBefore().
bool CComponent::setAlarm | ( | int | time_before, | |
int | alarm_duration | |||
) |
time_before | - Alarm time in seconds before component occurance start time | |
alarm_duration | - Alarm duration (E_AM_NONE, E_AM_xxxMIN, E_AM_DAYBEFORE, etc) |
time_before | - Alarm time in seconds before component occurance start time | |
alarm_duration | - Alarm type (E_AM_NONE, E_AM_xxxMIN, E_AM_DAYBEFORE, etc) |
References pAlarm, removeAlarm(), CAlarm::setDuration(), CAlarm::setTimeBefore(), and CAlarm::setTrigger().
bool CComponent::setAlarmBefore | ( | int | time_before | ) |
time_before | - Alarm time in seconds before component occurance start time |
References setAlarm().
CAlarm * CComponent::getAlarm | ( | ) |
NONE |
NONE |
References pAlarm.
Referenced by CCalendar::addEvent(), CCalendar::addTodo(), CCalendar::destroyExistingValidAlarms(), CCalendar::manageCookie(), CCalendar::modifyBirthDay(), CCalendar::modifyEvent(), CCalendar::modifyTodo(), CCalendar::registerAlarmForVisibleCalendar(), CCalendar::setNextAlarm(), ICalConverter::toLocal(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), toString(), and CBdayEvent::toString().
int CComponent::getAlarmBefore | ( | ) |
References CAlarm::getTimeBefore(), and pAlarm.
int CComponent::getAllDay | ( | ) |
NONE |
NONE |
References iAllDay.
Referenced by generateInstanceTimes(), getInstanceNumber(), CMulticalendar::getLatestComponent(), ICalConverter::importEventDateEnd(), ICalConverter::localToIcalVcal(), CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), CCalendar::setNextAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
bool CComponent::setAllDay | ( | int | iAllDay | ) |
int | (0 not all day ,1 allday event ) |
int | (0 not all day ,1 allday event ) |
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getLatestComponent(), CMulticalendar::getTodaysAllDay(), and ICalConverter::importEventDateStartAndDateEnd().
vector< time_t > CComponent::generateInstanceTimes | ( | time_t | viewBegin, | |
time_t | viewEnd | |||
) |
viewBegin | lower range of current view | |
viewEnd | higher range of current view |
viewBegin | lower range of current view | |
viewEnd | higher range of current view |
References CRecurrence::generateInstanceTimes(), generateYearlyInstanceTime(), getAllDay(), getId(), getType(), iDateEnd, iDateStart, iEndDate, iStDate, pRecurrence, and rTimes.
Referenced by CCalendar::addCacheEntries(), getInstanceTimes(), and updateAlarmTriggerTime().
vector< time_t > CComponent::getInstanceTimes | ( | time_t | viewBegin, | |
time_t | viewEnd | |||
) |
viewBegin | lower range of current view | |
viewEnd | higher range of current view |
References generateInstanceTimes().
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent().
int CComponent::getInstanceNumber | ( | time_t | viewBegin, | |
time_t | viewEnd | |||
) |
viewBegin | lower range of current view viewEnd higher range of current view |
References CRecurrence::checkInstances(), generateYearlyInstanceTime(), getAllDay(), getId(), getType(), iDateEnd, iDateStart, and pRecurrence.
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), and CCalendar::getRecursiveEventsInRange().
int CComponent::getDuration | ( | ) |
NONE |
getDurationFromAlarm()
NONE |
References CAlarm::getDuration(), and pAlarm.
bool CComponent::getRecurrenceProperties | ( | ) |
ptrEntry | Component Entry template , can be event*,todo*,journal* or CComponent* |
ptrEntry | Component Entry template , can be event*,todo*,journal* or CComponent* |
References extractSubStrings(), getId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CRecurrence::setEDays(), CRecurrence::setErule(), setId(), CRecurrence::setRDays(), CRecurrence::setRecurId(), setRecurrence(), CRecurrence::setRrule(), and CRecurrence::setRtype().
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CCalendar::getRecursiveEventsInRange(), and CMulticalendar::popEventDetails().
bool CComponent::getAlarmProperties | ( | ) |
template | can be event todo or Journal pointer |
template | can be event todo or Journal pointer |
References getId(), CCalendarDB::getRecords(), CCalendarDB::Instance(), pAlarm, setAlarm(), CAlarm::setAttach(), CAlarm::setCookie(), CAlarm::setDuration(), and CAlarm::setTimeBefore().
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CCalendar::getRecursiveEventsInRange(), and CMulticalendar::popEventDetails().
void CComponent::setCreatedTime | ( | time_t | iCreatedTime | ) |
time_t iCreatedTime time in utc |
getLocation ()
: | None |
int | time in utc |
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), and CCalendar::getRecursiveEventsInRange().
time_t CComponent::getCreatedTime | ( | ) |
none |
getCreatedTime
none |
References iCreatedTime.
Referenced by ICalConverter::localToIcalVcal(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), and CBdayEvent::toString().
void CComponent::removeAlarm | ( | ) |
removeAlarm compoent
References iFlags, and pAlarm.
Referenced by CCalendar::addEvent(), CCalendar::addTodo(), CCalendar::modifyBirthDay(), CCalendar::modifyEvent(), operator=(), setAlarm(), and CCalendar::setNextAlarm().
void CComponent::removeRecurrence | ( | ) |
time_t CComponent::getTzOffset | ( | void | ) |
get Method to retrieve Tzoffset
void CComponent::setTzOffset | ( | time_t | offset | ) |
function to set the tzoffset
string CComponent::toString | ( | ) |
to string is used to print the class members
Reimplemented in CBdayEvent, CComponentDetails, CEvent, CJournal, and CTodo.
References getAlarm(), getCalendarId(), getRecurrence(), iAllDay, iCreatedTime, iDateEnd, iDateStart, iFlags, iLastModified, iStatus, iType, iuntil, pAlarm, sId, szDescription, szLocation, szSummary, szuid, CRecurrence::toString(), and CAlarm::toString().
Referenced by CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CCalendar::getRecursiveEventsInRange(), CMulticalendar::getTodaysAllDay(), and CMulticalendar::popEventDetails().
vector< string > CComponent::extractSubStrings | ( | string | sub, | |
string | by | |||
) |
Function to parse substring based on a delimiter
extractSubStrings
string | which needs to be parsed |
Referenced by getRecurrenceProperties().
void CComponent::updateUntilInDB | ( | time_t | until, | |
int & | pErrorCode | |||
) |
string | sId Id of the component | |
time_t | until value | |
int& | reference to error code |
string | sId Id of the component | |
time_t | until value | |
int& | reference to error code |
References CCalendarDB::execSQL(), CCalendarDB::Instance(), sId, and CCalendarDB::sqliteErrorMapper().
bool CComponent::updateAlarmTriggerTime | ( | time_t * | pOutInstanceTime | ) |
Update Alarm trigger time for upcoming event instance param pOutInstanceTime - pointer to time_t to recieve instance time the alarm is set for
References generateInstanceTimes(), CAlarm::getDuration(), CAlarm::getTimeBefore(), CAlarm::getTrigger(), getUntil(), iDateStart, pAlarm, pRecurrence, and CAlarm::setTrigger().
Referenced by CCalendar::manageCookie(), CCalendar::registerAlarmForVisibleCalendar(), and CCalendar::setNextAlarm().
void CComponent::setCalendarId | ( | int | iId | ) |
int | iId: Calendar id to be set |
References iCalId.
Referenced by CMulticalendar::checkExistenceOfFutureRepeatingEvent(), CCalendar::getAllEventsTodos(), CCalendar::getComponents(), CMulticalendar::getComponentsAllCalendars(), CMulticalendar::getComponentsWithLimitedData(), CMulticalendar::getLatestComponent(), CCalendar::getRecursiveEventsInRange(), CMulticalendar::getTodaysAllDay(), and CMulticalendar::popEventDetails().
int CComponent::getCalendarId | ( | ) |
None |
References iCalId.
Referenced by CMulticalendar::getPrevNextComponent(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), toString(), and CBdayEvent::toString().
bool CComponent::generateYearlyInstanceTime | ( | time_t | viewBegin, | |
time_t | viewEnd, | |||
vector< time_t > & | times | |||
) | [private] |
viewBegin | lower range of current view | |
viewEnd | higher range of current view | |
times | vector to add generated event time |
References getDateStart(), getSummary(), CMulticalendar::getSystemTimeZone(), and CMulticalendar::MCInstance().
Referenced by generateInstanceTimes(), and getInstanceNumber().
string CComponent::sId [private] |
extractSubStrings
string | which needs to be parsed |
Referenced by CComponent(), getId(), operator=(), toString(), and updateUntilInDB().
int CComponent::iCalId [private] |
Calendar ID
Referenced by CComponent(), getCalendarId(), operator=(), and setCalendarId().
int CComponent::iType [private] |
Component Type
Referenced by CComponent(), getType(), operator=(), setAlarm(), setType(), and toString().
int CComponent::iFlags [private] |
Flags to identify the presence of recurrence/attendees etc.,
Referenced by CComponent(), getFlags(), operator=(), removeAlarm(), setFlags(), and toString().
int CComponent::iStatus [private] |
Status
Referenced by CComponent(), getStatus(), operator=(), setStatus(), and toString().
time_t CComponent::iDateStart [private] |
Start date for event
Referenced by CComponent(), generateInstanceTimes(), getDateStart(), getInstanceNumber(), operator=(), setDateStart(), toString(), and updateAlarmTriggerTime().
time_t CComponent::iDateEnd [private] |
End date for event
Referenced by CComponent(), generateInstanceTimes(), getDateEnd(), getInstanceNumber(), operator=(), setDateEnd(), and toString().
time_t CComponent::iLastModified [private] |
Last modified date
Referenced by CComponent(), getLastModified(), setLastModified(), and toString().
time_t CComponent::iCreatedTime [private] |
Component created time
Referenced by CComponent(), getCreatedTime(), and toString().
time_t CComponent::iuntil [private] |
Recurrence until date
Referenced by CComponent(), getUntil(), and toString().
int CComponent::iAllDay [private] |
All day event
Referenced by CComponent(), getAllDay(), operator=(), and toString().
string CComponent::szSummary [private] |
Event summary
Referenced by CComponent(), getSummary(), operator=(), setSummary(), and toString().
string CComponent::szDescription [private] |
Event description
Referenced by CComponent(), getDescription(), operator=(), setDescription(), and toString().
string CComponent::szLocation [private] |
Event location
Referenced by CComponent(), getLocation(), operator=(), setLocation(), and toString().
string CComponent::szuid [private] |
Event Uid
Referenced by getGUid(), and toString().
CRecurrence* CComponent::pRecurrence [private] |
CRecurrence class containment
Referenced by CComponent(), generateInstanceTimes(), getInstanceNumber(), getRecurrence(), getRtype(), operator=(), removeRecurrence(), retrieveRecurreceRuleObject(), setRecurrence(), setRtype(), updateAlarmTriggerTime(), and ~CComponent().
CAlarm* CComponent::pAlarm [private] |
CAlarm class containment
Referenced by CComponent(), getAlarm(), getAlarmBefore(), getAlarmProperties(), getDuration(), operator=(), removeAlarm(), setAlarm(), CTodo::toString(), CJournal::toString(), CEvent::toString(), CComponentDetails::toString(), toString(), CBdayEvent::toString(), updateAlarmTriggerTime(), and ~CComponent().
time_t CComponent::iStDate [private] |
Start date of the interval of calculated recurrences
Referenced by CComponent(), and generateInstanceTimes().
time_t CComponent::iEndDate [private] |
End date of the interval of calculated recurrences
Referenced by CComponent(), and generateInstanceTimes().
vector< time_t > CComponent::rTimes [private] |
already calculated recurrences
Referenced by generateInstanceTimes().