diff options
Diffstat (limited to '')
-rw-r--r-- | src/action.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/action.cpp b/src/action.cpp index cae4f01..2588caa 100644 --- a/src/action.cpp +++ b/src/action.cpp | |||
@@ -8,9 +8,9 @@ Action::~Action() | |||
8 | { | 8 | { |
9 | } | 9 | } |
10 | 10 | ||
11 | void Action::addCommand( eAction act, const std::string &sWhat ) | 11 | void Action::addCommand( eAction act, const std::string &sWhat, bool bIsGroup ) |
12 | { | 12 | { |
13 | lCmds.push_back( Cmd( act, sWhat ) ); | 13 | lCmds.push_back( Cmd( act, sWhat, bIsGroup ) ); |
14 | } | 14 | } |
15 | 15 | ||
16 | void Action::begin() | 16 | void Action::begin() |
@@ -38,6 +38,11 @@ std::string Action::getWhat() | |||
38 | return (*i).sWhat; | 38 | return (*i).sWhat; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool Action::isGroup() | ||
42 | { | ||
43 | return (*i).bIsGroup; | ||
44 | } | ||
45 | |||
41 | void Action::setMode( eAction nAct ) | 46 | void Action::setMode( eAction nAct ) |
42 | { | 47 | { |
43 | for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) | 48 | for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) |