Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.hpp

    rf3db60 r601ef8  
    4040class ActionRegistry;
    4141class ActionTrait;
    42 class DryRunAdvocate;
    4342
    4443namespace Queuedetail {
     
    179178  { return StatusList; }
    180179
    181   /** Getter for isDryRun state flag.
    182    *
    183    * \return true - ActionQueue does not execute Actions but skips, false - else
    184    */
    185   bool getDryRun() const
    186   { return dryrun_flag; }
    187 
    188180private:
    189181  //!> grant Action access to internal history functions.
     
    191183  //!> grant CommandLineParser access to stop and clearQueue()
    192184  friend class ::CommandLineParser;
    193   //!> grant Advocate access to setting dryrun
    194   friend class DryRunAdvocate;
    195185
    196186  /** Wrapper function to add state to ActionHistory.
     
    265255  void insertAction(Action *_action, enum Action::QueryOptions state);
    266256
    267   /** Sets the current state of the \a isDryRun flag.
    268    *
    269    * \param _dryrun true - Actions will not get executed anymore, false - else
    270    */
    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_flag
    277    * \return true - dryrun_flag set and \a _nextaction is not unsetting dry run
    278    */
    279   bool isDryRun(const Action *_nextaction) const;
    280 
    281257private:
    282258  /** Private cstor for ActionQueue.
     
    333309  //!> internal list of status messages from Actions for UIs to display
    334310  ActionStatusList StatusList;
    335 
    336   //!> internal flag whether to call or skip actions (i.e. do a dry run)
    337   bool dryrun_flag;
    338311};
    339312namespace Queuedetail {
Note: See TracChangeset for help on using the changeset viewer.