Changes in src/Actions/ActionQueue.hpp [f3db60:601ef8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionQueue.hpp
rf3db60 r601ef8 40 40 class ActionRegistry; 41 41 class ActionTrait; 42 class DryRunAdvocate;43 42 44 43 namespace Queuedetail { … … 179 178 { return StatusList; } 180 179 181 /** Getter for isDryRun state flag.182 *183 * \return true - ActionQueue does not execute Actions but skips, false - else184 */185 bool getDryRun() const186 { return dryrun_flag; }187 188 180 private: 189 181 //!> grant Action access to internal history functions. … … 191 183 //!> grant CommandLineParser access to stop and clearQueue() 192 184 friend class ::CommandLineParser; 193 //!> grant Advocate access to setting dryrun194 friend class DryRunAdvocate;195 185 196 186 /** Wrapper function to add state to ActionHistory. … … 265 255 void insertAction(Action *_action, enum Action::QueryOptions state); 266 256 267 /** Sets the current state of the \a isDryRun flag.268 *269 * \param _dryrun true - Actions will not get executed anymore, false - else270 */271 void setDryRun(const bool _dryrun)272 { dryrun_flag = _dryrun; }273 274 /** Checks whether next Action should be skipped or not.275 *276 * \param _nextaction next action to execute to inspect whether it unsets dryrun_flag277 * \return true - dryrun_flag set and \a _nextaction is not unsetting dry run278 */279 bool isDryRun(const Action *_nextaction) const;280 281 257 private: 282 258 /** Private cstor for ActionQueue. … … 333 309 //!> internal list of status messages from Actions for UIs to display 334 310 ActionStatusList StatusList; 335 336 //!> internal flag whether to call or skip actions (i.e. do a dry run)337 bool dryrun_flag;338 311 }; 339 312 namespace Queuedetail {
Note:
See TracChangeset
for help on using the changeset viewer.