#ifndef CONFIG_H #define CONFIG_H #include #include class Config { public: enum Action { NONE, ON, OFF, PREVIOUS }; class Entry { public: Entry(const std::string & name); std::string name; int pin; Action on_start; Action on_exit; Action on_lock; Action on_unlock; protected: }; void read(const char * file); protected: std::vector m_entries; }; #endif