New Recite Function
[FreeRecite.git] / src / ui / Cui.h
blob5e339bd380d21a51fa0dffc3b10b38876f8c0da2
1 #include <string>
3 #ifndef FREERECITE__CUI_H
4 #define FREERECITE__CUI_H
6 #include <vector>
8 namespace freeRecite {
10 class Scanner;
12 class CUI
14 public:
15 CUI();
16 ~CUI();
17 void run();
19 private:
20 char getCmd();
21 void creatNew();
22 void test();
23 void recite();
24 bool modify(const char *word = 0);
25 bool modify(const std::string &word);
26 void showActive();
27 void clear();
28 void getLine(std::string &input);
30 void showAnswer(Scanner *scanner) const;
31 void showResult(bool result);
33 void help();
36 } //Namespace freeRecite end.
38 #endif