Changes in src/Actions/ActionQueue.hpp [a61dbb:11d433]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionQueue.hpp
ra61dbb r11d433 24 24 #include "Actions/Action.hpp" 25 25 #include "Actions/ActionState.hpp" 26 #include "Actions/ActionStatusList.hpp" 26 27 27 28 #ifdef HAVE_ACTION_THREAD … … 29 30 void waitQueue(); 30 31 #endif 32 33 class CommandLineParser; 31 34 32 35 namespace MoleCuilder { … … 60 63 * \param state whether Actions needs to be filled via a Dialog or not 61 64 */ 62 void queueAction( Action *_action, enum Action::QueryOptions state = Action::Interactive);65 void queueAction(const Action * const _action, enum Action::QueryOptions state = Action::Interactive); 63 66 64 67 /** Returns the spawned action by token \a name. … … 133 136 { return run_thread; } 134 137 #endif 138 139 /** Getter to ref to list of status messages. 140 * 141 * This is meant for UIs to registers as Observables. 142 * 143 * \return ref to StatusList variable 144 */ 145 ActionStatusList& getStatusList() 146 { return StatusList; } 135 147 136 148 private: 137 149 //!> grant Action access to internal history functions. 138 150 friend class Action; 151 //!> grant CommandLineParser access to stop and clearQueue() 152 friend class ::CommandLineParser; 139 153 140 154 /** Wrapper function to add state to ActionHistory. … … 145 159 void addElement(Action* _Action, ActionState::ptr _state); 146 160 161 /** Advocate function to add status message to the list. 162 * 163 */ 164 void pushStatus(const std::string &_msg) 165 { StatusList.pushMessage(_msg); } 166 147 167 /** Wrapper function to clear ActionHistory. 148 168 * 149 169 */ 150 170 void clear(); 171 172 /** Clears all actions currently present in the actionqueues. 173 * 174 */ 175 void clearQueue(); 151 176 152 177 #ifdef HAVE_ACTION_THREAD … … 231 256 boost::mutex mtx_idle; 232 257 #endif 258 259 //!> internal list of status messages from Actions for UIs to display 260 ActionStatusList StatusList; 233 261 }; 234 262
Note:
See TracChangeset
for help on using the changeset viewer.