Advertisement
Guest User

notify_time.h

a guest
Apr 16th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #ifndef NOTIFY_TIME_H
  2. #define NOTIFY_TIME_H
  3.  
  4. #include <string>
  5. #include <vector>
  6.  
  7. #include "event.h"
  8.  
  9. namespace time_constant
  10. {
  11.     const std::string days[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
  12.     constexpr unsigned short warn_time = 0, start_time = 1, end_time = 2;
  13.     constexpr unsigned short warn_notif = 0, start_notif = 1, end_notif = 2, about_to_start_notif = 3, in_progress_notif = 4;
  14.     const std::string cmd = "notify-send";
  15. }
  16.  
  17. void load_conf(std::vector<event_t>&, const std::string&);
  18. void event_loop(const std::vector<event_t>&, const bool);
  19. const unsigned current_time();
  20. const std::string current_weekday();
  21. void pause(const unsigned);
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement