pppc/Config.h
2009-08-19 16:38:44 +00:00

33 lines
617 B
C++

#ifndef CONFIG_H
#define CONFIG_H
#include <string>
#include <vector>
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<Entry> m_entries;
};
#endif