|
@ -7,8 +7,9 @@ namespace ical { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Event::parse(icalcomponent* event_component) { |
|
|
void Event::parse(icalcomponent* event_component) { |
|
|
|
|
|
uid = icalcomponent_get_uid(event_component); |
|
|
dtstart = icalcomponent_get_dtstart(event_component); |
|
|
dtstart = icalcomponent_get_dtstart(event_component); |
|
|
dtend = icalcomponent_get_dtstart(event_component); |
|
|
|
|
|
|
|
|
dtend = icalcomponent_get_dtend(event_component); |
|
|
summary = std::string(icalcomponent_get_summary(event_component)); |
|
|
summary = std::string(icalcomponent_get_summary(event_component)); |
|
|
parse_alarms(event_component); |
|
|
parse_alarms(event_component); |
|
|
} |
|
|
} |
|
@ -25,6 +26,7 @@ namespace ical { |
|
|
|
|
|
|
|
|
std::string Event::print() const { |
|
|
std::string Event::print() const { |
|
|
std::string s = ""; |
|
|
std::string s = ""; |
|
|
|
|
|
s += "UID: " + uid + "\n"; |
|
|
s += "DTSTART: " + std::string(icaltime_as_ical_string(dtstart)) + "\n"; |
|
|
s += "DTSTART: " + std::string(icaltime_as_ical_string(dtstart)) + "\n"; |
|
|
s += "DTEND: " + std::string(icaltime_as_ical_string(dtend)) + "\n"; |
|
|
s += "DTEND: " + std::string(icaltime_as_ical_string(dtend)) + "\n"; |
|
|
s += "SUMMARY: " + summary + "\n"; |
|
|
s += "SUMMARY: " + summary + "\n"; |
|
|