#include <CComponentDetails.h>
Public Member Functions | |
CComponentDetails () | |
CComponentDetails (string description) | |
CComponentDetails (string summary, int tododue, int status) | |
CComponentDetails (string summary, string description, string location, int dateStart, int dateEnd) | |
void | initEvent () |
CComponentDetails (CComponentDetails &ref) | |
const CComponentDetails & | operator= (const CComponentDetails &right) |
bool | setClas (string szClas) |
string | getClas () |
bool | setDateStamp (int iDateStamp) |
int | getDateStamp () |
bool | setOrganizer (COrganizer *pOrg) |
COrganizer * | getOrganizer () |
void | removeOrganizer () |
bool | setAttendees (vector< CAttendee * > vAttendeeList) |
vector< CAttendee * > | getAttendees () |
void | removeAttendees () |
bool | setAttachments (vector< string > vAttachList) |
vector< string > | getAttachments () |
bool | setSequence (int iSequence) |
int | getSequence () |
bool | setUid (int iUId) |
int | getUid () |
bool | setUrl (string szUrl) |
string | getUrl () |
bool | setCategories (string szCategories) |
string | getCategories () |
bool | setComments (string szComments) |
string | getComments () |
bool | setContact (string szContact) |
string | getContact () |
bool | setRelated (string szRelated) |
string | getRelated () |
bool | setResources (string szResources) |
string | getResources () |
vector< CAttendee * > | retrieveAttendeeDetails () |
COrganizer * | retrieveOrganizerDetails () |
bool | setXProperties (vector< CProperties * >) |
vector< CProperties * > | getXProperties () |
void | removeXProperties () |
virtual | ~CComponentDetails () |
map< string, vector < CParameters * > > | getHashMap () |
bool | setHashMap (map< string, vector< CParameters * > > hashMap) |
void | removeHashMap () |
map< string, vector < CParameters * > > | retrieveParameterDetails () |
map< string, vector < CParameters * > > | retrieveXParameterDetails () |
vector< CParameters * > | getParameter (QueryResult *pQr) |
vector< CProperties * > | retrieveXPropertyDetails () |
vector< string > | getPropertyValues (string szProperty) |
CAttendee * | convertParamToAttendee (vector< CParameters * > vParam) |
vector< CParameters * > | getParameter (string szPropName, string szPropValue) |
COrganizer * | convertParamToOrganizer (vector< CParameters * > vParam) |
string | toString () |
Private Member Functions | |
void | copyHashMap (map< string, vector< CParameters * > > hashMap) |
Private Attributes | |
int | iDateStamp |
COrganizer * | pOrganizer |
vector< string > | vAttachments |
vector< CAttendee * > | vAttendee |
int | iSequence |
int | iUId |
string | szUrl |
string | szCategory |
string | szComments |
string | szContacts |
string | szRelated |
string | szResources |
vector< CProperties * > | vXProp |
string | szClas |
map< string, vector < CParameters * > > | hashMap |
CComponentDetails class
CComponentDetails::CComponentDetails | ( | ) |
CComponentDetails Default constructor
References initEvent().
CComponentDetails::CComponentDetails | ( | string | szDescription | ) |
CComponentDetails Overloaded parameterized constructor
References initEvent().
CComponentDetails::CComponentDetails | ( | string | szSummary, | |
int | iTodoDue, | |||
int | iStatus | |||
) |
CComponentDetails Overloaded parameterized constructor
References initEvent().
CComponentDetails::CComponentDetails | ( | string | szSummary, | |
string | szDescription, | |||
string | szLocation, | |||
int | iDateStart, | |||
int | iDateEnd | |||
) |
CComponentDetails Overloaded parameterized constructor
References initEvent().
CComponentDetails::CComponentDetails | ( | CComponentDetails & | ref | ) |
CComponent copy constructor
Component() CComponent copy constructor
References copyHashMap(), hashMap, iDateStamp, iSequence, iUId, pOrganizer, setAttachments(), setAttendees(), setOrganizer(), setXProperties(), szCategory, szClas, szComments, szContacts, szRelated, szResources, szUrl, vAttachments, vAttendee, and vXProp.
CComponentDetails::~CComponentDetails | ( | ) | [virtual] |
Destructor
~CComponentDetails Destructor for CComponentDetails class
References removeAttendees(), removeHashMap(), removeOrganizer(), and removeXProperties().
void CComponentDetails::initEvent | ( | ) |
InitEvent Function used to initialize the class members
References iDateStamp, iSequence, iUId, pOrganizer, vAttendee, and vXProp.
Referenced by CComponentDetails().
const CComponentDetails & CComponentDetails::operator= | ( | const CComponentDetails & | right | ) |
overloaded assignment operator
References copyHashMap(), hashMap, iDateStamp, iSequence, iUId, CComponent::operator=(), pOrganizer, removeAttendees(), removeOrganizer(), removeXProperties(), setAttachments(), setAttendees(), setOrganizer(), setXProperties(), szCategory, szClas, szComments, szContacts, szRelated, szResources, szUrl, vAttachments, vAttendee, and vXProp.
Referenced by CTodo::operator=(), CJournal::operator=(), and CEvent::operator=().
bool CComponentDetails::setClas | ( | string | szClas | ) |
string Class |
setClas
Class | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getClas | ( | ) |
none |
getClas
none |
References szClas.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setDateStamp | ( | int | iDateStamp | ) |
int time in utc |
setDateStamp
int | time in utc |
Referenced by ICalConverter::toLocal().
int CComponentDetails::getDateStamp | ( | ) |
none |
getDateStamp
none |
References iDateStamp.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), CCalendar::modifyTodo(), and ICalConverter::toLocal().
bool CComponentDetails::setOrganizer | ( | COrganizer * | ptrOrganizer | ) |
COrganizer* pointer to COrganizer object |
setOrganizer
pointer | to COrganizer class |
References pOrganizer, and removeOrganizer().
Referenced by CComponentDetails(), and operator=().
COrganizer * CComponentDetails::getOrganizer | ( | ) |
none |
getOrganizer
none |
References pOrganizer.
Referenced by CCalendar::addEvent(), CCalendar::addJournal(), CCalendar::addTodo(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), CCalendar::modifyTodo(), and toString().
void CComponentDetails::removeOrganizer | ( | ) |
none |
removeOrganizer
none |
References pOrganizer.
Referenced by operator=(), setOrganizer(), and ~CComponentDetails().
bool CComponentDetails::setAttendees | ( | vector< CAttendee * > | vAttendee | ) |
vector<CAttendee*> vector of pointers to CAttendee objets |
setAttendees
vector | of pointers to CAttendee class |
References removeAttendees().
Referenced by CComponentDetails(), and operator=().
vector< CAttendee * > CComponentDetails::getAttendees | ( | ) |
none |
getAttendees
none |
References vAttendee.
Referenced by CCalendar::addEvent(), CCalendar::addJournal(), CCalendar::addTodo(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
void CComponentDetails::removeAttendees | ( | ) |
none |
removeAttendees
none |
References vAttendee.
Referenced by operator=(), setAttendees(), and ~CComponentDetails().
bool CComponentDetails::setAttachments | ( | vector< string > | vAttachments | ) |
vector<string> vector of Attachments |
setAttachments
vector | of pointers to CAttachments class |
Referenced by CComponentDetails(), operator=(), and ICalConverter::toLocal().
vector< string > CComponentDetails::getAttachments | ( | ) |
none |
getAttachments
none |
References vAttachments.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setSequence | ( | int | iSequence | ) |
int sequence |
setSequence
int | sequence |
int CComponentDetails::getSequence | ( | ) |
none |
getSequence
none |
References iSequence.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setUid | ( | int | iUId | ) |
int uid |
setUid
int | uid |
Referenced by CCalendar::getTodo(), and CCalendar::getTodos().
int CComponentDetails::getUid | ( | ) |
none |
getUid
none |
References iUId.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setUrl | ( | string | szUrl | ) |
string url |
setUrl
url | string |
Referenced by CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getUrl | ( | ) |
none |
getUrl
none |
References szUrl.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setCategories | ( | string | szCategory | ) |
string szCategories |
setCategories
categories | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getCategories | ( | ) |
none |
getCategories
none |
References szCategory.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setComments | ( | string | szComments | ) |
string comments |
setComments
comments | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getComments | ( | ) |
none |
getComments
none |
References szComments.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), CCalendar::modifyTodo(), and ICalConverter::replaceWithEncodedString().
bool CComponentDetails::setContact | ( | string | szContacts | ) |
string contact |
setContact
contact | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getContact | ( | ) |
none |
getContact
none |
References szContacts.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setRelated | ( | string | szRelated | ) |
string Related |
setRelated
Related | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getRelated | ( | ) |
none |
getRelated
none |
References szRelated.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setResources | ( | string | szResources | ) |
string Resources |
setResources
Resources | string |
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
string CComponentDetails::getResources | ( | ) |
none |
getResources
none |
References szResources.
Referenced by CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
vector< CAttendee * > CComponentDetails::retrieveAttendeeDetails | ( | ) |
NONE |
retrieveAttendeeDetails
NONE |
References convertParamToAttendee(), CComponent::getId(), getParameter(), getPropertyValues(), and CParticipant::setMailTo().
COrganizer * CComponentDetails::retrieveOrganizerDetails | ( | ) |
NONE |
retrieveOrganizerDetails
NONE |
References convertParamToOrganizer(), CComponent::getId(), getParameter(), getPropertyValues(), and CParticipant::setMailTo().
bool CComponentDetails::setXProperties | ( | vector< CProperties * > | vXProp | ) |
string | Xproperties |
setXproperties
Xproperties | string |
References removeXProperties().
Referenced by CComponentDetails(), CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), CCalendar::getTodos(), operator=(), and ICalConverter::toLocal().
vector< CProperties * > CComponentDetails::getXProperties | ( | ) |
none |
getXProperties
none |
References vXProp.
Referenced by CCalendar::addEvent(), CCalendar::addJournal(), CCalendar::addTodo(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
void CComponentDetails::removeXProperties | ( | ) |
none |
removeXProperties
none |
References vXProp.
Referenced by operator=(), setXProperties(), and ~CComponentDetails().
map< string, vector< CParameters * > > CComponentDetails::getHashMap | ( | ) |
NONE |
NONE |
Referenced by CCalendar::addEvent(), CCalendar::addJournal(), CCalendar::addTodo(), CCalendar::modifyEvent(), CCalendar::modifyJournal(), and CCalendar::modifyTodo().
bool CComponentDetails::setHashMap | ( | map< string, vector< CParameters * > > | hashMap | ) |
hashMap |
hashmap |
References removeHashMap().
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), CCalendar::getTodos(), and ICalConverter::toLocal().
void CComponentDetails::removeHashMap | ( | ) |
none |
removeHashMap
none |
Referenced by copyHashMap(), setHashMap(), and ~CComponentDetails().
map< string, vector< CParameters * > > CComponentDetails::retrieveParameterDetails | ( | ) |
: | NONE |
: | NONE |
References CParameters::getDataType(), CProperties::getDataType(), CComponent::getId(), CParameters::getParamName(), CProperties::getPropName(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CParameters::setParamName(), CParameters::setParamValue(), CProperties::setPropName(), and CProperties::setPropValue().
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
vector< CParameters * > CComponentDetails::getParameter | ( | QueryResult * | pQr | ) |
QueryResult pQr |
QueryResult pQr |
References CParameters::getDataType(), CParameters::getParamName(), CParameters::setParamName(), and CParameters::setParamValue().
Referenced by getParameter(), retrieveAttendeeDetails(), and retrieveOrganizerDetails().
vector< CProperties * > CComponentDetails::retrieveXPropertyDetails | ( | ) |
NONE |
References CProperties::getDataType(), CComponent::getId(), CProperties::getPropName(), CCalendarDB::getRecords(), CCalendarDB::Instance(), CProperties::setPropName(), and CProperties::setPropValue().
Referenced by CCalendar::getJournal(), CCalendar::getJournals(), CCalendar::getTodo(), and CCalendar::getTodos().
vector< string > CComponentDetails::getPropertyValues | ( | string | szProperty | ) |
string | Property Name |
getPropertyValues
string | Property Name |
References CComponent::getId(), CCalendarDB::getRecords(), and CCalendarDB::Instance().
Referenced by retrieveAttendeeDetails(), and retrieveOrganizerDetails().
CAttendee * CComponentDetails::convertParamToAttendee | ( | vector< CParameters * > | vParam | ) |
vector | <CParameters *> |
convertParamToAttendee
vector | <CParameters *> |
References CAttendee::setCalendarUserType(), CParticipant::setCommonName(), CAttendee::setDelegatees(), CAttendee::setDelegator(), CParticipant::setDirectoryParameter(), CParticipant::setLanguage(), CParticipant::setMailTo(), CAttendee::setMember(), CAttendee::setParticipationStatus(), CAttendee::setRole(), CAttendee::setRSVP(), and CParticipant::setSentBy().
Referenced by retrieveAttendeeDetails().
vector< CParameters * > CComponentDetails::getParameter | ( | string | szPropName, | |
string | szPropValue | |||
) |
string | ||
string |
getParameter
string | ||
string |
define SELECT_PROP_AND select * from Parametes where ComponentId= AND PropertyName = s AND PropertyValue = s
References CComponent::getId(), getParameter(), CCalendarDB::getRecords(), and CCalendarDB::Instance().
COrganizer * CComponentDetails::convertParamToOrganizer | ( | vector< CParameters * > | vParam | ) |
@return | Function to convert vector of parameters to COrganizer |
@return | Function to convert vector of parameters to COrganizer |
References CParticipant::setCommonName(), CParticipant::setDirectoryParameter(), CParticipant::setLanguage(), CParticipant::setMailTo(), and CParticipant::setSentBy().
Referenced by retrieveOrganizerDetails().
string CComponentDetails::toString | ( | ) |
toString
Reimplemented from CComponent.
Reimplemented in CEvent, CJournal, and CTodo.
References CComponent::getAlarm(), CComponent::getAllDay(), CComponent::getCalendarId(), CComponent::getCreatedTime(), CComponent::getDateEnd(), CComponent::getDateStart(), CComponent::getDescription(), CComponent::getFlags(), CComponent::getGUid(), CComponent::getId(), CComponent::getLastModified(), CComponent::getLocation(), getOrganizer(), CComponent::getRecurrence(), CComponent::getStatus(), CComponent::getSummary(), CComponent::getType(), CComponent::getUntil(), iDateStamp, iSequence, iUId, CComponent::pAlarm, szCategory, szClas, szComments, szContacts, szRelated, szResources, szUrl, COrganizer::toString(), CRecurrence::toString(), CAlarm::toString(), vAttachments, vAttendee, and vXProp.
void CComponentDetails::copyHashMap | ( | map< string, vector< CParameters * > > | hashMap | ) | [private] |
hashmap |
hashmap |
References removeHashMap().
Referenced by CComponentDetails(), and operator=().
int CComponentDetails::iDateStamp [private] |
Datestamp
Referenced by CComponentDetails(), getDateStamp(), initEvent(), operator=(), and toString().
COrganizer* CComponentDetails::pOrganizer [private] |
Organizer details
Referenced by CComponentDetails(), getOrganizer(), initEvent(), operator=(), removeOrganizer(), and setOrganizer().
vector< string > CComponentDetails::vAttachments [private] |
Attachments
Referenced by CComponentDetails(), getAttachments(), operator=(), and toString().
vector< CAttendee *> CComponentDetails::vAttendee [private] |
Attendee
Referenced by CComponentDetails(), getAttendees(), initEvent(), operator=(), removeAttendees(), and toString().
int CComponentDetails::iSequence [private] |
Sequence
Referenced by CComponentDetails(), getSequence(), initEvent(), operator=(), and toString().
int CComponentDetails::iUId [private] |
Uid
Referenced by CComponentDetails(), getUid(), initEvent(), operator=(), and toString().
string CComponentDetails::szUrl [private] |
Url
Referenced by CComponentDetails(), getUrl(), operator=(), and toString().
string CComponentDetails::szCategory [private] |
Component category
Referenced by CComponentDetails(), getCategories(), operator=(), and toString().
string CComponentDetails::szComments [private] |
Comments
Referenced by CComponentDetails(), getComments(), operator=(), and toString().
string CComponentDetails::szContacts [private] |
Contacts
Referenced by CComponentDetails(), getContact(), operator=(), and toString().
string CComponentDetails::szRelated [private] |
Related
Referenced by CComponentDetails(), getRelated(), operator=(), and toString().
string CComponentDetails::szResources [private] |
Resources
Referenced by CComponentDetails(), getResources(), operator=(), and toString().
vector<CProperties*> CComponentDetails::vXProp [private] |
XProperties
Referenced by CComponentDetails(), getXProperties(), initEvent(), operator=(), removeXProperties(), and toString().
string CComponentDetails::szClas [private] |
Class
Referenced by CComponentDetails(), getClas(), operator=(), and toString().