KPlato::AddAccountCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::AddAccountCmd:

[legend]
List of all members.

Public Member Functions

 AddAccountCmd (Part *part, Project &project, Account *account, Account *parent=0, QString name=0)
 AddAccountCmd (Part *part, Project &project, Account *account, QString parent, QString name=0)
 ~AddAccountCmd ()
void execute ()
void unexecute ()

Protected Attributes

bool m_mine

Private Attributes

Projectm_project
Accountm_account
Accountm_parent
QString m_parentName

Detailed Description

Definition at line 778 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::AddAccountCmd::AddAccountCmd ( Part part,
Project project,
Account account,
Account parent = 0,
QString  name = 0 
)

Definition at line 1610 of file kptcommand.cc.

References m_mine.

KPlato::AddAccountCmd::AddAccountCmd ( Part part,
Project project,
Account account,
QString  parent,
QString  name = 0 
)

Definition at line 1600 of file kptcommand.cc.

References m_mine.

KPlato::AddAccountCmd::~AddAccountCmd (  ) 

Definition at line 1619 of file kptcommand.cc.

References m_account, and m_mine.


Member Function Documentation

void KPlato::AddAccountCmd::execute (  ) 

Definition at line 1625 of file kptcommand.cc.

References KPlato::Project::accounts(), KPlato::Accounts::append(), KPlato::Account::append(), KPlato::Accounts::findAccount(), m_account, m_mine, m_parent, m_parentName, m_project, and KPlato::NamedCommand::setCommandType().

void KPlato::AddAccountCmd::unexecute (  ) 

Definition at line 1638 of file kptcommand.cc.

References KPlato::Project::accounts(), m_account, m_mine, m_parent, m_project, KPlato::NamedCommand::setCommandType(), KPlato::Accounts::take(), and KPlato::Account::take().


Member Data Documentation

bool KPlato::AddAccountCmd::m_mine [protected]

Definition at line 788 of file kptcommand.h.

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

Project& KPlato::AddAccountCmd::m_project [private]

Definition at line 791 of file kptcommand.h.

Referenced by execute(), and unexecute().

Account* KPlato::AddAccountCmd::m_account [private]

Definition at line 792 of file kptcommand.h.

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

Account* KPlato::AddAccountCmd::m_parent [private]

Definition at line 793 of file kptcommand.h.

Referenced by execute(), and unexecute().

QString KPlato::AddAccountCmd::m_parentName [private]

Definition at line 794 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:47 2006 for KPlato by  doxygen 1.5.1-p1