#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyResourceCalendarCmd:
Public Member Functions | |
ModifyResourceCalendarCmd (Part *part, Resource *resource, Calendar *value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Resource * | m_resource |
Calendar * | m_newvalue |
Calendar * | m_oldvalue |
Definition at line 717 of file kptcommand.h.
KPlato::ModifyResourceCalendarCmd::ModifyResourceCalendarCmd | ( | Part * | part, | |
Resource * | resource, | |||
Calendar * | value, | |||
QString | name = 0 | |||
) |
Definition at line 1475 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), KPlato::Resource::calendar(), m_oldvalue, and KPlato::Resource::schedules().
void KPlato::ModifyResourceCalendarCmd::execute | ( | ) |
Definition at line 1486 of file kptcommand.cc.
References m_newvalue, m_resource, KPlato::Resource::setCalendar(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::ModifyResourceCalendarCmd::unexecute | ( | ) |
Definition at line 1492 of file kptcommand.cc.
References m_oldvalue, m_resource, KPlato::Resource::setCalendar(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
Definition at line 727 of file kptcommand.h.
Referenced by ModifyResourceCalendarCmd(), and unexecute().