2014-01-05 22:58:00 +00:00
|
|
|
#ifndef MD_CHARGUI
|
|
|
|
#define MD_CHARGUI
|
|
|
|
|
|
|
|
class mdCommander {
|
|
|
|
|
|
|
|
bool acceptingInput;
|
2014-01-11 19:34:15 +00:00
|
|
|
bool EPPmode; // RFC 8
|
2014-01-05 22:58:00 +00:00
|
|
|
int mdStdDevIdx;
|
|
|
|
std::string currentDevice;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
mdCommander() {mdStdDevIdx=0;}
|
|
|
|
~mdCommander() {}
|
|
|
|
|
2014-01-11 19:34:15 +00:00
|
|
|
void acMainMenu();
|
|
|
|
void check();
|
|
|
|
void create();
|
2014-01-05 22:58:00 +00:00
|
|
|
void driver();
|
2014-01-11 19:34:15 +00:00
|
|
|
void eppMainMenu();
|
|
|
|
void flushCommand();
|
2014-01-05 22:58:00 +00:00
|
|
|
void greet();
|
|
|
|
void help();
|
2014-01-11 19:34:15 +00:00
|
|
|
void info();
|
|
|
|
void renew();
|
|
|
|
void sendCommand();
|
|
|
|
void showCommand();
|
|
|
|
void trash();
|
|
|
|
void transfer();
|
|
|
|
void transferCheck();
|
|
|
|
void update();
|
|
|
|
|
|
|
|
bool epp(char *command);
|
2014-01-05 22:58:00 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|