KPlato::Account::CostPlace Class Reference

#include <kptaccount.h>

List of all members.

Public Member Functions

 CostPlace ()
 CostPlace (Account *acc)
 CostPlace (Account *acc, Node *node, bool running=false, bool strtup=false, bool shutdown=false)
 CostPlace (CostPlace *cp)
 ~CostPlace ()
bool isEmpty ()
Nodenode () const
bool running () const
void setRunning (bool on)
bool startup () const
void setStartup (bool on)
bool shutdown () const
void setShutdown (bool on)
bool load (QDomElement &element, Project &project)
void save (QDomElement &element) const

Private Attributes

Accountm_account
QString m_nodeId
Nodem_node
bool m_running
bool m_startup
bool m_shutdown


Detailed Description

Definition at line 97 of file kptaccount.h.


Constructor & Destructor Documentation

KPlato::Account::CostPlace::CostPlace (  )  [inline]

Definition at line 99 of file kptaccount.h.

KPlato::Account::CostPlace::CostPlace ( Account acc  )  [inline]

Definition at line 102 of file kptaccount.h.

KPlato::Account::CostPlace::CostPlace ( Account acc,
Node node,
bool  running = false,
bool  strtup = false,
bool  shutdown = false 
) [inline]

Definition at line 105 of file kptaccount.h.

References node(), running(), setRunning(), setShutdown(), setStartup(), and shutdown().

KPlato::Account::CostPlace::CostPlace ( CostPlace cp  )  [inline]

Definition at line 113 of file kptaccount.h.

References m_account, m_node, m_nodeId, m_running, m_shutdown, and m_startup.

KPlato::Account::CostPlace::~CostPlace (  ) 

Definition at line 263 of file kptaccount.cc.

References m_node, m_running, m_shutdown, m_startup, KPlato::Node::setRunningAccount(), KPlato::Node::setShutdownAccount(), and KPlato::Node::setStartupAccount().


Member Function Documentation

bool KPlato::Account::CostPlace::isEmpty (  )  [inline]

Definition at line 123 of file kptaccount.h.

References m_running, m_shutdown, and m_startup.

Referenced by KPlato::Account::removeRunning(), KPlato::Account::removeShutdown(), and KPlato::Account::removeStartup().

Node* KPlato::Account::CostPlace::node (  )  const [inline]

Definition at line 124 of file kptaccount.h.

References m_node.

Referenced by CostPlace(), KPlato::Account::findCostPlace(), and KPlato::Accounts::plannedCost().

bool KPlato::Account::CostPlace::running (  )  const [inline]

Definition at line 126 of file kptaccount.h.

References m_running.

Referenced by CostPlace(), KPlato::Account::findRunning(), and KPlato::Accounts::plannedCost().

void KPlato::Account::CostPlace::setRunning ( bool  on  ) 

Definition at line 274 of file kptaccount.cc.

References m_account, m_node, m_running, and KPlato::Node::setRunningAccount().

Referenced by KPlato::Account::addRunning(), CostPlace(), load(), and KPlato::Account::removeRunning().

bool KPlato::Account::CostPlace::startup (  )  const [inline]

Definition at line 128 of file kptaccount.h.

References m_startup.

Referenced by KPlato::Account::findStartup(), and KPlato::Accounts::plannedCost().

void KPlato::Account::CostPlace::setStartup ( bool  on  ) 

Definition at line 280 of file kptaccount.cc.

References m_account, m_node, m_startup, and KPlato::Node::setStartupAccount().

Referenced by KPlato::Account::addStartup(), CostPlace(), load(), and KPlato::Account::removeStartup().

bool KPlato::Account::CostPlace::shutdown (  )  const [inline]

Definition at line 130 of file kptaccount.h.

References m_shutdown.

Referenced by CostPlace(), KPlato::Account::findShutdown(), and KPlato::Accounts::plannedCost().

void KPlato::Account::CostPlace::setShutdown ( bool  on  ) 

Definition at line 286 of file kptaccount.cc.

References m_account, m_node, m_shutdown, and KPlato::Node::setShutdownAccount().

Referenced by KPlato::Account::addShutdown(), CostPlace(), load(), and KPlato::Account::removeShutdown().

bool KPlato::Account::CostPlace::load ( QDomElement &  element,
Project project 
)

Definition at line 292 of file kptaccount.cc.

References KPlato::Project::findNode(), m_node, m_nodeId, setRunning(), setShutdown(), and setStartup().

void KPlato::Account::CostPlace::save ( QDomElement &  element  )  const

Definition at line 310 of file kptaccount.cc.

References m_nodeId, m_running, m_shutdown, and m_startup.

Referenced by KPlato::Account::save().


Member Data Documentation

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

Definition at line 137 of file kptaccount.h.

Referenced by CostPlace(), setRunning(), setShutdown(), and setStartup().

QString KPlato::Account::CostPlace::m_nodeId [private]

Definition at line 138 of file kptaccount.h.

Referenced by CostPlace(), load(), and save().

Node* KPlato::Account::CostPlace::m_node [private]

Definition at line 139 of file kptaccount.h.

Referenced by CostPlace(), load(), node(), setRunning(), setShutdown(), setStartup(), and ~CostPlace().

bool KPlato::Account::CostPlace::m_running [private]

Definition at line 140 of file kptaccount.h.

Referenced by CostPlace(), isEmpty(), running(), save(), setRunning(), and ~CostPlace().

bool KPlato::Account::CostPlace::m_startup [private]

Definition at line 141 of file kptaccount.h.

Referenced by CostPlace(), isEmpty(), save(), setStartup(), startup(), and ~CostPlace().

bool KPlato::Account::CostPlace::m_shutdown [private]

Definition at line 142 of file kptaccount.h.

Referenced by CostPlace(), isEmpty(), save(), setShutdown(), shutdown(), and ~CostPlace().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:43 2006 for KPlato by  doxygen 1.5.1-p1