You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
516 B

  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. #include <memory>
  5. #include <libical/ical.h>
  6. #include <io/debug.h>
  7. #include <ical/Alarm.h>
  8. namespace ical {
  9. class Event {
  10. public:
  11. Event(icalcomponent* event_component);
  12. void parse(icalcomponent* event);
  13. void parse_alarms(icalcomponent* event_component);
  14. std::string
  15. std::string print() const;
  16. private:
  17. std::string uid;
  18. std::string summary;
  19. icaltimetype dtstart;
  20. icaltimetype dtend;
  21. std::vector<Alarm> alarms;
  22. };
  23. }