KPlato::RemoveAccountCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::RemoveAccountCmd:

[legend]
List of all members.

Public Member Functions

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

Private Attributes

Projectm_project
Accountm_account
bool m_isDefault
bool m_mine

Detailed Description

Definition at line 797 of file kptcommand.h.


Constructor & Destructor Documentation

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

Definition at line 1649 of file kptcommand.cc.

References KPlato::Project::accounts(), KPlato::Accounts::defaultAccount(), m_isDefault, and m_mine.

KPlato::RemoveAccountCmd::~RemoveAccountCmd (  ) 

Definition at line 1658 of file kptcommand.cc.

References m_account, and m_mine.


Member Function Documentation

void KPlato::RemoveAccountCmd::execute (  ) 

Definition at line 1664 of file kptcommand.cc.

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

void KPlato::RemoveAccountCmd::unexecute (  ) 

Definition at line 1677 of file kptcommand.cc.

References KPlato::Project::accounts(), KPlato::Accounts::append(), KPlato::Account::append(), m_account, m_isDefault, m_mine, m_project, KPlato::Account::parent(), KPlato::NamedCommand::setCommandType(), and KPlato::Accounts::setDefaultAccount().


Member Data Documentation

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

Definition at line 806 of file kptcommand.h.

Referenced by execute(), and unexecute().

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

Definition at line 807 of file kptcommand.h.

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

bool KPlato::RemoveAccountCmd::m_isDefault [private]

Definition at line 808 of file kptcommand.h.

Referenced by execute(), RemoveAccountCmd(), and unexecute().

bool KPlato::RemoveAccountCmd::m_mine [private]

Definition at line 809 of file kptcommand.h.

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


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