#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::RemoveAccountCmd:
Public Member Functions | |
RemoveAccountCmd (Part *part, Project &project, Account *account, QString name=0) | |
~RemoveAccountCmd () | |
void | execute () |
void | unexecute () |
Private Attributes | |
Project & | m_project |
Account * | m_account |
bool | m_isDefault |
bool | m_mine |
Definition at line 797 of file kptcommand.h.
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 | ( | ) |
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().
Project& KPlato::RemoveAccountCmd::m_project [private] |
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().