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.

26 lines
478 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 print() const;
  15. private:
  16. std::string summary;
  17. icaltimetype dtstart;
  18. icaltimetype dtend;
  19. std::vector<Alarm> alarms;
  20. };
  21. }