todo-cli
Loading...
Searching...
No Matches
todo::PriorityChangeAction Class Reference

#include <actions.h>

Inheritance diagram for todo::PriorityChangeAction:
Collaboration diagram for todo::PriorityChangeAction:

Public Member Functions

 PriorityChangeAction (Model &model, std::vector< u64 > &&path, u16 new_priority)
 Parameterized constructor.
virtual void execute () override
 execute action.
virtual void undo () override
 undo action.
Public Member Functions inherited from todo::Action
 Action (Model &model, std::vector< u64 > &&path)
 Parameterized constructor.
virtual ~Action ()=default
 Default destructor.

Additional Inherited Members

Protected Member Functions inherited from todo::Action
Taskfind_task ()
 Finds specified task.
Protected Attributes inherited from todo::Action
Modelmodel_ {nullptr}
 Model to perform actions on.
std::vector< u64exe_path_
 Path of execution.

Constructor & Destructor Documentation

◆ PriorityChangeAction()

todo::PriorityChangeAction::PriorityChangeAction ( Model & model,
std::vector< u64 > && path,
u16 new_priority )

Parameterized constructor.

Parameters
modelReference to the model to work with.
pathR-value reference to the path of action.
new_priorityThe new priority to be assigned to task.

Member Function Documentation

◆ execute()

void todo::PriorityChangeAction::execute ( )
overridevirtual

execute action.

Implements todo::Action.

◆ undo()

void todo::PriorityChangeAction::undo ( )
overridevirtual

undo action.

Implements todo::Action.


The documentation for this class was generated from the following files: