KPlato::ModifyResourceAvailableFromCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyResourceAvailableFromCmd:

[legend]
List of all members.

Public Member Functions

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

Private Attributes

Resourcem_resource
DateTime m_newvalue
DateTime m_oldvalue

Detailed Description

Definition at line 668 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::ModifyResourceAvailableFromCmd::ModifyResourceAvailableFromCmd ( Part part,
Resource resource,
DateTime  value,
QString  name = 0 
)

Definition at line 1364 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), KPlato::Resource::availableFrom(), KPlato::Node::findSchedule(), KPlato::Schedule::id(), m_oldvalue, KPlato::Resource::project(), KPlato::Resource::schedules(), and KPlato::Schedule::start().


Member Function Documentation

void KPlato::ModifyResourceAvailableFromCmd::execute (  ) 

Definition at line 1387 of file kptcommand.cc.

References m_newvalue, m_resource, KPlato::Resource::setAvailableFrom(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::ModifyResourceAvailableFromCmd::unexecute (  ) 

Definition at line 1393 of file kptcommand.cc.

References m_oldvalue, m_resource, KPlato::Resource::setAvailableFrom(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

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

Definition at line 676 of file kptcommand.h.

Referenced by execute(), and unexecute().

DateTime KPlato::ModifyResourceAvailableFromCmd::m_newvalue [private]

Definition at line 677 of file kptcommand.h.

Referenced by execute().

DateTime KPlato::ModifyResourceAvailableFromCmd::m_oldvalue [private]

Definition at line 678 of file kptcommand.h.

Referenced by ModifyResourceAvailableFromCmd(), 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