#include <VCalConverter.h>
Public Member Functions | |
| VCalConverter () | |
| ~VCalConverter () | |
| FileType | checkContentsType (string szContents) |
| string | vCalToICalRule (string vcal) |
| string | iCalToVCalRule (string ical, time_t startTime) |
| string | vCalToICalDate (string vcal) |
| string | iCalToVCalDate (string ical) |
| string | vCalToICalAlarm (string vCalAlarm) |
| string | iCalToVCalAlarm (string iCalAlarm) |
| vector< string > | getTokens (string str, string delimiter) |
| string | getTranspFromVcal (string szContents) |
| icaltimetype | getCreatedTimeFromVcal (string szContents) |
| int | getStatusFromVcal (string szContents) |
| icalproperty * | getVcalTransp (string szTransp) |
| string | getVcalStatus (statusParam iStatus) |
| int | getParticipationRoleFromVcal (string szAtten) |
| string | getVcalPartRole (int iRole) |
| string | getVcalCreatedTime (string szTime, string szContents) |
| icalparameter * | getVcalRSVP (bool fRSVP) |
| bool | getRSVPFromVcal (string szContents) |
Private Member Functions | |
| void | Tokenize (const string &str, vector< string > &tokens, string delimiters=" ") |
| string | getNoDelimiterString (string str, string delimiters, string repStr) |
| void | initRecurrenceItem (RecurrenceItem *item) |
| int | getDay (string vcal, bool opFlag) |
| string | getByMonthFromVcal (string vcal) |
| string | getByDayFromVcal (string vcal) |
| string | getDurationFromVcal (string vcal) |
| string | getFrequency (vector< string > tokens, int index) |
| string | getInterval (vector< string > tokens, int index) |
| string | getCount (vector< string > tokens, int index) |
| string | getUntil (vector< string > tokens, int index) |
| string | getByDayFromIcal (vector< string > tokens, int index) |
| string | getByMonthFromIcal (vector< string > tokens, int index) |
| time_t | tzStringTogmtime (string strIcalComp) |
| string | gmttimeToTZString (time_t tTime, bool onlyDate) |
| string | getVCalDate (vector< string > tokens, int index, int type) |
| string | getAudioAlarm (string alarm) |
| VCalConverter::VCalConverter | ( | ) |
constructor
header files included in this file consttructor
| VCalConverter::~VCalConverter | ( | ) |
destructor
destructor
| FileType VCalConverter::checkContentsType | ( | string | szContents | ) |
| szContents | string |
References DCREATED.
Referenced by ICalConverter::icalVcalToLocal().
| string VCalConverter::vCalToICalRule | ( | string | vcal | ) |
| vcal | string |
vCalToICal
| vcal | string |
References ASSERTION, getByDayFromVcal(), getByMonthFromVcal(), getDurationFromVcal(), and initRecurrenceItem().
Referenced by ICalConverter::getRecurrenceRule().
| string VCalConverter::iCalToVCalRule | ( | string | ical, | |
| time_t | startTime | |||
| ) |
| ical | string | |
| string | This function is used to convert ical recurrence rule to vcal recurrence rule format |
vcal:RRULE:FREQ=MONTHLY;INTERVAL=10;BYMONTHDAY=6,7,8;COUNT=10 ical:MD10 6 7 8 #10 RRULE FREQ MONTHLY INTERVAL 10 BYMONTHDAY 6 7 8 COUNT 10
Referenced by ICalConverter::localToIcalVcal().
| string VCalConverter::vCalToICalDate | ( | string | vCalDate | ) |
| vcal | string |
vCalToICalDate
| string VCalConverter::iCalToVCalDate | ( | string | iCalDate | ) |
| ical | string |
iCalToVcalDate
| iCal | Date |
References getNoDelimiterString(), getVCalDate(), and Tokenize().
Referenced by ICalConverter::getRecurrenceDates().
| string VCalConverter::vCalToICalAlarm | ( | string | vCalAlarm | ) |
| vcalAlarm | string |
References getAudioAlarm().
Referenced by ICalConverter::getAlarm().
| string VCalConverter::iCalToVCalAlarm | ( | string | iCalAlarm | ) |
| icalAlarm | string |
| vector< string > VCalConverter::getTokens | ( | string | str, | |
| string | delimiter | |||
| ) |
| str | string | |
| delimiter | string |
| string | ||
| delimiters |
References Tokenize().
Referenced by ICalConverter::findEffectiveDSToffset(), ICalConverter::findLocationFromOffset(), and ICalConverter::getRecurrenceDates().
| string VCalConverter::getTranspFromVcal | ( | string | szContents | ) |
| szContents | string |
| icaltimetype VCalConverter::getCreatedTimeFromVcal | ( | string | szContents | ) |
| szContents | string |
References DCREATED.
| int VCalConverter::getStatusFromVcal | ( | string | szContents | ) |
| szContents | string |
| icalproperty * VCalConverter::getVcalTransp | ( | string | szTransp | ) |
| szTransp | string |
| string VCalConverter::getVcalStatus | ( | statusParam | iStatus | ) |
| iStatus | statusParam |
| int VCalConverter::getParticipationRoleFromVcal | ( | string | szAtten | ) |
| szAtten | string |
Referenced by ICalConverter::getAttendeeFromIcal().
| string VCalConverter::getVcalPartRole | ( | int | iRole | ) |
| iRole | int |
Referenced by ICalConverter::getIcalAttendee_vcal().
| string VCalConverter::getVcalCreatedTime | ( | string | szTime, | |
| string | szContents | |||
| ) |
| szTime | string | |
| szContents | string |
References DCREATED.
| icalparameter * VCalConverter::getVcalRSVP | ( | bool | fRSVP | ) |
| fRSVP | bool |
Referenced by ICalConverter::getIcalAttendee_vcal().
| bool VCalConverter::getRSVPFromVcal | ( | string | szContents | ) |
| szContents | string |
Referenced by ICalConverter::getAttendeeFromIcal().
| void VCalConverter::Tokenize | ( | const string & | str, | |
| vector< string > & | tokens, | |||
| string | delimiters = " " | |||
| ) | [private] |
Tokenize
| string | to be tokenize | |
| list | of tokens | |
| delimiters |
Referenced by getByDayFromVcal(), getByMonthFromVcal(), getDurationFromVcal(), getTokens(), and iCalToVCalDate().
| string VCalConverter::getNoDelimiterString | ( | string | str, | |
| string | delimiters, | |||
| string | repStr | |||
| ) | [private] |
| str | string | |
| delimiters | string | |
| repStr | string |
getNoDelimiterString
This function is used to get string with no delimiters
Referenced by iCalToVCalDate().
| void VCalConverter::initRecurrenceItem | ( | RecurrenceItem * | item | ) | [private] |
| item | RecurrenceItem object |
| recurrence | item |
Referenced by vCalToICalRule().
| int VCalConverter::getDay | ( | string | vcal, | |
| bool | opFlag | |||
| ) | [private] |
| vcal | string | |
| opFlag | bool |
getDay
| vcal | string | |
| opFlag,indicates | 1+ / 1- |
Referenced by getByDayFromVcal().
| string VCalConverter::getByMonthFromVcal | ( | string | vcal | ) | [private] |
| vcal | string |
getByMonthFromVcal
| vcal | string |
References Tokenize().
Referenced by vCalToICalRule().
| string VCalConverter::getByDayFromVcal | ( | string | vcal | ) | [private] |
| vcal | string |
getByDayFromVcal
| vcal | string |
References getDay(), and Tokenize().
Referenced by vCalToICalRule().
| string VCalConverter::getDurationFromVcal | ( | string | vcal | ) | [private] |
| vcal | string |
getDurationFromVcal
| vcal | string |
References Tokenize().
Referenced by vCalToICalRule().
| string VCalConverter::getFrequency | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| string VCalConverter::getInterval | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| string VCalConverter::getCount | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| string VCalConverter::getUntil | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| string VCalConverter::getByDayFromIcal | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| string VCalConverter::getByMonthFromIcal | ( | vector< string > | tokens, | |
| int | index | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
| time_t VCalConverter::tzStringTogmtime | ( | string | strIcalComp | ) | [private] |
| strIcalComp | string |
tzStringTogmtime
| strIcalComp,: | Time in TZ string format |
Referenced by getVCalDate().
| string VCalConverter::gmttimeToTZString | ( | time_t | tTime, | |
| bool | onlyDate | |||
| ) | [private] |
| tTime | time_t | |
| onlyDate | bool |
Referenced by getVCalDate().
| string VCalConverter::getVCalDate | ( | vector< string > | tokens, | |
| int | index, | |||
| int | type | |||
| ) | [private] |
| tokens | vector<string> | |
| index | int |
getVcalDate
| tokens | in ical | |
| pos | of date | |
| type | of date (i.e RDATE/EXDATE) |
References gmttimeToTZString(), and tzStringTogmtime().
Referenced by iCalToVCalDate().
| string VCalConverter::getAudioAlarm | ( | string | alarm | ) | [private] |
| alarm | string |
getAudioAlarm
Referenced by vCalToICalAlarm().
1.5.6