Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CBInfo Class Reference

#include </home/clem/local/src/opie/noncore/apps/checkbook/cbinfo.h>

Collaboration diagram for CBInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CBInfo ()
 CBInfo (const QString &, const QString &)
const QStringname () const
const QStringfilename () const
const QStringpassword () const
const QStringtype () const
const QStringbank () const
const QStringaccount () const
const QStringpin () const
const QStringnotes () const
float startingBalance () const
float balance ()
void setName (const QString &name)
void setFilename (const QString &filename)
void setPassword (const QString &password)
void setType (const QString &type)
void setBank (const QString &bank)
void setAccount (const QString &account)
void setPin (const QString &pin)
void setNotes (const QString &notes)
void setStartingBalance (float startbal)
void write ()
TranInfoListtransactions () const
TranInfofindTransaction (const QString &)
void addTransaction (TranInfo *)
void removeTransaction (TranInfo *)
void setLastTab (const QString &sLastTab)
QStringgetLastTab ()
int getNextNumber ()
void setSortOrder (const QString &sSortOrder)
QStringgetSortOrder ()

Private Member Functions

void loadTransactions ()
void calcBalance ()

Private Attributes

QString n
QString fn
QString pw
QString t
QString bn
QString a
QString p
QString nt
float sb
float b
QString _sLastTab
int _first
int _last
QString _sSortOrder
TranInfoListtl

Constructor & Destructor Documentation

CBInfo::CBInfo  ) 
 

Definition at line 37 of file cbinfo.cpp.

References _first, _last, _sLastTab, a, bn, fn, n, nt, QString::null, p, pw, sb, t, and tl.

CBInfo::CBInfo const QString ,
const QString
 

Definition at line 57 of file cbinfo.cpp.

References _first, _sLastTab, _sSortOrder, a, bn, Config::File, fn, loadTransactions(), n, nt, QString::null, p, pw, Config::readEntry(), Config::readEntryCrypt(), Config::readNumEntry(), sb, Config::setGroup(), t, and tr.


Member Function Documentation

const QString& CBInfo::account  )  const [inline]
 

Definition at line 51 of file cbinfo.h.

References a.

Referenced by Checkbook::loadCheckbook().

void CBInfo::addTransaction TranInfo  ) 
 

Definition at line 149 of file cbinfo.cpp.

References calcBalance(), and tl.

Referenced by Checkbook::slotNewTran().

float CBInfo::balance  ) 
 

Definition at line 82 of file cbinfo.cpp.

References b, and calcBalance().

Referenced by MainWindow::addCheckbook().

const QString& CBInfo::bank  )  const [inline]
 

Definition at line 50 of file cbinfo.h.

References bn.

Referenced by Checkbook::loadCheckbook().

void CBInfo::calcBalance  )  [private]
 

Definition at line 196 of file cbinfo.cpp.

References b, sb, and tl.

Referenced by addTransaction(), balance(), loadTransactions(), and removeTransaction().

const QString& CBInfo::filename  )  const [inline]
 

Definition at line 47 of file cbinfo.h.

References fn.

TranInfo * CBInfo::findTransaction const QString  ) 
 

Definition at line 135 of file cbinfo.cpp.

References TranInfo::id(), and tl.

Referenced by Checkbook::slotDeleteTran(), and Checkbook::slotEditTran().

QString& CBInfo::getLastTab  )  [inline]
 

Definition at line 78 of file cbinfo.h.

References _sLastTab.

Referenced by Checkbook::Checkbook().

int CBInfo::getNextNumber  )  [inline]
 

Definition at line 81 of file cbinfo.h.

References _last.

Referenced by Checkbook::slotNewTran().

QString& CBInfo::getSortOrder  )  [inline]
 

Definition at line 85 of file cbinfo.h.

References _sSortOrder.

Referenced by Checkbook::loadCheckbook().

void CBInfo::loadTransactions  )  [private]
 

Definition at line 165 of file cbinfo.cpp.

References _first, _last, calcBalance(), TranInfo::desc(), Config::File, fn, TranInfo::getNext(), i, QString::null, and tl.

Referenced by CBInfo().

const QString& CBInfo::name  )  const [inline]
 

Definition at line 46 of file cbinfo.h.

References n.

Referenced by MainWindow::addCheckbook(), Checkbook::Checkbook(), Checkbook::loadCheckbook(), Checkbook::slotEditTran(), MainWindow::slotNew(), and Checkbook::slotNewTran().

const QString& CBInfo::notes  )  const [inline]
 

Definition at line 53 of file cbinfo.h.

References nt.

Referenced by Checkbook::loadCheckbook().

const QString& CBInfo::password  )  const [inline]
 

Definition at line 48 of file cbinfo.h.

References pw.

Referenced by MainWindow::addCheckbook(), Checkbook::loadCheckbook(), and Checkbook::slotPasswordClicked().

const QString& CBInfo::pin  )  const [inline]
 

Definition at line 52 of file cbinfo.h.

References p.

Referenced by Checkbook::loadCheckbook().

void CBInfo::removeTransaction TranInfo  ) 
 

Definition at line 155 of file cbinfo.cpp.

References calcBalance(), and tl.

Referenced by Checkbook::slotDeleteTran().

void CBInfo::setAccount const QString account  )  [inline]
 

Definition at line 62 of file cbinfo.h.

References a.

Referenced by Checkbook::accept().

