summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/traninfo.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/traninfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/traninfo.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/traninfo.h b/noncore/apps/checkbook/traninfo.h
index f6c5cae..0abdc61 100644
--- a/noncore/apps/checkbook/traninfo.h
+++ b/noncore/apps/checkbook/traninfo.h
@@ -41,8 +41,11 @@ class TranInfo
bool = TRUE, const QString & = 0x0, const QString & = 0x0,
float = 0.0, float = 0.0,
- const QString & = 0x0, const QString & = 0x0 );
+ const QString & = 0x0, const QString & = 0x0, int =-1 );
TranInfo( Config, int );
+ // getters
int id() const { return i; }
+ const QString &getIdStr();
+
const QString &desc() const { return d; }
const QDate &date() const { return td; }
@@ -55,6 +58,8 @@ class TranInfo
const QString &number() const { return cn; }
const QString &notes() const { return n; }
+ int getNext() { return(_next); }
- void setDesc( const QString &desc ) { d = desc; }
+ // setters
+ void setDesc( const QString &desc ) { d = desc; }
void setDate( const QDate &date ) { td = date; }
void setWithdrawal( bool withdrawal ) { w = withdrawal; }
@@ -65,6 +70,11 @@ class TranInfo
void setNumber( const QString &num ) { cn = num; }
void setNotes( const QString &notes ) { n = notes; }
+ void setNext(int next) { _next=next; }
+
+ // write
+ void write( Config * );
- void write( Config *, int );
+ // toString
+ QString toString();
private:
@@ -79,4 +89,5 @@ class TranInfo
QString cn;
QString n;
+ int _next;
};