KMyMoneyAccountTreeItem Class Reference

#include <kmymoneyaccounttree.h>

Inheritance diagram for KMyMoneyAccountTreeItem:

KMyMoneyAccountTreeBaseItem KListViewItem
Collaboration diagram for KMyMoneyAccountTreeItem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KMyMoneyAccountTreeItem (KListView *parent, const MyMoneyInstitution &institution)
 KMyMoneyAccountTreeItem (KListView *parent, const MyMoneyAccount &account, const MyMoneySecurity &security=MyMoneySecurity(), const QString &name=QString())
 KMyMoneyAccountTreeItem (KMyMoneyAccountTreeBaseItem *parent, const MyMoneyAccount &account, const QValueList< MyMoneyPrice > &price=QValueList< MyMoneyPrice >(), const MyMoneySecurity &security=MyMoneySecurity())
void setReconciliation (bool)

Protected Member Functions

MyMoneyMoney balance () const
void fillColumns ()

Protected Attributes

bool m_reconcileFlag


Constructor & Destructor Documentation

KMyMoneyAccountTreeItem::KMyMoneyAccountTreeItem ( KListView parent,
const MyMoneyInstitution institution 
)

Constructor to be used to construct an institution entry object.

Parameters:
parent pointer to the KListView object this entry should be added to.
institution const reference to MyMoneyInstitution for which the KListView entry is constructed

KMyMoneyAccountTreeItem::KMyMoneyAccountTreeItem ( KListView parent,
const MyMoneyAccount account,
const MyMoneySecurity security = MyMoneySecurity(),
const QString &  name = QString() 
)

Constructor to be used to construct a standard account entry object (e.g. Asset, Liability, etc.).

Parameters:
parent pointer to the KListView object this entry should be added to.
account const reference to MyMoneyAccount for which the KListView entry is constructed
security const reference to the security used to show the value. Usually one should pass MyMoneyFile::baseCurrency() here.
name name of the account to be used instead of the one stored with account If empty, the one stored with account will be used. Default: empty

KMyMoneyAccountTreeItem::KMyMoneyAccountTreeItem ( KMyMoneyAccountTreeBaseItem parent,
const MyMoneyAccount account,
const QValueList< MyMoneyPrice > &  price = QValueListMyMoneyPrice >(),
const MyMoneySecurity security = MyMoneySecurity() 
)

Constructor to be used to construct an account entry object.

Parameters:
parent pointer to the parent KAccountListView object this entry should be added to.
account const reference to MyMoneyAccount for which the KListView entry is constructed
price price to be used to calculate value (defaults to 1) This is used for accounts denominated in foreign currencies or stocks
security const reference to the security used to show the value. Usually one should pass MyMoneyFile::baseCurrency() here.


Member Function Documentation

void KMyMoneyAccountTreeItem::setReconciliation ( bool   ) 

MyMoneyMoney KMyMoneyAccountTreeItem::balance (  )  const [protected, virtual]

Returns the current balance of this account.

This is a pure virtual function, to allow subclasses to calculate the balance in different ways.

Parent items in the tree will only be recomputed if the balance() for a son changes.

Parameters:
account Account to get the balance for
Returns:
Balance of this account

Implements KMyMoneyAccountTreeBaseItem.

void KMyMoneyAccountTreeItem::fillColumns (  )  [protected, virtual]

populates the columns. Derived classes should override this. The name column is already filled and should not be changed.

Reimplemented from KMyMoneyAccountTreeBaseItem.


Member Data Documentation


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

Generated on Wed Jan 26 13:07:54 2011 for KMyMoney by  doxygen 1.5.6