KPlato::ModifyResourceCalendarCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyResourceCalendarCmd:

[legend]
List of all members.

Public Member Functions

 ModifyResourceCalendarCmd (Part *part, Resource *resource, Calendar *value, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Resourcem_resource
Calendarm_newvalue
Calendarm_oldvalue

Detailed Description

Definition at line 717 of file kptcommand.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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().


Member Data Documentation

Resource* KPlato::ModifyResourceCalendarCmd::m_resource [private]

Definition at line 725 of file kptcommand.h.

Referenced by execute(), and unexecute().

Calendar* KPlato::ModifyResourceCalendarCmd::m_newvalue [private]

Definition at line 726 of file kptcommand.h.

Referenced by execute().

Calendar* KPlato::ModifyResourceCalendarCmd::m_oldvalue [private]

Definition at line 727 of file kptcommand.h.

Referenced by ModifyResourceCalendarCmd(), and unexecute().


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