#include <ICalConverter.h>
Public Member Functions | |
string | localToIcalVcal (CComponent *pEntry, FileType iType, int &pErrorCode) |
void | setSyncing (bool sync) |
void | findEffectiveDSToffset (string szLine, string &szDaylight) |
CComponent * | toLocal (string strIcalComp, FileType iType, int &pErrorCode) |
ICalConverter () | |
~ICalConverter () | |
string | appendControlM (string szContents) |
string | toString () |
vector< CComponent * > | icalVcalToLocal (string strIcalComp, FileType iType, int &pErrorCode) |
string | strip (string szContents) |
bool | checkCount (string szContents, string szBegin, string szEnd, unsigned int &iCount) |
string | validateContents (string szContents) |
int | getIntFromIcaltimetype (struct icaltimetype ical_time) |
char * | decodeParameterTextFields (string encodedString, icalparameter_encoding encodingType) |
char * | getCurrentTimeZone () |
void | fillvCalTimeZone (string &szContents) |
string | exportTimeZone (time_t dtstart, string szZone, FileType iType) |
string | calculateMonthdayFromRule (time_t dtstart, struct icaltimetype &dtstartStd, string ruleStd, string szZone) |
Private Member Functions | |
void | findZoneStartTime (string &szRepeatPattern, int correction) |
void | findLocationFromOffset (string szDaylight) |
void | limitDateRange (struct icaltimetype &s_time, bool isExport) |
void | replaceWithEncodedString (string &szIcalComp, CComponentDetails *pEntry) |
void | convertAttach (string &szAttach) |
void | getImpendingAlarm (string szRrule, time_t &triggerTime, time_t dateStart, int alarmFlag) |
float | stringToFloat (string szValue) |
string | addAlarmDateToString (string strIcalComp, string strVCalAlarmDate, entryType iType) |
string | addRuleToString (string strIcalComp, vector< string > rrules, int flag) |
string | getIcalAlarm (CAlarm *cAlarm, string sZone, bool isAllday=false) |
void | deleteWhiteSpaces (string &szSpaceString) |
vector< CRecurrenceRule * > | getRecurrence (string strIcalComp, icalcomponent *pComp, icalproperty_kind kind, FileType iFType) |
CRecurrenceRule * | getRecurrenceRule (string strIcalComp, int index, string strRuleType, FileType iFType) |
vector< string > | getRecurrenceDates (string strIcalComp, icalcomponent *pComp, CEvent *pEvent, icalproperty_kind kind, int type=ICAL_TYPE) |
template<class T> | |
CAlarm * | getAlarm (string strIcalComp, icalcomponent *pComp, T *pEntry) |
struct tm | initTime (icaltimetype time_ical) |
string | get_line (string strIcal, int start_loc) |
string | get_line_in_ical (string strInVcal, string strType, int index) |
string | getTranspFromIcal (icalproperty_transp iTransp) |
COrganizer * | getOrganizerFromIcal (icalproperty *pProp) |
CAttendee * | getAttendeeFromIcal (icalproperty *pProp, FileType iType) |
int | getParticipationRoleFromIcal (icalparameter_role icalRole) |
int | getParticipationStatusFromIcal (icalparameter_partstat icalPartStat) |
bool | getRSVPFromIcal (icalparameter_rsvp icalRSVP) |
int | getCUTypeFromIcal (icalparameter_cutype icalCUType) |
string | getClasFromIcal (icalproperty_class iClass) |
icalproperty * | getIcalOrganizer (COrganizer *pOrg) |
string | getContactFromIcal (icalproperty *pProp) |
icalparameter_rsvp | getIcalRSVP (bool fRSVP) |
icalparameter_partstat | getIcalPartStatus (ParticipantStatus iPartStat) |
icalparameter_role | getIcalPartRole (ParticipantRole iRole) |
icalparameter_cutype | getIcalCalendarUserType (CalendarUserType iCUType) |
icalproperty * | getIcalAttendee_ical (CAttendee *pAtten) |
icalproperty * | getIcalAttendee_vcal (CAttendee *pAtten) |
CProperties * | getXProperty (icalproperty *pProp) |
CParameters * | getParameters (icalparameter *pParam) |
vector< CParameters * > | getRelationshipParamFromICal (icalparameter *pParam) |
int | getStatusFromIcal (icalproperty_status icalStatus) |
CParameters * | getLanguageFromIcal (icalparameter *pParam) |
CParameters * | getAlterFromIcal (icalparameter *pParam) |
vector< CParameters * > | getLangAlterParam (icalproperty *pProp) |
int | getIcalStatus (statusParam iStatus) |
icalparameter_reltype | getIcalRelType (RelationshipType iRel) |
CParameters * | getFMTypeFromIcal (icalparameter *pParam) |
icalparameter * | getTZIDParam () |
string | getTimeInHHMM (int offset) |
time_t | getTimeDiff (time_t diffTime) |
void | exportEventProperties (icalcomponent *pEntComp, CEvent *pEvent, FileType iType) |
void | exportTodoProperties (icalcomponent *pEntComp, CTodo *pTodo, FileType iType) |
void | exportJournalProperties (icalcomponent *pEntComp, CJournal *pJournal, FileType iType) |
template<class T> | |
void | exportCreatedTimeFromLocal (icalcomponent *pEntComp, T *pComp, FileType iType) |
template<class T> | |
void | exportDueFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportDateStampFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportSummaryFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportLocationFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportDescriptionFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportUidFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportDateStartFromLocal (icalcomponent *pEntcomp, T *pComp, FileType iType) |
template<class T> | |
void | exportAttendeesFromLocal (icalcomponent *pEntcomp, T *pComp, FileType iType) |
template<class T> | |
void | exportAttachmentsFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportPriorityFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportSequenceFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportCommentsFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportUrlFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportCategoriesFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportGeoFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportClassFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportRelatedFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportOrganizerFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportXPropFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportResourcesFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
void | exportContactsFromLocal (icalcomponent *pEntcomp, T *pComp) |
template<class T> | |
string | exportAlarmFromLocal (T *pComp, FileType iType) |
void | exportEventDateEndFromLocal (icalcomponent *pEntcomp, CEvent *pEvent, FileType iType) |
void | exportEventTranspFromLocal (icalcomponent *pEntcomp, CEvent *pEvent, FileType iType) |
void | exportTodoPercentCompleteFromLocal (icalcomponent *pEntcomp, CTodo *pTodo) |
void | exportTodoCompletedFromLocal (icalcomponent *pEntcomp, CTodo *pTodo) |
void | exportEntryStatusFromLocal (icalcomponent *pEntcomp, CComponent *pEntry, FileType iType) |
void | exportEntryLastModifiedFromLocal (icalcomponent *pEntcomp, CComponent *pEntry) |
template<class T> | |
struct icaltimetype | importCreatedTime (icalcomponent *pComp, T *tComp, FileType iType, string strIcalComp) |
template<class T> | |
void | importDateStamp (icalcomponent *pComp, T *tComp, struct icaltimetype c_time) |
template<class T> | |
void | importOrganizer (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importAttendees (icalcomponent *pComp, T *tComp, FileType iType) |
template<class T> | |
void | importSequence (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importPriority (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importUrl (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importGeo (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importClass (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importResources (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importCategories (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importContacts (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importRelated (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importLocation (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importDescription (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importSummary (icalcomponent *pComp, T *tComp) |
template<class T> | |
vector< CParameters * > | importComments (icalcomponent *pComp, T *tComp) |
template<class T> | |
void | importDateStart (icalcomponent *pComp, T *pComp) |
bool | importEventDateStartAndDateEnd (icalcomponent *pComp, CEvent *pEvent, FileType iType, int &pErrorCode) |
bool | importEventDateEnd (icalcomponent *pComp, CEvent *pEvent, FileType iType) |
void | importEventXProp (icalcomponent *pComp, CEvent *pEvent) |
void | importEventTransp (icalcomponent *pComp, CEvent *pEvent, FileType iType, string strIcalComp) |
void | importEventAttachements (icalcomponent *pComp, CEvent *pEvent) |
void | importEventAlarm (icalcomponent *pComp, CEvent *pEvent, icalcomponent *pAComp, string strIcalComp, FileType iType) |
void | importEventRecurrence (icalcomponent *pComp, CEvent *pEvent, string strIcalComp, FileType iType, int &pErrorCode) |
void | importTodoDue (icalcomponent *pComp, CTodo *pTodo) |
void | importTodoPercentCompleted (icalcomponent *pComp, CTodo *pTodo) |
void | importTodoCompleted (icalcomponent *pComp, CTodo *pTodo) |
void | importTodoAlarm (icalcomponent *pComp, CTodo *pTodo, icalcomponent *pAComp, string strIcalComp, FileType iType) |
void | importJournalAttach (icalcomponent *pComp, CJournal *pJournal) |
void | importComponentStatus (icalcomponent *pComp, CComponent *pComponent, FileType iType, string strIcalComp) |
void | importComponentLastModified (icalcomponent *pComp, CComponent *pComponent) |
void | parseTimeZone (string &szZone) |
Private Attributes | |
bool | bSyncing |
ICalConverter::ICalConverter | ( | ) |
constructor
ICalConverter::~ICalConverter | ( | ) |
destructor
string ICalConverter::localToIcalVcal | ( | CComponent * | pEntry, | |
FileType | iType, | |||
int & | pErrorCode | |||
) |
pEntry | CComponent object | |
iType | FileType ( ICAL/VCAL/UNKNOWN ) | |
pErrorCode | Errorcode for the function |
localToIcalVcal
pEntry,: | CComponent object | |
pErrorCode,: | Errorcode for the function |
References addAlarmDateToString(), addRuleToString(), appendControlM(), CComponent::getAllDay(), CComponent::getCreatedTime(), CComponent::getDateStart(), CComponent::getRecurrence(), CRecurrenceRule::getRrule(), CRecurrenceRule::getRuleType(), CComponent::getType(), CComponent::getTzid(), VCalConverter::iCalToVCalRule(), replaceWithEncodedString(), and CComponent::setType().
Referenced by CCalendar::exportCalendarEntries().
void ICalConverter::setSyncing | ( | bool | sync | ) |
bool | indication whethere syncing is turned on or off |
Referenced by CCalendar::exportCalendarEntries().
void ICalConverter::findEffectiveDSToffset | ( | string | szLine, | |
string & | szDaylight | |||
) |
Function to calculate effective DST offset
Function to find effective DST offset
References VCalConverter::getTokens().
CComponent * ICalConverter::toLocal | ( | string | strIcalComp, | |
FileType | iType, | |||
int & | pErrorCode | |||
) |
strIcalComp | ical string to be converted | |
iType | FileType ( ICAL/VCAL/UNKNOWN ) | |
pErrorCode | Errorcode for the function |
References CComponent::getAlarm(), CComponentDetails::getDateStamp(), CComponent::getDateStart(), getFMTypeFromIcal(), getImpendingAlarm(), getParameters(), CProperties::getPropValue(), CComponent::getRecurrence(), CMulticalendar::getSystemTimeZone(), getXProperty(), importEventDateStartAndDateEnd(), importEventRecurrence(), importTodoDue(), CMulticalendar::MCInstance(), CComponentDetails::setAttachments(), CComponentDetails::setDateStamp(), CComponent::setDateStart(), CComponentDetails::setHashMap(), CComponent::setType(), and CComponentDetails::setXProperties().
Referenced by icalVcalToLocal().
string ICalConverter::appendControlM | ( | string | szContents | ) |
szContents |
References validateContents().
Referenced by localToIcalVcal().
string ICalConverter::toString | ( | ) |
string | This function prints all the member variable values. |
vector< CComponent * > ICalConverter::icalVcalToLocal | ( | string | szCont, | |
FileType | iType, | |||
int & | pErrorCode | |||
) |
strIcalComp | ical string to be converted | |
iType | FileType ( ICAL/VCAL/UNKNOWN ) | |
pErrorCode | Errorcode for the function |
icalVcalToLocal
strIcalComp,: | ical string to be converted | |
Filetype | ||
pErrorCode,: | Errorcode for the function |
(checkCount(szCont, BEGIN_CALENDAR, END_CALENDAR, iDummy)) ||
References VCalConverter::checkContentsType(), checkCount(), convertAttach(), fillvCalTimeZone(), findLocationFromOffset(), strip(), and toLocal().
Referenced by CMulticalendar::importIcsFileData(), and CMulticalendar::importIcsFileDataProgressive().
string ICalConverter::strip | ( | string | szContents | ) |
szContents | string |
References deleteWhiteSpaces().
Referenced by icalVcalToLocal().
bool ICalConverter::checkCount | ( | string | szContents, | |
string | szBegin, | |||
string | szEnd, | |||
unsigned int & | iCount | |||
) |
szContents | string | |
szBegin | begin string of icalcomponent | |
szEnd | end string of icalcomponent | |
iCount | integer reference Count number of instance of entry(event/todo/journal) in ics file |
Referenced by CMulticalendar::getICSFileInfo(), and icalVcalToLocal().
string ICalConverter::validateContents | ( | string | szContents | ) |
szContents | string |
Referenced by appendControlM().
int ICalConverter::getIntFromIcaltimetype | ( | struct icaltimetype | ical_time | ) |
ical_time | icaltimetype structure |
getIntFromIcaltimetype
icaltime |
References initTime().
Referenced by importEventRecurrence().
char * ICalConverter::decodeParameterTextFields | ( | string | encodedString, | |
icalparameter_encoding | encodingType | |||
) |
string | Value of property | |
decoding | type - 0 for quoted printable Function to decode the text fields in ICS |
void ICalConverter::fillvCalTimeZone | ( | string & | szContents | ) |
Function to parse the VCAL timezone field
Referenced by icalVcalToLocal().
string ICalConverter::calculateMonthdayFromRule | ( | time_t | dtstart, | |
struct icaltimetype & | dtstartStd, | |||
string | ruleStd, | |||
string | szZone | |||
) |
Find the first occurence of week day in in month in which event starts
first day itself is first occurence
once we have the month day we need to keep every thing else same as before for current year
void ICalConverter::findZoneStartTime | ( | string & | szTime, | |
int | correction | |||
) | [private] |
Find the daylight start time from daylight string from daylight start time we figure out the Repeat pattern for daylight
Find the daylight start time from daylight string from daylight start time we figure out the Repeat pattern in current year for Daylight information.
position of week day from start of the month
Find total number of weekday ( su.Mo,TU ... in that month
References CMulticalendar::getSystemTimeZone(), and CMulticalendar::MCInstance().
Referenced by findLocationFromOffset().
void ICalConverter::findLocationFromOffset | ( | string | szDaylight | ) | [private] |
Function to find the localtion from time offset of GMT and daylight information we find the nearest possible match for city name from the timezone configuration table stored in the DB
Function to find the localtion from time offset of GMT from offset and daylight information we find the nearest possible match for city name from the timezone configuration table stored in the DB
Calculating offset from VCalTimeZone value in VCS format
References findZoneStartTime(), and VCalConverter::getTokens().
Referenced by icalVcalToLocal().
void ICalConverter::limitDateRange | ( | struct icaltimetype & | s_time, | |
bool | isExport | |||
) | [private] |
Private function to limit the Date Range for event coming from sync
Referenced by importEventDateStartAndDateEnd().
void ICalConverter::replaceWithEncodedString | ( | string & | szIcalComp, | |
CComponentDetails * | pEntry | |||
) | [private] |
Add encoded content
References CComponentDetails::getComments(), CComponent::getDescription(), CComponent::getLocation(), and CComponent::getSummary().
Referenced by localToIcalVcal().
void ICalConverter::convertAttach | ( | string & | szAttach | ) | [private] |
Function to convert attach
Referenced by icalVcalToLocal().
void ICalConverter::getImpendingAlarm | ( | string | szRrule, | |
time_t & | triggerTime, | |||
time_t | dateStart, | |||
int | alarmFlag | |||
) | [private] |
function to get impending alarm
References CMulticalendar::getRecurrentTimes(), CMulticalendar::getSystemTimeZoneAsIcalTimeZone(), and CMulticalendar::MCInstance().
Referenced by toLocal().
float ICalConverter::stringToFloat | ( | string | szValue | ) | [private] |
string | the input string value |
string ICalConverter::addAlarmDateToString | ( | string | strIcalComp, | |
string | strVCalAlarmDate, | |||
entryType | iType | |||
) | [private] |
strIcalComp | string | |
strVCalAlarmDate | string | |
int | Type of Component |
strIcalComp | string | |
strVCalAlarmDate | string | |
int | iType |
Referenced by localToIcalVcal().
string ICalConverter::addRuleToString | ( | string | strIcalComp, | |
vector< string > | rrules, | |||
int | flag | |||
) | [private] |
strIcalComp | string | |
rrules | vector <string> | |
flag | int |
Referenced by localToIcalVcal().
string ICalConverter::getIcalAlarm | ( | CAlarm * | cAlarm, | |
string | sZone, | |||
bool | isAllday = false | |||
) | [private] |
cAlarm | CAlarm object | |
sZone | timezone of the event. | |
bool | allday/task -allday /task. |
cAlarm | CAlarm object |
References CAlarm::getDuration(), CAlarm::getRepeat(), and CAlarm::getTrigger().
void ICalConverter::deleteWhiteSpaces | ( | string & | szSpaceString | ) | [private] |
szSpaceString |
Referenced by strip().
vector< CRecurrenceRule * > ICalConverter::getRecurrence | ( | string | strIcalComp, | |
icalcomponent * | pComp, | |||
icalproperty_kind | kind, | |||
FileType | iType | |||
) | [private] |
strIcalComp | string | |
pComp | icalcomponent object | |
kind | icalproperty_kind | |
iType | FileType (ICAL/VCAL/UNKNOWN) |
getRecurrence
References getRecurrenceRule(), and CRecurrenceRule::setRuleType().
Referenced by importEventRecurrence().
CRecurrenceRule * ICalConverter::getRecurrenceRule | ( | string | strIcalComp, | |
int | index, | |||
string | strRuleType, | |||
FileType | iType | |||
) | [private] |
strIcalComp | string | |
index | position of the rule | |
strRuleType | rule type (RRULE/EXRULE) | |
iType | FileType (ICAL/VCAL/UNKNOWN) |
References get_line_in_ical(), CRecurrenceRule::setRrule(), and VCalConverter::vCalToICalRule().
Referenced by getRecurrence().
vector< string > ICalConverter::getRecurrenceDates | ( | string | strIcalComp, | |
icalcomponent * | pComp, | |||
CEvent * | pEvent, | |||
icalproperty_kind | kind, | |||
int | type = ICAL_TYPE | |||
) | [private] |
strIcalComp | string | |
pComp | icalcomponent object | |
CEvent* | Pointer to Event. | |
kind | icalproperty_kind kind of property (ICAL_RDATE_PROPERTY/ICAL_EXDATEPROPERTY) |
References get_line_in_ical(), VCalConverter::getTokens(), CComponent::getTzid(), and VCalConverter::iCalToVCalDate().
Referenced by importEventRecurrence().
CAlarm * ICalConverter::getAlarm | ( | string | strIcalComp, | |
icalcomponent * | pComp, | |||
T * | pEntry | |||
) | [inline, private] |
strIcalComp | string | |
pComp | icalcomponent object | |
Entry | pointer can be event or task | |
diffTime | difference in times |
References get_line_in_ical(), CAlarm::getTrigger(), CAlarm::setAction(), CAlarm::setDuration(), CAlarm::setRepeat(), CAlarm::setTrigger(), and VCalConverter::vCalToICalAlarm().
struct tm ICalConverter::initTime | ( | icaltimetype | time_ical | ) | [read, private] |
time_ical | icaltimetype structure |
initTime
icaltimetype | structure |
Referenced by getIntFromIcaltimetype().
string ICalConverter::get_line | ( | string | strIcal, | |
int | start_loc | |||
) | [private] |
strIcal | Ical data in string format | |
start_loc | Staring position for search |
get_line
strIcal,: | Ical data in string format | |
start_loc,: | Staring position for search |
Referenced by get_line_in_ical().
string ICalConverter::get_line_in_ical | ( | string | strInVcal, | |
string | type, | |||
int | index | |||
) | [private] |
strInVcal | string | |
strType | string | |
index | int |
strInVcal,: | string in Ical format | |
type,either | RRULE, EXRULE, RDATE, EXDATE, AALARM |
References get_line().
Referenced by getAlarm(), getRecurrenceDates(), and getRecurrenceRule().
string ICalConverter::getTranspFromIcal | ( | icalproperty_transp | iTransp | ) | [private] |
iTransp | icalproperty_transp |
getTranspFromIcal
iTransp icalproperty_transp, transparency in ICAL format |
COrganizer * ICalConverter::getOrganizerFromIcal | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
icalproperty pointer |
References CParticipant::setCommonName(), CParticipant::setDirectoryParameter(), CParticipant::setLanguage(), CParticipant::setMailTo(), and CParticipant::setSentBy().
CAttendee * ICalConverter::getAttendeeFromIcal | ( | icalproperty * | pProp, | |
FileType | iType | |||
) | [private] |
pProp | icalproperty object | |
FileType | iType (ICAL/VCAL/UNKNOWN) |
icalproperty pointer |
References getCUTypeFromIcal(), getParticipationRoleFromIcal(), VCalConverter::getParticipationRoleFromVcal(), getParticipationStatusFromIcal(), getRSVPFromIcal(), VCalConverter::getRSVPFromVcal(), CAttendee::setCalendarUserType(), CAttendee::setDelegatees(), CAttendee::setDelegator(), CParticipant::setDirectoryParameter(), CParticipant::setLanguage(), CParticipant::setMailTo(), CAttendee::setRole(), and CAttendee::setRSVP().
int ICalConverter::getParticipationRoleFromIcal | ( | icalparameter_role | icalRole | ) | [private] |
icalRole | icalparameter_role |
getParticipationRoleFromIcal()
icalparameter_role icalRole |
Referenced by getAttendeeFromIcal().
int ICalConverter::getParticipationStatusFromIcal | ( | icalparameter_partstat | icalPartStat | ) | [private] |
icalPartStat | icalparameter_partstat |
getParticipationStatusFromIcal()
icalparameter_partstat icalpartstat |
Referenced by getAttendeeFromIcal().
bool ICalConverter::getRSVPFromIcal | ( | icalparameter_rsvp | icalRSVP | ) | [private] |
icalRSVP | icalparameter_rsvp |
icalparameter_rsvp icalRSVP |
Referenced by getAttendeeFromIcal().
int ICalConverter::getCUTypeFromIcal | ( | icalparameter_cutype | icalCUType | ) | [private] |
icalCUType | icalparameter_cutype |
icalparameter_cutype icalCUType |
Referenced by getAttendeeFromIcal().
string ICalConverter::getClasFromIcal | ( | icalproperty_class | iClass | ) | [private] |
iClass | icalproperty_class |
icalproperty_class iClass |
icalproperty * ICalConverter::getIcalOrganizer | ( | COrganizer * | pOrg | ) | [private] |
pOrg | COrganizer object |
References CParticipant::getCommonName(), CParticipant::getDirectoryParameter(), CParticipant::getLanguage(), CParticipant::getMailTo(), and CParticipant::getSentBy().
string ICalConverter::getContactFromIcal | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
icalparameter_rsvp ICalConverter::getIcalRSVP | ( | bool | fRSVP | ) | [private] |
RSVP | bool |
icalparameter_partstat ICalConverter::getIcalPartStatus | ( | ParticipantStatus | iPartStat | ) | [private] |
iPartStat | ParticipantStatus |
Referenced by getIcalAttendee_ical().
icalparameter_role ICalConverter::getIcalPartRole | ( | ParticipantRole | iRole | ) | [private] |
iRole | ParticipantRole |
Referenced by getIcalAttendee_ical().
icalparameter_cutype ICalConverter::getIcalCalendarUserType | ( | CalendarUserType | iCalCUType | ) | [private] |
iCUType | CalendarUserType |
Referenced by getIcalAttendee_ical().
icalproperty * ICalConverter::getIcalAttendee_ical | ( | CAttendee * | pAtten | ) | [private] |
pAtten | CAttendee object |
getIcalAttendee()
: | pAtten CAttendee pointer |
References CAttendee::getCalendarUserType(), CParticipant::getCommonName(), CAttendee::getDelegatees(), CAttendee::getDelegator(), CParticipant::getDirectoryParameter(), getIcalCalendarUserType(), getIcalPartRole(), getIcalPartStatus(), CParticipant::getLanguage(), CParticipant::getMailTo(), CAttendee::getMember(), CAttendee::getParticipationStatus(), CAttendee::getRole(), CAttendee::getRSVP(), and CParticipant::getSentBy().
icalproperty * ICalConverter::getIcalAttendee_vcal | ( | CAttendee * | pAtten | ) | [private] |
* getIcalAttendee() *
: | pAtten CAttendee pointer * |
References CParticipant::getMailTo(), CAttendee::getRole(), CAttendee::getRSVP(), VCalConverter::getVcalPartRole(), and VCalConverter::getVcalRSVP().
CProperties * ICalConverter::getXProperty | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
this kind of check is needed because libical is not able to parse X_properties if it doesn't have X- for its parameters
References CProperties::setPropName(), and CProperties::setPropValue().
Referenced by toLocal().
CParameters * ICalConverter::getParameters | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
References CParameters::setParamName(), and CParameters::setParamValue().
Referenced by toLocal().
vector< CParameters * > ICalConverter::getRelationshipParamFromICal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
References CParameters::setParamName(), and CParameters::setParamValue().
int ICalConverter::getStatusFromIcal | ( | icalproperty_status | icalStatus | ) | [private] |
icalStatus | icalproperty_status |
CParameters * ICalConverter::getLanguageFromIcal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
References CParameters::setParamName(), and CParameters::setParamValue().
Referenced by getLangAlterParam().
CParameters * ICalConverter::getAlterFromIcal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
References CParameters::setParamName(), and CParameters::setParamValue().
Referenced by getLangAlterParam().
vector< CParameters * > ICalConverter::getLangAlterParam | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
References getAlterFromIcal(), and getLanguageFromIcal().
int ICalConverter::getIcalStatus | ( | statusParam | iStatus | ) | [private] |
iStatus | statusparam |
icalparameter_reltype ICalConverter::getIcalRelType | ( | RelationshipType | iRel | ) | [private] |
iRel | RelationshipType |
CParameters * ICalConverter::getFMTypeFromIcal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
References CParameters::setParamName(), and CParameters::setParamValue().
Referenced by toLocal().
icalparameter * ICalConverter::getTZIDParam | ( | ) | [private] |
bool ICalConverter::importEventDateStartAndDateEnd | ( | icalcomponent * | pComp, | |
CEvent * | pEvent, | |||
FileType | iType, | |||
int & | pErrorCode | |||
) | [private] |
importEventDateStartAndDateEnd: : The place where we put the start_time_zone/local_time_zone diff. returns: True if the date start is at 00:00:00 (midnight).
Reads and sets the start time for the CEvent object from an icalcomponent. The timeDiff is an in/out parameter for the event/local time zone difference.
Returns true if the start time modified by the time zone difference is at midnight (so it can be considered as a part of an allday event).
References CComponent::getDateStart(), CMulticalendar::getSystemTimeZone(), limitDateRange(), CMulticalendar::MCInstance(), CComponent::setAllDay(), CComponent::setDateEnd(), CComponent::setDateStart(), and CComponent::setTzid().
Referenced by toLocal().
bool ICalConverter::importEventDateEnd | ( | icalcomponent * | pComp, | |
CEvent * | pEvent, | |||
FileType | iType | |||
) | [private] |
importEventDateEnd:
Reads and sets the end time for the CEvent object from an icalcomponent. The timeDiff is the time zone difference between the component and the local clock.
References CComponent::getAllDay(), CComponent::getDateStart(), CMulticalendar::getSystemTimeZone(), CMulticalendar::MCInstance(), and CComponent::setDateEnd().
void ICalConverter::importEventRecurrence | ( | icalcomponent * | pComp, | |
CEvent * | pEvent, | |||
string | strIcalComp, | |||
FileType | iType, | |||
int & | pErrorCode | |||
) | [private] |
importEventRecurrence
References CRecurrenceRule::checkRuleIsComplex(), getIntFromIcaltimetype(), getRecurrence(), getRecurrenceDates(), CRecurrence::getRtype(), CComponent::getTzid(), CRecurrenceRule::rruleParser(), CRecurrence::setEDays(), CRecurrence::setRDays(), CRecurrence::setRecurId(), CComponent::setRecurrence(), CRecurrence::setRecurrenceRule(), CRecurrence::setRtype(), and CComponent::setUntil().
Referenced by toLocal().
void ICalConverter::importTodoDue | ( | icalcomponent * | pComp, | |
CTodo * | pTodo | |||
) | [private] |
Fixes Security related crash
References CComponent::getTzid(), and CComponent::setDateStart().
Referenced by toLocal().