Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef EVENT_H
- #define EVENT_H
- #include <string>
- #include <vector>
- class event_t
- {
- private:
- std::string weekday;
- unsigned warn_time = 0, start_time = 0, end_time = 0;
- std::string warn_notif, start_notif, end_notif, about_to_start_notif, in_progress_notif;
- const unsigned parse_time(const std::string&) const;
- const std::string unparse_notif(std::string, std::string) const;
- const std::string& find_replace(std::string&, const std::string&, const std::string&) const;
- const std::string compose_notif(const std::string&, const std::string&) const;
- const char* unparse_cmd(const std::string&) const;
- public:
- event_t();
- event_t(const std::vector<std::string>&);
- void load_event(const std::vector<std::string>&);
- friend void send_notif(const event_t&, const unsigned short);
- friend void send_notif(const std::string&);
- const std::string& day() const;
- const unsigned time(const unsigned short) const;
- const std::string notif(const unsigned short) const;
- };
- void send_notif(const std::string&);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement