diff options
Diffstat (limited to '')
-rw-r--r-- | src/action.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/action.h b/src/action.h deleted file mode 100644 index 929c1c5..0000000 --- a/src/action.h +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | #ifndef ACTION_H | ||
2 | #define ACTION_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | #include <string> | ||
7 | #include <list> | ||
8 | |||
9 | class Action | ||
10 | { | ||
11 | public: | ||
12 | enum eAction | ||
13 | { | ||
14 | actCheck, | ||
15 | actClean | ||
16 | }; | ||
17 | public: | ||
18 | Action(); | ||
19 | virtual ~Action(); | ||
20 | |||
21 | typedef struct Cmd | ||
22 | { | ||
23 | Cmd( eAction act, const std::string &sWhat, bool bIsGroup ) : | ||
24 | act( act ), sWhat( sWhat ), bIsGroup( bIsGroup ) | ||
25 | {} | ||
26 | eAction act; | ||
27 | std::string sWhat; | ||
28 | bool bIsGroup; | ||
29 | } Cmd; | ||
30 | |||
31 | void addCommand( eAction act, const std::string &sWhat, bool bIsGroup ); | ||
32 | |||
33 | void begin(); | ||
34 | bool isEnded(); | ||
35 | void next(); | ||
36 | |||
37 | int size() | ||
38 | { | ||
39 | return lCmds.size(); | ||
40 | } | ||
41 | |||
42 | eAction getAct(); | ||
43 | std::string getWhat(); | ||
44 | bool isGroup(); | ||
45 | |||
46 | void setName( const std::string &sName ) | ||
47 | { | ||
48 | this->sName = sName; | ||
49 | } | ||
50 | |||
51 | std::string getName() | ||
52 | { | ||
53 | return sName; | ||
54 | } | ||
55 | |||
56 | void setMode( eAction nAct ); | ||
57 | |||
58 | private: | ||
59 | typedef std::list<Cmd> CmdList; | ||
60 | CmdList lCmds; | ||
61 | CmdList::iterator i; | ||
62 | std::string sName; | ||
63 | |||
64 | }; | ||
65 | |||
66 | #endif | ||