#include <CRecurrenceRule.h>
Public Member Functions | |
CRecurrenceRule (CRecurrenceRule &ref) | |
CRecurrenceRule & | operator= (CRecurrenceRule &right) |
CRecurrenceRule () | |
~CRecurrenceRule () | |
bool | setRuleType (RuleType iType) |
RuleType | getRuleType () |
bool | rruleParser (string szRule) |
bool | setRrule (string szRRule) |
string | getRrule () |
bool | setFrequency (FREQUENCY iValue) |
FREQUENCY | getFrequency () |
bool | setUntil (time_t iUntil) |
time_t | getUntil () |
bool | setCount (int iCount) |
int | getCount () |
bool | setSecond (vector< short > vSec) |
vector< short > | getSecond () |
bool | setMinute (vector< short > vMinute) |
vector< short > | getMinute () |
bool | setHour (vector< short > vHour) |
vector< short > | getHour () |
bool | setWeekDay (vector< short > vByWeekDay) |
vector< short > | getWeekDay () |
bool | setMonthDay (vector< short > vByMonthDay) |
vector< short > | getMonthDay () |
bool | setYearDay (vector< short > vByYearDay) |
vector< short > | getYearDay () |
bool | setWeekNumber (vector< short > vByWeekNumber) |
vector< short > | getWeekNumber () |
bool | setMonth (vector< short > vMonth) |
vector< short > | getMonth () |
bool | setPos (vector< short > vPosition) |
vector< short > | getPos () |
bool | setWeekStart (icalrecurrencetype_weekday start) |
icalrecurrencetype_weekday | getWeekStart () |
bool | setInterval (short interval) |
short | getInterval () |
CRecurrenceRule (int iType, string szRRule) | |
Private Member Functions | |
vector< short > | convertArrayToVector (short array[], int iLengthMax) |
Private Attributes | |
FREQUENCY | iFreq |
string | szRule |
int | iCount |
short | interval |
time_t | iUntil |
RuleType | iType |
icalrecurrencetype_weekday | weekStart |
vector< short > | vBySecond |
vector< short > | vByMinute |
vector< short > | vByHour |
vector< short > | vByWeekDay |
vector< short > | vByMonthDay |
vector< short > | vByYearDay |
vector< short > | vByWeekNumber |
vector< short > | vByMonth |
vector< short > | vBySetPos |
CRecurrenceRule class
CRecurrenceRule::CRecurrenceRule | ( | CRecurrenceRule & | ref | ) |
Copy Constructor
CRecurrenceRule::CRecurrenceRule | ( | ) |
Default constructor
CRecurrenceRule::~CRecurrenceRule | ( | ) |
Destructor of the class
CRecurrenceRule::CRecurrenceRule | ( | int | iType, | |
string | szRRule | |||
) |
overloaded Constructor type 0-rrule ,1 -exrule
CRecurrenceRule & CRecurrenceRule::operator= | ( | CRecurrenceRule & | right | ) |
overloaded assignment operator
bool CRecurrenceRule::setRuleType | ( | RuleType | iType | ) |
setRuleType
RuleType | type of recurrence rule 0 - RecurrenceRule ;1 -Exception Rule |
RuleType CRecurrenceRule::getRuleType | ( | ) |
getRuleType
NONE |
bool CRecurrenceRule::rruleParser | ( | string | szRule | ) |
string | szRule recurrence rule, can be recurrence rule or exception rule |
currently libical is used later this dependency has to be removed and Funambol API should be used
bool CRecurrenceRule::setRrule | ( | string | szRRule | ) |
: | string szRRule - recurrence rule / exception rule |
string CRecurrenceRule::getRrule | ( | ) |
: | NONE |
bool CRecurrenceRule::setFrequency | ( | FREQUENCY | iValue | ) |
FREQUENCY | : ivaluea frequebncy can be daily,monthly etc, valid values defined in FREQUENCY enumeration. |
FREQUENCY CRecurrenceRule::getFrequency | ( | ) |
NONE |
bool CRecurrenceRule::setUntil | ( | time_t | iUntil | ) |
time_t | : until value in rrule as time_t |
time_t CRecurrenceRule::getUntil | ( | ) |
: | NONE |
bool CRecurrenceRule::setCount | ( | int | iCount | ) |
: | integer Count of occurances |
int CRecurrenceRule::getCount | ( | ) |
: | NONE |
bool CRecurrenceRule::setSecond | ( | vector< short > | vSec | ) |
vector<short>,: | seconds list on which the events should occur |
vector< short > CRecurrenceRule::getSecond | ( | ) |
NONE |
bool CRecurrenceRule::setMinute | ( | vector< short > | vMinute | ) |
vector<short>,: | Minute list on which the events should occur |
vector< short > CRecurrenceRule::getMinute | ( | ) |
NONE | Function used to get Minutes in CRecurrenceRule class |
bool CRecurrenceRule::setHour | ( | vector< short > | vHour | ) |
vector<short>,: | Hour list on which the events should occur |
vector< short > CRecurrenceRule::getHour | ( | ) |
NONE |
bool CRecurrenceRule::setWeekDay | ( | vector< short > | vByWeekDay | ) |
vector<short>,: | WeekDay list on which the events should occur |
vector< short > CRecurrenceRule::getWeekDay | ( | ) |
NONE |
bool CRecurrenceRule::setMonthDay | ( | vector< short > | vByMonthDay | ) |
vector<short>,: | MonthDay list on which the events should occur |
vector< short > CRecurrenceRule::getMonthDay | ( | ) |
NONE |
bool CRecurrenceRule::setYearDay | ( | vector< short > | vByYearDay | ) |
vector<short>,: | YearDay list on which the events should occur |
vector< short > CRecurrenceRule::getYearDay | ( | ) |
NONE |
bool CRecurrenceRule::setWeekNumber | ( | vector< short > | vByWeekNumber | ) |
vector<short>,: | WeekNumeber list on which the events should occur |
vector< short > CRecurrenceRule::getWeekNumber | ( | ) |
NONE |
bool CRecurrenceRule::setMonth | ( | vector< short > | vMonth | ) |
vector<short>,: | Month list on which the events should occur |
vector< short > CRecurrenceRule::getMonth | ( | ) |
NONE |
bool CRecurrenceRule::setPos | ( | vector< short > | vPosition | ) |
vector<short>,: | Position list on which the events should occur |
vector< short > CRecurrenceRule::getPos | ( | ) |
NONE |
bool CRecurrenceRule::setWeekStart | ( | icalrecurrencetype_weekday | start | ) |
int | : weekstart offset day from which week starts in Calendar in our calendar it is either SUNDAY or MONDAY |
icalrecurrencetype_weekday CRecurrenceRule::getWeekStart | ( | ) |
@ int : weekstart offset day from which week starts in Calendar in our calendar it is either SUNDAY or MONDAY
bool CRecurrenceRule::setInterval | ( | short | interval | ) |
short | : interval between two instances |
short CRecurrenceRule::getInterval | ( | ) |
NONE |
vector< short > CRecurrenceRule::convertArrayToVector | ( | short | array[], | |
int | iLengthMax | |||
) | [private] |
array | of short |
After parsing Recurrence rule using ICAL API all arrays are populated with default value of 32639 , to save memory consumption we have filtered out default values
FREQUENCY CRecurrenceRule::iFreq [private] |
Frequency
string CRecurrenceRule::szRule [private] |
RRule or Exception Rule
int CRecurrenceRule::iCount [private] |
integer value
short CRecurrenceRule::interval [private] |
interval appearing in rrule
time_t CRecurrenceRule::iUntil [private] |
Until value
RuleType CRecurrenceRule::iType [private] |
Rule type
icalrecurrencetype_weekday CRecurrenceRule::weekStart [private] |
week start as per rfc Ical is week day from which recuurenc has to start. Our Calendar app supports SU or MO for week start.
vector< short > CRecurrenceRule::vBySecond [private] |
(0-60) second values
vector< short > CRecurrenceRule::vByMinute [private] |
(0-60) Minute values
vector< short > CRecurrenceRule::vByHour [private] |
(0-24) Hour values
vector< short > CRecurrenceRule::vByWeekDay [private] |
(SU,MO,TU,WE,TH,FR,ST) WeekDay values
vector< short > CRecurrenceRule::vByMonthDay [private] |
(1-31) Month values
vector< short > CRecurrenceRule::vByYearDay [private] |
(0-365) Year day values
vector< short > CRecurrenceRule::vByWeekNumber [private] |
(1-52) Week Number values
vector< short > CRecurrenceRule::vByMonth [private] |
(1-12) Month values
vector< short > CRecurrenceRule::vBySetPos [private] |
(1-366) SetPosition values