KPlato::CalendarAddCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::CalendarAddCmd:

[legend]
List of all members.

Public Member Functions

 CalendarAddCmd (Part *part, Project *project, Calendar *cal, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Projectm_project
Calendarm_cal
bool m_added

Detailed Description

Definition at line 74 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::CalendarAddCmd::CalendarAddCmd ( Part part,
Project project,
Calendar cal,
QString  name = 0 
)

Definition at line 104 of file kptcommand.cc.

References KPlato::Calendar::setDeleted().


Member Function Documentation

void KPlato::CalendarAddCmd::execute (  ) 

Definition at line 114 of file kptcommand.cc.

References KPlato::Project::addCalendar(), m_added, m_cal, m_project, KPlato::NamedCommand::setCommandType(), and KPlato::Calendar::setDeleted().

void KPlato::CalendarAddCmd::unexecute (  ) 

Definition at line 126 of file kptcommand.cc.

References m_cal, KPlato::NamedCommand::setCommandType(), and KPlato::Calendar::setDeleted().


Member Data Documentation

Project* KPlato::CalendarAddCmd::m_project [private]

Definition at line 82 of file kptcommand.h.

Referenced by execute().

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

Definition at line 83 of file kptcommand.h.

Referenced by execute(), and unexecute().

bool KPlato::CalendarAddCmd::m_added [private]

Definition at line 84 of file kptcommand.h.

Referenced by execute().


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