#include <CComponent.h>
Inheritance diagram for CComponent:
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) |
CAlarm * | getAlarm () |
int | getAllDay () |
bool | setAllDay (int iAllDay) |
vector< time_t > | generateInstanceTimes (time_t viewBegin, time_t viewEnd) |
int | getDuration () |
bool | getRecurrenceProperties () |
bool | getAlarmProperties () |
virtual | ~CComponent () |
string | generateUid () |
void | setCreatedTime (time_t iCreatedTime) |
time_t | getCreatedTime () |
Private Member Functions | |
vector< string > | extractSubStrings (string SourceString, string byField) |
Private Attributes | |
string | sId |
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 |
CComponent class
CComponent::CComponent | ( | ) |
CComponent() This is the defult constructor for CComponent class
CComponent::CComponent | ( | CComponent & | ) |
Copy Constructor
CComponent::CComponent | ( | string | description | ) |
Overloaded Constructor
CComponent::CComponent | ( | string | summary, | |
time_t | tododue, | |||
int | status | |||
) |
Overloaded constructor
CComponent::CComponent | ( | string | summary, | |
string | description, | |||
string | location, | |||
time_t | dateStart, | |||
time_t | dateEnd | |||
) |
Overloaded Constructor
CComponent::CComponent | ( | string | szuid, | |
string | szDescription, | |||
time_t | stDateStart | |||
) |
overloaded Constructor
CComponent::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 | |||
) |
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::~CComponent | ( | ) | [virtual] |
Destructor for CComponent class.
vector< CRecurrenceRule * > CComponent::retrieveRecurreceRuleObject | ( | ) |
NONE |
const CComponent & CComponent::operator= | ( | const CComponent & | right | ) |
Constant | reference to CComponent |
bool CComponent::setId | ( | string | sId | ) |
: | string sId Id of the string |
string CComponent::getId | ( | ) |
:None |
bool CComponent::setType | ( | int | num | ) |
: | int num used to set type of entry |
int CComponent::getType | ( | ) |
:None |
bool CComponent::setFlags | ( | int | iflag | ) |
int | iflag to indicate recurrence or alarm |
int CComponent::getFlags | ( | ) |
:None |
bool CComponent::setSummary | ( | string | szSummary | ) |
: | string szSummary it is the summary of the entry |
string CComponent::getSummary | ( | ) |
: | None |
bool CComponent::setDescription | ( | string | strDescription | ) |
: | string szDescripton it is the description of the entry |
string CComponent::getDescription | ( | ) |
: | None |
bool CComponent::setLocation | ( | string | szLocation | ) |
: | string szLocation it is the location of the entry |
string CComponent::getLocation | ( | ) |
: | None |
bool CComponent::setStatus | ( | int | iStatus | ) |
: | int iStatus Used to set the status for entry. |
int CComponent::getStatus | ( | ) |
:None |
bool CComponent::setDateStart | ( | time_t | dateStart | ) |
: | time_t Used to set the start date for event. |
time_t CComponent::getDateStart | ( | ) |
:None |
bool CComponent::setDateEnd | ( | time_t | dateEnd | ) |
: | time_t Used to set the date end for entry. |
time_t CComponent::getDateEnd | ( | ) |
:None |
bool CComponent::setLastModified | ( | time_t | lastModified | ) |
: | time_t Used to set the last modified value |
bool CComponent::setRecurrence | ( | CRecurrence * | ptrRecur | ) |
:CRecurrence | * pTrRecur pointer to recurrence object |
CRecurrence * CComponent::getRecurrence | ( | ) |
:None |
time_t CComponent::getLastModified | ( | ) |
:None |
bool CComponent::setUntil | ( | time_t | iuntil | ) |
: | time_t time in UTC (integer) format. |
time_t CComponent::getUntil | ( | ) |
: | NONE. |
bool CComponent::setGUid | ( | string | szuid | ) |
: | string globally unique ID for component. |
string CComponent::getGUid | ( | ) |
: | NONE |
bool CComponent::setRtype | ( | int | irtype | ) |
: | NONE. |
int CComponent::getRtype | ( | ) |
: | NONE. |
bool CComponent::setAlarm | ( | CAlarm * | uAlarm | ) |
CAlarm* | uAlarm pointer to CAlarm object |
CAlarm * CComponent::getAlarm | ( | ) |
NONE |
int CComponent::getAllDay | ( | ) |
NONE |
bool CComponent::setAllDay | ( | int | iAllDay | ) |
int | (0 not all day ,1 allday event ) |
vector< time_t > CComponent::generateInstanceTimes | ( | time_t | viewBegin, | |
time_t | viewEnd | |||
) |
viewBegin | lower range of current view viewEnd higher range of current view |
int CComponent::getDuration | ( | ) |
NONE |
bool CComponent::getRecurrenceProperties | ( | ) |
ptrEntry | Component Entry template , can be event*,todo*,journal* or CComponent* |
bool CComponent::getAlarmProperties | ( | ) |
template | can be event todo or Journal pointer |
string CComponent::generateUid | ( | ) |
none |
void CComponent::setCreatedTime | ( | time_t | iCreatedTime | ) |
time_t iCreatedTime time in utc |
time_t CComponent::getCreatedTime | ( | ) |
none |
vector< string > CComponent::extractSubStrings | ( | string | SourceString, | |
string | byField | |||
) | [private] |
extractSubStrings
string | which needs to be parsed |
string CComponent::sId [private] |
Component ID
int CComponent::iType [private] |
Component Type
int CComponent::iFlags [private] |
Flags to identify the presence of recurrence/attendees etc.,
int CComponent::iStatus [private] |
Status
time_t CComponent::iDateStart [private] |
Start date for event
time_t CComponent::iDateEnd [private] |
End date for event
time_t CComponent::iLastModified [private] |
Last modified date
time_t CComponent::iCreatedTime [private] |
Component created time
time_t CComponent::iuntil [private] |
Recurrence until date
int CComponent::iAllDay [private] |
All day event
string CComponent::szSummary [private] |
Event summary
string CComponent::szDescription [private] |
Event description
string CComponent::szLocation [private] |
Event location
string CComponent::szuid [private] |
Event Uid
CRecurrence* CComponent::pRecurrence [private] |
CRecurrence class containment
CAlarm* CComponent::pAlarm [private] |
CAlarm class containment