#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::CalendarRemoveDayCmd:
Public Member Functions | |
CalendarRemoveDayCmd (Part *part, Calendar *cal, const QDate &day, QString name=0) | |
void | execute () |
void | unexecute () |
Protected Attributes | |
Calendar * | m_cal |
CalendarDay * | m_value |
bool | m_mine |
Definition at line 138 of file kptcommand.h.
KPlato::CalendarRemoveDayCmd::CalendarRemoveDayCmd | ( | Part * | part, | |
Calendar * | cal, | |||
const QDate & | day, | |||
QString | name = 0 | |||
) |
Definition at line 249 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), KPlato::Calendar::findDay(), KPlato::Part::getProject(), m_value, and KPlato::Node::schedules().
void KPlato::CalendarRemoveDayCmd::execute | ( | ) |
Definition at line 264 of file kptcommand.cc.
References m_cal, m_mine, m_value, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Calendar::takeDay().
void KPlato::CalendarRemoveDayCmd::unexecute | ( | ) |
Definition at line 272 of file kptcommand.cc.
References KPlato::Calendar::addDay(), m_cal, m_mine, m_value, KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
Calendar* KPlato::CalendarRemoveDayCmd::m_cal [protected] |
CalendarDay* KPlato::CalendarRemoveDayCmd::m_value [protected] |
Definition at line 147 of file kptcommand.h.
Referenced by CalendarRemoveDayCmd(), execute(), and unexecute().
bool KPlato::CalendarRemoveDayCmd::m_mine [protected] |