KPlato::CalendarModifyDayCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::CalendarModifyDayCmd:

[legend]
List of all members.

Public Member Functions

 CalendarModifyDayCmd (Part *part, Calendar *cal, CalendarDay *value, QString name=0)
 ~CalendarModifyDayCmd ()
void execute ()
void unexecute ()

Private Attributes

Calendarm_cal
CalendarDaym_newvalue
CalendarDaym_oldvalue
bool m_mine

Detailed Description

Definition at line 151 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::CalendarModifyDayCmd::CalendarModifyDayCmd ( Part part,
Calendar cal,
CalendarDay value,
QString  name = 0 
)

Definition at line 281 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), KPlato::CalendarDay::date(), KPlato::Calendar::findDay(), KPlato::Part::getProject(), m_newvalue, m_oldvalue, and KPlato::Node::schedules().

KPlato::CalendarModifyDayCmd::~CalendarModifyDayCmd (  ) 

Definition at line 297 of file kptcommand.cc.

References m_mine, m_newvalue, and m_oldvalue.


Member Function Documentation

void KPlato::CalendarModifyDayCmd::execute (  ) 

Definition at line 306 of file kptcommand.cc.

References KPlato::Calendar::addDay(), m_cal, m_mine, m_newvalue, m_oldvalue, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Calendar::takeDay().

void KPlato::CalendarModifyDayCmd::unexecute (  ) 

Definition at line 315 of file kptcommand.cc.

References KPlato::Calendar::addDay(), m_cal, m_mine, m_newvalue, m_oldvalue, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Calendar::takeDay().


Member Data Documentation

Calendar* KPlato::CalendarModifyDayCmd::m_cal [private]

Definition at line 160 of file kptcommand.h.

Referenced by execute(), and unexecute().

CalendarDay* KPlato::CalendarModifyDayCmd::m_newvalue [private]

Definition at line 161 of file kptcommand.h.

Referenced by CalendarModifyDayCmd(), execute(), unexecute(), and ~CalendarModifyDayCmd().

CalendarDay* KPlato::CalendarModifyDayCmd::m_oldvalue [private]

Definition at line 162 of file kptcommand.h.

Referenced by CalendarModifyDayCmd(), execute(), unexecute(), and ~CalendarModifyDayCmd().

bool KPlato::CalendarModifyDayCmd::m_mine [private]

Definition at line 163 of file kptcommand.h.

Referenced by execute(), unexecute(), and ~CalendarModifyDayCmd().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:45 2006 for KPlato by  doxygen 1.5.1-p1