diff --git a/ical/Event.cpp b/ical/Event.cpp index 71694b1..7eda438 100644 --- a/ical/Event.cpp +++ b/ical/Event.cpp @@ -24,6 +24,26 @@ namespace ical { } } + std::string get_uid() const { + return uid; + } + + std::string get_summary() const { + return summary; + } + + icaltimetype get_dtstart() const { + return dtstart; + } + + icaltimetype get_dtend() const { + return dtend; + } + + std::vector get_alarms() const { + return alarms; + } + std::string Event::print() const { std::string s = ""; s += "UID: " + uid + "\n"; diff --git a/ical/Event.h b/ical/Event.h index 5659883..634ad4f 100644 --- a/ical/Event.h +++ b/ical/Event.h @@ -16,7 +16,11 @@ namespace ical { void parse(icalcomponent* event); void parse_alarms(icalcomponent* event_component); - std::string + std::string get_uid() const; + std::string get_summary() const; + icaltimetype get_dtstart() const; + icaltimetype get_dtend() const; + std::vector get_alarms() const; std::string print() const; private: