#include <ICalConverter.h>
Public Member Functions | |
string | localToIcalVcal (CComponent *pEntry, FileType iType, int pErrorCode) |
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) |
Private Member Functions | |
float | stringToFloat (string szValue) |
string | addAlarmDateToString (string strIcalComp, string strVCalAlarmDate) |
string | addRuleToString (string strIcalComp, vector< string > rrules, int flag) |
string | getIcalAlarm (CAlarm *cAlarm) |
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, icalproperty_kind kind) |
CAlarm * | getAlarm (string strIcalComp, icalcomponent *pComp) |
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 (CAttendee *pAtten, FileType iType) |
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 () |
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 |
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 |
string ICalConverter::appendControlM | ( | string | szContents | ) |
szContents |
string ICalConverter::toString | ( | ) |
string | This function prints all the member variable values. |
vector< CComponent * > ICalConverter::icalVcalToLocal | ( | string | strIcalComp, | |
FileType | iType, | |||
int | pErrorCode | |||
) |
strIcalComp | ical string to be converted | |
iType | FileType ( ICAL/VCAL/UNKNOWN ) | |
pErrorCode | Errorcode for the function |
string ICalConverter::strip | ( | string | szContents | ) |
szContents | string |
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 |
string ICalConverter::validateContents | ( | string | szContents | ) |
szContents | string |
int ICalConverter::getIntFromIcaltimetype | ( | struct icaltimetype | ical_time | ) |
ical_time | icaltimetype structure |
float ICalConverter::stringToFloat | ( | string | szValue | ) | [private] |
string | the input string value |
string ICalConverter::addAlarmDateToString | ( | string | strIcalComp, | |
string | strVCalAlarmDate | |||
) | [private] |
strIcalComp | string | |
strVCalAlarmDate | string |
string ICalConverter::addRuleToString | ( | string | strIcalComp, | |
vector< string > | rrules, | |||
int | flag | |||
) | [private] |
strIcalComp | string | |
rrules | vector <string> | |
flag | int |
string ICalConverter::getIcalAlarm | ( | CAlarm * | cAlarm | ) | [private] |
cAlarm | CAlarm object |
void ICalConverter::deleteWhiteSpaces | ( | string & | szSpaceString | ) | [private] |
szSpaceString |
vector< CRecurrenceRule * > ICalConverter::getRecurrence | ( | string | strIcalComp, | |
icalcomponent * | pComp, | |||
icalproperty_kind | kind, | |||
FileType | iFType | |||
) | [private] |
strIcalComp | string | |
pComp | icalcomponent object | |
kind | icalproperty_kind | |
iType | FileType (ICAL/VCAL/UNKNOWN) |
CRecurrenceRule * ICalConverter::getRecurrenceRule | ( | string | strIcalComp, | |
int | index, | |||
string | strRuleType, | |||
FileType | iFType | |||
) | [private] |
strIcalComp | string | |
index | position of the rule | |
strRuleType | rule type (RRULE/EXRULE) | |
iType | FileType (ICAL/VCAL/UNKNOWN) |
vector< string > ICalConverter::getRecurrenceDates | ( | string | strIcalComp, | |
icalcomponent * | pComp, | |||
icalproperty_kind | kind | |||
) | [private] |
strIcalComp | string | |
pComp | icalcomponent object | |
kind | icalproperty_kind kind of property (ICAL_RDATE_PROPERTY/ICAL_EXDATEPROPERTY) |
CAlarm * ICalConverter::getAlarm | ( | string | strIcalComp, | |
icalcomponent * | pComp | |||
) | [private] |
struct tm ICalConverter::initTime | ( | icaltimetype | time_ical | ) | [private] |
time_ical | icaltimetype structure |
string ICalConverter::get_line | ( | string | strIcal, | |
int | start_loc | |||
) | [private] |
strIcal | Ical data in string format | |
start_loc | Staring position for search |
string ICalConverter::get_line_in_ical | ( | string | strInVcal, | |
string | strType, | |||
int | index | |||
) | [private] |
strInVcal | string | |
strType | string | |
index | int |
string ICalConverter::getTranspFromIcal | ( | icalproperty_transp | iTransp | ) | [private] |
iTransp | icalproperty_transp |
COrganizer * ICalConverter::getOrganizerFromIcal | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
CAttendee * ICalConverter::getAttendeeFromIcal | ( | icalproperty * | pProp, | |
FileType | iType | |||
) | [private] |
int ICalConverter::getParticipationRoleFromIcal | ( | icalparameter_role | icalRole | ) | [private] |
icalRole | icalparameter_role |
int ICalConverter::getParticipationStatusFromIcal | ( | icalparameter_partstat | icalPartStat | ) | [private] |
icalPartStat | icalparameter_partstat |
bool ICalConverter::getRSVPFromIcal | ( | icalparameter_rsvp | icalRSVP | ) | [private] |
icalRSVP | icalparameter_rsvp |
int ICalConverter::getCUTypeFromIcal | ( | icalparameter_cutype | icalCUType | ) | [private] |
icalCUType | icalparameter_cutype |
string ICalConverter::getClasFromIcal | ( | icalproperty_class | iClass | ) | [private] |
iClass | icalproperty_class |
icalproperty * ICalConverter::getIcalOrganizer | ( | COrganizer * | pOrg | ) | [private] |
pOrg | COrganizer object |
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 |
icalparameter_role ICalConverter::getIcalPartRole | ( | ParticipantRole | iRole | ) | [private] |
iRole | ParticipantRole |
icalparameter_cutype ICalConverter::getIcalCalendarUserType | ( | CalendarUserType | iCUType | ) | [private] |
iCUType | CalendarUserType |
icalproperty * ICalConverter::getIcalAttendee | ( | CAttendee * | pAtten, | |
FileType | iType | |||
) | [private] |
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
CParameters * ICalConverter::getParameters | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
vector< CParameters * > ICalConverter::getRelationshipParamFromICal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
int ICalConverter::getStatusFromIcal | ( | icalproperty_status | icalStatus | ) | [private] |
icalStatus | icalproperty_status |
CParameters * ICalConverter::getLanguageFromIcal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
CParameters * ICalConverter::getAlterFromIcal | ( | icalparameter * | pParam | ) | [private] |
pParam | icalparameter object |
vector< CParameters * > ICalConverter::getLangAlterParam | ( | icalproperty * | pProp | ) | [private] |
pProp | icalproperty object |
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 |
icalparameter * ICalConverter::getTZIDParam | ( | ) | [private] |