SetTaskSubmissionCommand.h header
#include <ew/core/SetTaskSubmissionCommand.h>
Namespace ew::core
SetTaskSubmissionCommand class
class ew::core::SetTaskSubmissionCommand
Command that sets a task's submission-pipeline details (recipient, kind, submitted date and notes). Undo restores the previous details and redo re-applies the new ones.
Members
ew::core::SetTaskSubmissionCommand::SetTaskSubmissionCommand(Task &task, SubmissionInfo submission)
Creates a command that sets task's submission details to submission when applied.
ew::core::SetTaskSubmissionCommand::~SetTaskSubmissionCommand() override
Destroys the command.
void ew::core::SetTaskSubmissionCommand::apply() override
Records the current submission details and sets the new ones.
void ew::core::SetTaskSubmissionCommand::undo() override
Restores the previous submission details.
QString ew::core::SetTaskSubmissionCommand::description() const override
Returns a short description for the undo/redo UI.