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

TranInfo Class Reference

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

Collaboration diagram for TranInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TranInfo (int=0, const QString &=0x0, const QDate &=QDate::currentDate(), bool=TRUE, const QString &=0x0, const QString &=0x0, float=0.0, float=0.0, const QString &=0x0, const QString &=0x0, int=-1)
 TranInfo (Config *, int)
int id () const
const QStringgetIdStr ()
const QStringdesc () const
const QDatedate () const
const QStringdatestr (bool=false)
bool withdrawal () const
const QStringtype () const
const QStringcategory () const
float amount () const
float fee () const
const QStringnumber () const
const QStringnotes () const
int getNext ()
void setDesc (const QString &desc)
void setDate (const QDate &date)
void setWithdrawal (bool withdrawal)
void setType (const QString &type)
void setCategory (const QString &cat)
void setAmount (float amount)
void setFee (float fee)
void setNumber (const QString &num)
void setNotes (const QString &notes)
void setNext (int next)
void write (Config *)
QString toString ()

Private Attributes

int i
QString d
QDate td
bool w
QString t
QString c
float a
float f
QString cn
QString n
int _next

Constructor & Destructor Documentation

TranInfo::TranInfo int  = 0,
const QString = 0x0,
const QDate = QDate::currentDate(),
bool  = TRUE,
const QString = 0x0,
const QString = 0x0,
float  = 0.0,
float  = 0.0,
const QString = 0x0,
const QString = 0x0,
int  = -1
 

Definition at line 36 of file traninfo.cpp.

References _next, a, c, cn, d, f, i, n, t, td, and w.

TranInfo::TranInfo Config ,
int 
 

Definition at line 53 of file traninfo.cpp.

References _next, a, begin, c, cn, d, datestr(), desc(), end, f, QString::find(), i, QString::left(), QString::length(), QString::mid(), n, QString::number(), Config::readEntry(), Config::readNumEntry(), QString::right(), Config::setGroup(), QDate::setYMD(), t, td, QString::toFloat(), QString::toInt(), type(), and w.


Member Function Documentation

float TranInfo::amount  )  const [inline]
 

Definition at line 56 of file traninfo.h.

References a.

Referenced by Checkbook::adjustBalance(), Checkbook::drawCategoryChart(), Transaction::initFromInfo(), Checkbook::slotEditTran(), and toString().

const QString& TranInfo::category  )  const [inline]
 

Definition at line 55 of file traninfo.h.

References c.

Referenced by Checkbook::drawCategoryChart(), and Transaction::initFromInfo().

const QDate& TranInfo::date  )  const [inline]
 

Definition at line 51 of file traninfo.h.

References td.

Referenced by Transaction::initFromInfo().

const QString & TranInfo::datestr bool  = false  ) 
 

Definition at line 128 of file traninfo.cpp.

References QDate::day(), QDate::month(), TimeString::numberDateString(), QString::sprintf(), td, and QDate::year().

Referenced by Checkbook::slotEditTran(), toString(), and TranInfo().

const QString& TranInfo::desc  )  const [inline]
 

Definition at line 50 of file traninfo.h.

References d.

Referenced by TranInfoList::findMostRecentByDesc(), Transaction::initFromInfo(), CBInfo::loadTransactions(), Checkbook::slotDeleteTran(), Checkbook::slotEditTran(), toString(), and TranInfo().

float TranInfo::fee  )  const [inline]
 

Definition at line 57 of file traninfo.h.

References f.

Referenced by Checkbook::adjustBalance(), Transaction::initFromInfo(), and toString().

const QString & TranInfo::getIdStr  ) 
 

Definition at line 140 of file traninfo.cpp.

References i, and QString::sprintf().

int TranInfo::getNext  )  [inline]
 

Definition at line 60 of file traninfo.h.

References _next.

Referenced by CBInfo::loadTransactions().

int TranInfo::id  )  const [inline]
 

Definition at line 47 of file traninfo.h.

References i.

Referenced by CBInfo::findTransaction().

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

Definition at line 59 of file traninfo.h.

References n.

Referenced by Transaction::initFromInfo().

