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.

30 lines
832 B

  1. #pragma once
  2. #include <fstream>
  3. #include <iostream>
  4. #include <sstream>
  5. #include <string>
  6. #include <ical/Alarm.h>
  7. #include <ical/Event.h>
  8. #include <ical/IcalObject.h>
  9. #include <libical/ical.h>
  10. #include <boost/filesystem.hpp>
  11. #include <io/debug.h>
  12. const std::string dtime_fmt = "%d.%m.%Y_%H:%M:%S";
  13. namespace util {
  14. std::vector<ical::IcalObject*> parse_cal_dir(std::string directory);
  15. icalcomponent* parse_main_component(ical::IcalObject* object, icalcomponent* component, const std::string &file);
  16. void parse_component(ical::IcalObject* object, icalcomponent* component, const std::string &file);
  17. std::string slurp(std::ifstream& in);
  18. icalcomponent* parse_ics_file(std::string filename);
  19. void debug(icalcomponent* component);
  20. std::string date_string(const uint32_t &epoch, const std::string &format = "%c");
  21. }