kplato

KPlato::Accounts Class Reference

#include <kptaccount.h>

Public Member Functions

 Accounts (Project &project)
Account * defaultAccount () const
void setDefaultAccount (Account *account)
EffortCostMap plannedCost (const Account &account, const TQDate &start, const TQDate &end)
void clear ()
void append (Account *account)
void take (Account *account)
bool load (TQDomElement &element, const Project &project)
void save (TQDomElement &element) const
TQStringList costElements () const
TQStringList nameList () const
const AccountList & accountList () const
Account * findRunningAccount (const Node &node) const
Account * findStartupAccount (const Node &node) const
Account * findShutdownAccount (const Node &node) const
Account * findAccount (const TQString &id) const
bool insertId (const Account *account)
bool removeId (const TQString &id)
void accountDeleted (Account *account)
void printDebug (TQString indent)

Detailed Description

Accounts administrates all accounts.

Definition at line 179 of file kptaccount.h.

Constructor & Destructor Documentation

◆ Accounts()

KPlato::Accounts::Accounts ( Project & project)

Definition at line 313 of file kptaccount.cpp.

◆ ~Accounts()

KPlato::Accounts::~Accounts ( )

Definition at line 322 of file kptaccount.cpp.

Member Function Documentation

◆ accountDeleted()

void KPlato::Accounts::accountDeleted ( Account * account)
inline

Definition at line 209 of file kptaccount.h.

◆ accountList()

const AccountList & KPlato::Accounts::accountList ( ) const
inline

Definition at line 200 of file kptaccount.h.

◆ append()

void KPlato::Accounts::append ( Account * account)

Definition at line 371 of file kptaccount.cpp.

◆ clear()

void KPlato::Accounts::clear ( )
inline

Definition at line 190 of file kptaccount.h.

◆ costElements()

TQStringList KPlato::Accounts::costElements ( ) const

Definition at line 432 of file kptaccount.cpp.

◆ defaultAccount()

Account * KPlato::Accounts::defaultAccount ( ) const
inline

Definition at line 185 of file kptaccount.h.

◆ findAccount()

Account * KPlato::Accounts::findAccount ( const TQString & id) const

Definition at line 479 of file kptaccount.cpp.

◆ findRunningAccount()

Account * KPlato::Accounts::findRunningAccount ( const Node & node) const

Definition at line 452 of file kptaccount.cpp.

◆ findShutdownAccount()

Account * KPlato::Accounts::findShutdownAccount ( const Node & node) const

Definition at line 470 of file kptaccount.cpp.

◆ findStartupAccount()

Account * KPlato::Accounts::findStartupAccount ( const Node & node) const

Definition at line 461 of file kptaccount.cpp.

◆ insertId()

bool KPlato::Accounts::insertId ( const Account * account)

Definition at line 483 of file kptaccount.cpp.

◆ load()

bool KPlato::Accounts::load ( TQDomElement & element,
const Project & project )

Definition at line 394 of file kptaccount.cpp.

◆ nameList()

TQStringList KPlato::Accounts::nameList ( ) const

Definition at line 443 of file kptaccount.cpp.

◆ plannedCost()

EffortCostMap KPlato::Accounts::plannedCost ( const Account & account,
const TQDate & start,
const TQDate & end )

Definition at line 326 of file kptaccount.cpp.

◆ printDebug()

void KPlato::Accounts::printDebug ( TQString indent)

Definition at line 507 of file kptaccount.cpp.

◆ removeId()

bool KPlato::Accounts::removeId ( const TQString & id)

Definition at line 500 of file kptaccount.cpp.

◆ save()

void KPlato::Accounts::save ( TQDomElement & element) const

Definition at line 420 of file kptaccount.cpp.

◆ setDefaultAccount()

void KPlato::Accounts::setDefaultAccount ( Account * account)
inline

Definition at line 186 of file kptaccount.h.

◆ take()

void KPlato::Accounts::take ( Account * account)

Definition at line 381 of file kptaccount.cpp.


The documentation for this class was generated from the following files: