|
|
@ -12,9 +12,6 @@ namespace ical { |
|
|
|
summary = std::string(icalcomponent_get_summary(event_component)); |
|
|
|
parse_alarms(event_component); |
|
|
|
DEBUG << "\n" << print(); |
|
|
|
for(auto& a : alarms) { |
|
|
|
DEBUG << "\n" << a.print(); |
|
|
|
} |
|
|
|
object->events.push_back(this); |
|
|
|
} |
|
|
|
|
|
|
@ -28,11 +25,15 @@ namespace ical { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::string Event::print() { |
|
|
|
std::string Event::print() const { |
|
|
|
std::string s = ""; |
|
|
|
s += "DTSTART: " + std::string(icaltime_as_ical_string(dtstart)) + "\n"; |
|
|
|
s += "DTEND: " + std::string(icaltime_as_ical_string(dtend)) + "\n"; |
|
|
|
s += "SUMMARY: " + summary + "\n"; |
|
|
|
s += "ALARMS:\n"; |
|
|
|
for(auto const& a : alarms) { |
|
|
|
s += a.print(); |
|
|
|
} |
|
|
|
return s; |
|
|
|
} |
|
|
|
} |