MyMoneyBudget::AccountGroup Class Reference

#include <mymoneybudget.h>

Collaboration diagram for MyMoneyBudget::AccountGroup:

Collaboration graph

List of all members.

Public Types

enum  eBudgetLevel {
  eNone = 0, eMonthly, eMonthByMonth, eYearly,

Public Member Functions

 AccountGroup ()
const QString & id (void) const
bool budgetSubaccounts (void) const
eBudgetLevel budgetLevel (void) const
const PeriodGroupperiod (const QDate &_date) const
const QMap< QDate, PeriodGroup > & getPeriods (void) const
void clearPeriods (void)
const MyMoneyMoney balance (void) const
const MyMoneyMoney totalBalance (void) const
void setId (QString _id)
void setBudgetLevel (eBudgetLevel _level)
void setBudgetSubaccounts (bool _b)
void addPeriod (const QDate &_date, PeriodGroup &period)
AccountGroup operator+= (const AccountGroup &r)
bool operator== (const AccountGroup &r) const
bool isZero (void) const

Static Public Attributes

static const QStringList kBudgetLevelText

Protected Member Functions

void convertToMonthly (void)
void convertToYearly (void)
void convertToMonthByMonth (void)

Private Attributes

QString m_id
eBudgetLevel m_budgetlevel
bool m_budgetsubaccounts
QMap< QDate, PeriodGroupm_periods

Detailed Description

Helper class for MyMoneyBudget

This is an abstraction of the Account Data stored in the BUDGET tag in XML

Darren Gould

Member Enumeration Documentation


Constructor & Destructor Documentation

MyMoneyBudget::AccountGroup::AccountGroup (  )  [inline]

Member Function Documentation

const QString& MyMoneyBudget::AccountGroup::id ( void   )  const [inline]

bool MyMoneyBudget::AccountGroup::budgetSubaccounts ( void   )  const [inline]

eBudgetLevel MyMoneyBudget::AccountGroup::budgetLevel ( void   )  const [inline]

const PeriodGroup& MyMoneyBudget::AccountGroup::period ( const QDate &  _date  )  const [inline]

const QMap<QDate, PeriodGroup>& MyMoneyBudget::AccountGroup::getPeriods ( void   )  const [inline]

void MyMoneyBudget::AccountGroup::clearPeriods ( void   )  [inline]

const MyMoneyMoney MyMoneyBudget::AccountGroup::balance ( void   )  const [inline]

const MyMoneyMoney MyMoneyBudget::AccountGroup::totalBalance ( void   )  const [inline]

void MyMoneyBudget::AccountGroup::setId ( QString  _id  )  [inline]

void MyMoneyBudget::AccountGroup::setBudgetLevel ( eBudgetLevel  _level  )  [inline]

void MyMoneyBudget::AccountGroup::setBudgetSubaccounts ( bool  _b  )  [inline]

void MyMoneyBudget::AccountGroup::addPeriod ( const QDate &  _date,
PeriodGroup period 
) [inline]

AccountGroup MyMoneyBudget::AccountGroup::operator+= ( const AccountGroup r  ) 

bool MyMoneyBudget::AccountGroup::operator== ( const AccountGroup r  )  const

bool MyMoneyBudget::AccountGroup::isZero ( void   )  const

void MyMoneyBudget::AccountGroup::convertToMonthly ( void   )  [protected]

void MyMoneyBudget::AccountGroup::convertToYearly ( void   )  [protected]

void MyMoneyBudget::AccountGroup::convertToMonthByMonth ( void   )  [protected]

Member Data Documentation

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

Generated on Wed Jan 26 13:09:11 2011 for KMyMoney by  doxygen 1.5.6