#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::CalendarAddDayCmd:
Public Member Functions | |
CalendarAddDayCmd (Part *part, Calendar *cal, CalendarDay *newvalue, QString name=0) | |
~CalendarAddDayCmd () | |
void | execute () |
void | unexecute () |
Protected Attributes | |
Calendar * | m_cal |
CalendarDay * | m_newvalue |
bool | m_mine |
Definition at line 124 of file kptcommand.h.
KPlato::CalendarAddDayCmd::CalendarAddDayCmd | ( | Part * | part, | |
Calendar * | cal, | |||
CalendarDay * | newvalue, | |||
QString | name = 0 | |||
) |
Definition at line 211 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), KPlato::Part::getProject(), m_newvalue, and KPlato::Node::schedules().
KPlato::CalendarAddDayCmd::~CalendarAddDayCmd | ( | ) |
void KPlato::CalendarAddDayCmd::execute | ( | ) |
Definition at line 232 of file kptcommand.cc.
References KPlato::Calendar::addDay(), m_cal, m_mine, m_newvalue, KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::CalendarAddDayCmd::unexecute | ( | ) |
Definition at line 240 of file kptcommand.cc.
References m_cal, m_mine, m_newvalue, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Calendar::takeDay().
Calendar* KPlato::CalendarAddDayCmd::m_cal [protected] |
CalendarDay* KPlato::CalendarAddDayCmd::m_newvalue [protected] |
Definition at line 134 of file kptcommand.h.
Referenced by CalendarAddDayCmd(), execute(), unexecute(), and ~CalendarAddDayCmd().
bool KPlato::CalendarAddDayCmd::m_mine [protected] |
Definition at line 135 of file kptcommand.h.
Referenced by execute(), unexecute(), and ~CalendarAddDayCmd().