void CBInfo::setBank const QString bank  )  [inline]
 

Definition at line 61 of file cbinfo.h.

References bn.

Referenced by Checkbook::accept().

void CBInfo::setFilename const QString filename  )  [inline]
 

Definition at line 58 of file cbinfo.h.

References fn.

Referenced by MainWindow::slotNew().

void CBInfo::setLastTab const QString sLastTab  )  [inline]
 

Definition at line 77 of file cbinfo.h.

References _sLastTab.

Referenced by Checkbook::slotTab().

void CBInfo::setName const QString name  )  [inline]
 

Definition at line 57 of file cbinfo.h.

References n.

Referenced by Checkbook::accept(), and Checkbook::slotNameChanged().

void CBInfo::setNotes const QString notes  )  [inline]
 

Definition at line 64 of file cbinfo.h.

References nt.

Referenced by Checkbook::accept().

void CBInfo::setPassword const QString password  )  [inline]
 

Definition at line 59 of file cbinfo.h.

References pw.

Referenced by Checkbook::slotPasswordClicked().

void CBInfo::setPin const QString pin  )  [inline]
 

Definition at line 63 of file cbinfo.h.

References p.

Referenced by Checkbook::accept().

void CBInfo::setSortOrder const QString sSortOrder  )  [inline]
 

Definition at line 84 of file cbinfo.h.

References _sSortOrder.

Referenced by Checkbook::slotSortChanged().

void CBInfo::setStartingBalance float  startbal  )  [inline]
 

Definition at line 65 of file cbinfo.h.

References sb.

Referenced by Checkbook::accept(), and Checkbook::slotStartingBalanceChanged().

void CBInfo::setType const QString type  )  [inline]
 

Definition at line 60 of file cbinfo.h.

References t.

Referenced by Checkbook::accept().

float CBInfo::startingBalance  )  const [inline]
 

Definition at line 54 of file cbinfo.h.

References sb.

Referenced by Checkbook::adjustBalance(), Checkbook::drawBalanceChart(), and Checkbook::loadCheckbook().

TranInfoList* CBInfo::transactions  )  const [inline]
 

Definition at line 71 of file cbinfo.h.

References tl.

Referenced by Checkbook::loadCheckbook().

const QString& CBInfo::type  )  const [inline]
 

Definition at line 49 of file cbinfo.h.

References t.

Referenced by Checkbook::loadCheckbook().

void CBInfo::write  ) 
 

Definition at line 89 of file cbinfo.cpp.

References _first, _last, _sLastTab, _sSortOrder, a, bn, QFile::exists(), f, Config::File, fn, nt, NULL, p, pw, QFile::remove(), sb, Config::setGroup(), TranInfo::setNext(), QString::setNum(), t, tl, Config::write(), TranInfo::write(), Config::writeEntry(), and Config::writeEntryCrypt().

Referenced by MainWindow::slotNew().


Member Data Documentation

int CBInfo::_first [private]
 

Definition at line 99 of file cbinfo.h.

Referenced by CBInfo(), loadTransactions(), and write().

int CBInfo::_last [private]
 

Definition at line 100 of file cbinfo.h.

Referenced by CBInfo(), getNextNumber(), loadTransactions(), and write().

QString CBInfo::_sLastTab [private]
 

Definition at line 98 of file cbinfo.h.

Referenced by CBInfo(), getLastTab(), setLastTab(), and write().

QString CBInfo::_sSortOrder [private]
 

Definition at line 101 of file cbinfo.h.

Referenced by CBInfo(), getSortOrder(), setSortOrder(), and write().

QString CBInfo::a [private]
 

Definition at line 93 of file cbinfo.h.

Referenced by account(), CBInfo(), setAccount(), and write().

float CBInfo::b [private]
 

Definition at line 97 of file cbinfo.h.

Referenced by balance(), and calcBalance().

QString CBInfo::bn [private]
 

Definition at line 92 of file cbinfo.h.

Referenced by bank(), CBInfo(), setBank(), and write().

QString CBInfo::fn [private]
 

Definition at line 89 of file cbinfo.h.

Referenced by CBInfo(), filename(), loadTransactions(), setFilename(), and write().

QString CBInfo::n [private]
 

Definition at line 88 of file cbinfo.h.

Referenced by CBInfo(), name(), and setName().

QString CBInfo::nt [private]
 

Definition at line 95 of file cbinfo.h.

Referenced by CBInfo(), notes(), setNotes(), and write().

QString CBInfo::p [private]
 

Definition at line 94 of file cbinfo.h.

Referenced by CBInfo(), pin(), setPin(), and write().

QString CBInfo::pw [private]
 

Definition at line 90 of file cbinfo.h.

Referenced by CBInfo(), password(), setPassword(), and write().

float CBInfo::sb [private]
 

Definition at line 96 of file cbinfo.h.

Referenced by calcBalance(), CBInfo(), setStartingBalance(), startingBalance(), and write().

QString CBInfo::t [private]
 

Definition at line 91 of file cbinfo.h.

Referenced by CBInfo(), setType(), type(), and write().

TranInfoList* CBInfo::tl [private]
 

Definition at line 103 of file cbinfo.h.

Referenced by addTransaction(), calcBalance(), CBInfo(), findTransaction(), loadTransactions(), removeTransaction(), transactions(), and write().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:16 2005 for OPIE by  doxygen 1.4.2