#include <CAlarm.h>
Inheritance diagram for CAlarm:
Public Member Functions | |
CAlarm () | |
CAlarm (CAlarm &ref) | |
~CAlarm () | |
const CAlarm & | operator= (const CAlarm &right) |
CAlarm (int iTrigger, int iRepeat, int iDuration, int iAction, string szAttach) | |
CAlarm (int iTrigger, int iDuration) | |
bool | setTrigger (int) |
int | getTrigger () |
bool | setRepeat (int iRepeat) |
int | getRepeat () |
bool | setDuration (int iDuration) |
int | getDuration () |
bool | setAction (int iAction) |
int | getAction () |
bool | setAttach (string szAttach) |
string | getAttach () |
vector< long > | getCookie () |
bool | setCookie (vector< long > icookie) |
long | addAlarmEvent (time_t event_time, string message, string location, time_t dateStart, time_t dateEnd, string compId, int iCalendarId, string szDescription, int iType, int &pErrorCode) |
long | registerAlarmForAutoDeletion (time_t alarm_time, int &pErrorCode) |
int | deleteAlarmEvent (long cookie, int &pErrorCode) |
long | modifyAlarmEvent (long oldcookie, time_t modify_time, string message, string location, time_t dateStart, time_t dateEnd, string sCompId, int iCalendarId, string szDescription, int iType, int &pErrorCode) |
Private Attributes | |
int | iTrigger |
int | iRepeat |
int | iDuration |
int | iAction |
vector< long > | vcookie |
string | szAttach |
CAlarm class
CAlarm::CAlarm | ( | ) |
default constructor
CAlarm::CAlarm | ( | CAlarm & | ref | ) |
copy constructor
CAlarm::~CAlarm | ( | ) |
default destructor
CAlarm::CAlarm | ( | int | iTrigger, | |
int | iRepeat, | |||
int | iDuration, | |||
int | iAction, | |||
string | szAttach | |||
) |
parameterised constructor
trigger | an integer | |
Repeat | an integer | |
duration | an integer | |
action | an integer | |
attachments | a string |
CAlarm::CAlarm | ( | int | iTrigger, | |
int | iDuration | |||
) |
CAlarm Parameterized constructor
iTrigger | Integer time in time_t format used to know the time of occurance of alarm duration Duration of alarm | |
cookie | Alarm cookie value |
bool CAlarm::setTrigger | ( | int | ) |
setTrigger
int |
int CAlarm::getTrigger | ( | ) |
getTrigger
none |
bool CAlarm::setRepeat | ( | int | iRepeat | ) |
setRepeat
int |
int CAlarm::getRepeat | ( | ) |
getRepeat
none |
bool CAlarm::setDuration | ( | int | iDuration | ) |
setDuration
int |
int CAlarm::getDuration | ( | ) |
getDuration
none |
bool CAlarm::setAction | ( | int | iAction | ) |
setAction
int |
int CAlarm::getAction | ( | ) |
getAction
none |
bool CAlarm::setAttach | ( | string | szAttach | ) |
setAttach
int |
string CAlarm::getAttach | ( | ) |
getAttach
none | @return string |
vector< long > CAlarm::getCookie | ( | ) |
None |
bool CAlarm::setCookie | ( | vector< long > | icookie | ) |
setCookie(int)
vector<integer> | cookie value of an alarm |
long CAlarm::addAlarmEvent | ( | time_t | event_time, | |
string | message, | |||
string | location, | |||
time_t | dateStart, | |||
time_t | dateEnd, | |||
string | compId, | |||
int | iCalendarId, | |||
string | szDescription, | |||
int | iType, | |||
int & | pErrorCode | |||
) | [virtual] |
addAlarmEvent Function to add the alarm event
event_time | Event time in time_t format | |
message | Event summary displays in alarm message | |
location | Event location displays in alarm message | |
dateStart | Event start date | |
dateEnd | Event end date | |
compId | component Id | |
iCalendarId | Calendar Id | |
szdescription | Description of the entry | |
iType | Component Type | |
pErrorCode | reference to integer |
Implements CAlarmIface.
long CAlarm::registerAlarmForAutoDeletion | ( | time_t | alarm_time, | |
int & | pErrorCode | |||
) |
registerAlarmForAutoDeletion Function to register an alarm for automatic deletion of events.
alarm_time | Event time in time_t format | |
pErrorCode | refece to intger error code |
int CAlarm::deleteAlarmEvent | ( | long | cookie, | |
int & | pErrorCode | |||
) | [virtual] |
deleteAlarmEvent Function to delete the alarm event
long | Alarm cookie value | |
pErrorCode | refece to intger error code |
Implements CAlarmIface.
long CAlarm::modifyAlarmEvent | ( | long | oldcookie, | |
time_t | modify_time, | |||
string | message, | |||
string | location, | |||
time_t | dateStart, | |||
time_t | dateEnd, | |||
string | sCompId, | |||
int | iCalendarId, | |||
string | szDescription, | |||
int | iType, | |||
int & | pErrorCode | |||
) | [virtual] |
modifyAlarmEvent
oldcookie | Old cookie value | |
modify_time | Event time in time_t format | |
message | Event summary displays in alarm message | |
location | Event location displays in alarm message | |
dateStart | Event start date | |
dateEnd | Event end date | |
iCalendarId | Calendar Id string | |
iType | component type | |
pErrorCode | reference to integer |
Implements CAlarmIface.
int CAlarm::iTrigger [private] |
Trigger parameter as per RFC
int CAlarm::iRepeat [private] |
Alarm repeat parameter
int CAlarm::iDuration [private] |
Alarm Duration
int CAlarm::iAction [private] |
Alarm action
vector< long > CAlarm::vcookie [private] |
Cookies vector to store them in database
string CAlarm::szAttach [private] |
Attachements