#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::AddAccountCmd:
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 | |
Project & | m_project |
Account * | m_account |
Account * | m_parent |
QString | m_parentName |
Definition at line 778 of file kptcommand.h.
KPlato::AddAccountCmd::~AddAccountCmd | ( | ) |
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().
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] |
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] |
QString KPlato::AddAccountCmd::m_parentName [private] |