kplato

KPlato::Account Class Reference

#include <kptaccount.h>

Public Member Functions

 Account ()
 Account (TQString name, TQString description=TQString())
 ~Account ()
TQString name () const
void setName (TQString name)
TQString description () const
void setDescription (TQString desc)
bool isElement () const
Accounts * list () const
void setList (Accounts *list)
Account * parent () const
void setParent (Account *parent)
void clear ()
void append (Account *account)
void take (Account *account)
void insertChildren ()
bool load (TQDomElement &element, const Project &project)
void save (TQDomElement &element) const
const TQPtrList< Account > & accountList () const
Account * findAccount () const
Account * findAccount (const TQString &id) const
bool removeId ()
bool removeId (const TQString &id)
bool insertId ()
bool insertId (const Account *account)
void append (const CostPlace *cp)
const TQPtrList< CostPlace > & costPlaces () const
Account::CostPlace * findCostPlace (const Node &node) const
CostPlace * findRunning (const Node &node) const
void removeRunning (const Node &node)
void addRunning (Node &node)
CostPlace * findStartup (const Node &node) const
void removeStartup (const Node &node)
void addStartup (Node &node)
CostPlace * findShutdown (const Node &node) const
void removeShutdown (const Node &node)
void addShutdown (Node &node)
void printDebug (TQString indent)

Detailed Description

Account holds one account.

An account can have any number of sub-accounts. Account names must be unique.

Definition at line 48 of file kptaccount.h.

Constructor & Destructor Documentation

◆ Account() [1/2]

KPlato::Account::Account ( )

Constructor.

Definition at line 34 of file kptaccount.cpp.

◆ Account() [2/2]

KPlato::Account::Account ( TQString name,
TQString description = TQString() )

Definition at line 46 of file kptaccount.cpp.

◆ ~Account()

KPlato::Account::~Account ( )

Destructor.

Definition at line 58 of file kptaccount.cpp.

Member Function Documentation

◆ accountList()

const TQPtrList< Account > & KPlato::Account::accountList ( ) const
inline

Definition at line 88 of file kptaccount.h.

◆ addRunning()

void KPlato::Account::addRunning ( Node & node)

Definition at line 177 of file kptaccount.cpp.

◆ addShutdown()

void KPlato::Account::addShutdown ( Node & node)

Definition at line 226 of file kptaccount.cpp.

◆ addStartup()

void KPlato::Account::addStartup ( Node & node)

Definition at line 201 of file kptaccount.cpp.

◆ append() [1/2]

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

Definition at line 76 of file kptaccount.cpp.

◆ append() [2/2]

void KPlato::Account::append ( const CostPlace * cp)
inline

Definition at line 145 of file kptaccount.h.

◆ clear()

void KPlato::Account::clear ( )
inline

Definition at line 80 of file kptaccount.h.

◆ costPlaces()

const TQPtrList< CostPlace > & KPlato::Account::costPlaces ( ) const
inline

Definition at line 146 of file kptaccount.h.

◆ description()

TQString KPlato::Account::description ( ) const
inline

Definition at line 71 of file kptaccount.h.

◆ findAccount() [1/2]

Account * KPlato::Account::findAccount ( ) const
inline

Definition at line 90 of file kptaccount.h.

◆ findAccount() [2/2]

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

Definition at line 235 of file kptaccount.cpp.

◆ findCostPlace()

Account::CostPlace * KPlato::Account::findCostPlace ( const Node & node) const

Definition at line 152 of file kptaccount.cpp.

◆ findRunning()

Account::CostPlace * KPlato::Account::findRunning ( const Node & node) const

Definition at line 162 of file kptaccount.cpp.

◆ findShutdown()

Account::CostPlace * KPlato::Account::findShutdown ( const Node & node) const

Definition at line 211 of file kptaccount.cpp.

◆ findStartup()

Account::CostPlace * KPlato::Account::findStartup ( const Node & node) const

Definition at line 186 of file kptaccount.cpp.

◆ insertChildren()

void KPlato::Account::insertChildren ( )

Definition at line 84 of file kptaccount.cpp.

◆ insertId() [1/2]

bool KPlato::Account::insertId ( )

Definition at line 245 of file kptaccount.cpp.

◆ insertId() [2/2]

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

Definition at line 249 of file kptaccount.cpp.

◆ isElement()

bool KPlato::Account::isElement ( ) const
inline

Definition at line 74 of file kptaccount.h.

◆ list()

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

Definition at line 76 of file kptaccount.h.

◆ load()

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

Definition at line 108 of file kptaccount.cpp.

◆ name()

TQString KPlato::Account::name ( ) const
inline

Definition at line 68 of file kptaccount.h.

◆ parent()

Account * KPlato::Account::parent ( ) const
inline

Definition at line 78 of file kptaccount.h.

◆ printDebug()

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

Definition at line 509 of file kptaccount.cpp.

◆ removeId() [1/2]

bool KPlato::Account::removeId ( )
inline

Definition at line 92 of file kptaccount.h.

◆ removeId() [2/2]

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

Definition at line 241 of file kptaccount.cpp.

◆ removeRunning()

void KPlato::Account::removeRunning ( const Node & node)

Definition at line 167 of file kptaccount.cpp.

◆ removeShutdown()

void KPlato::Account::removeShutdown ( const Node & node)

Definition at line 216 of file kptaccount.cpp.

◆ removeStartup()

void KPlato::Account::removeStartup ( const Node & node)

Definition at line 191 of file kptaccount.cpp.

◆ save()

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

Definition at line 137 of file kptaccount.cpp.

◆ setDescription()

void KPlato::Account::setDescription ( TQString desc)
inline

Definition at line 72 of file kptaccount.h.

◆ setList()

void KPlato::Account::setList ( Accounts * list)
inline

Definition at line 77 of file kptaccount.h.

◆ setName()

void KPlato::Account::setName ( TQString name)

Definition at line 68 of file kptaccount.cpp.

◆ setParent()

void KPlato::Account::setParent ( Account * parent)
inline

Definition at line 79 of file kptaccount.h.

◆ take()

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

Definition at line 94 of file kptaccount.cpp.


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