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.

28 lines
690 B

  1. #pragma once
  2. #include <fstream>
  3. #include <sstream>
  4. #include <iostream>
  5. #include <libical/ical.h>
  6. #include <ical/IcalObject.h>
  7. #include <ical/Alarm.h>
  8. #include <ical/Event.h>
  9. #include <boost/filesystem.hpp>
  10. #include <io/debug.h>
  11. const std::string cal_dir = "/home/stefan/.local/share/khal/calendars/dummy/";
  12. namespace util {
  13. std::vector<ical::ical_object*> parse_cal_dir();
  14. icalcomponent* parse_main_component(ical::ical_object* object, icalcomponent* component);
  15. void parse_component(ical::ical_object* object, icalcomponent* component);
  16. std::string slurp(std::ifstream& in);
  17. icalcomponent* parse_ics_file(std::string filename);
  18. void debug(icalcomponent* component);
  19. }