Add rtest and rrecite function to test reversely
[FreeRecite.git] / src / ui / Cui.h
bloba3a52845fb5c928ff55bca30708840e2f8929971
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(int argc, char *argv[]);
19 private:
20 time_t atoid(const char *argv);
21 void cleanStress();
22 void clear();
23 void createNew(const char *fileName);
24 void exportFromFile(const char *fileName);
25 void exportDone();
26 void exportTask(time_t taskID);
27 void exportStress();
28 void help();
29 void merge(const char *fileName = 0);
30 bool modify(const std::string &word);
31 void recite(const char *fileName, bool reverse);
32 void recite(time_t taskID, bool reverse);
33 void remove(time_t taskID);
34 void r_scanProcess(Scanner &scanner);
35 void scanProcess(Scanner &scanner);
36 void scanProHelp();
37 void showActive();
38 void showAll();
39 void showResult(bool result);
40 void test(time_t taskID, bool reverse);
43 } //Namespace freeRecite end.
45 #endif