const QString& TranInfo::number  )  const [inline]
 

Definition at line 58 of file traninfo.h.

References cn.

Referenced by Transaction::initFromInfo(), Checkbook::slotEditTran(), and toString().

void TranInfo::setAmount float  amount  )  [inline]
 

Definition at line 68 of file traninfo.h.

References a.

Referenced by Transaction::accept().

void TranInfo::setCategory const QString cat  )  [inline]
 

Definition at line 67 of file traninfo.h.

References c.

Referenced by Transaction::accept().

void TranInfo::setDate const QDate date  )  [inline]
 

Definition at line 64 of file traninfo.h.

References td.

Referenced by Transaction::accept(), and Checkbook::slotNewTran().

void TranInfo::setDesc const QString desc  )  [inline]
 

Definition at line 63 of file traninfo.h.

References d.

Referenced by Transaction::accept().

void TranInfo::setFee float  fee  )  [inline]
 

Definition at line 69 of file traninfo.h.

References f.

Referenced by Transaction::accept().

void TranInfo::setNext int  next  )  [inline]
 

Definition at line 72 of file traninfo.h.

References _next.

Referenced by CBInfo::write().

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

Definition at line 71 of file traninfo.h.

References n.

Referenced by Transaction::accept().

void TranInfo::setNumber const QString num  )  [inline]
 

Definition at line 70 of file traninfo.h.

References cn.

Referenced by Transaction::accept().

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

Definition at line 66 of file traninfo.h.

References t.

Referenced by Transaction::accept().

void TranInfo::setWithdrawal bool  withdrawal  )  [inline]
 

Definition at line 65 of file traninfo.h.

References w.

Referenced by Transaction::accept().

QString TranInfo::toString  ) 
 

Definition at line 204 of file traninfo.cpp.

References amount(), datestr(), desc(), fee(), number(), QString::sprintf(), and withdrawal().

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

Definition at line 54 of file traninfo.h.

References t.

Referenced by Transaction::initFromInfo(), and TranInfo().

bool TranInfo::withdrawal  )  const [inline]
 

Definition at line 53 of file traninfo.h.

References w.

Referenced by Checkbook::adjustBalance(), Checkbook::drawCategoryChart(), Transaction::initFromInfo(), Checkbook::slotEditTran(), and toString().

void TranInfo::write Config  ) 
 

Definition at line 147 of file traninfo.cpp.

References _next, a, QString::append(), c, cn, d, QDate::day(), f, QDate::month(), n, QString::number(), t, td, w, and QDate::year().

Referenced by CBInfo::write().


Member Data Documentation

int TranInfo::_next [private]
 

Definition at line 91 of file traninfo.h.

Referenced by getNext(), setNext(), TranInfo(), and write().

float TranInfo::a [private]
 

Definition at line 87 of file traninfo.h.

Referenced by amount(), setAmount(), TranInfo(), and write().

QString TranInfo::c [private]
 

Definition at line 86 of file traninfo.h.

Referenced by category(), setCategory(), TranInfo(), and write().

QString TranInfo::cn [private]
 

Definition at line 89 of file traninfo.h.

Referenced by number(), setNumber(), TranInfo(), and write().

QString TranInfo::d [private]
 

Definition at line 82 of file traninfo.h.

Referenced by desc(), setDesc(), TranInfo(), and write().

float TranInfo::f [private]
 

Definition at line 88 of file traninfo.h.

Referenced by fee(), setFee(), TranInfo(), and write().

int TranInfo::i [private]
 

Definition at line 81 of file traninfo.h.

Referenced by getIdStr(), id(), and TranInfo().

QString TranInfo::n [private]
 

Definition at line 90 of file traninfo.h.

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

QString TranInfo::t [private]
 

Definition at line 85 of file traninfo.h.

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

QDate TranInfo::td [private]
 

Definition at line 83 of file traninfo.h.

Referenced by date(), datestr(), setDate(), TranInfo(), and write().

bool TranInfo::w [private]
 

Definition at line 84 of file traninfo.h.

Referenced by setWithdrawal(), TranInfo(), withdrawal(), and write().


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