summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/transaction.h
Unidiff
Diffstat (limited to 'noncore/apps/qashmoney/transaction.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/transaction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/qashmoney/transaction.h b/noncore/apps/qashmoney/transaction.h
index 5871555..3df43a8 100755
--- a/noncore/apps/qashmoney/transaction.h
+++ b/noncore/apps/qashmoney/transaction.h
@@ -1,19 +1,19 @@
1#ifndef TRANSACTION_H 1#ifndef TRANSACTION_H
2#define TRANSACTION_H 2#define TRANSACTION_H
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qlistview.h> 5#include <qlistview.h>
6#include <qdatetime.h> 6#include <qdatetime.h>
7#include <sqlite.h> 7#include <sqlite3.h>
8 8
9#include "preferences.h" 9#include "preferences.h"
10 10
11class Transaction 11class Transaction
12 { 12 {
13 public: 13 public:
14 14
15 Transaction (); 15 Transaction ();
16 ~Transaction (); 16 ~Transaction ();
17 17
18 // This function adds a new transaction to the database. It takes the payee, accountid, 18 // This function adds a new transaction to the database. It takes the payee, accountid,
19 // budgetid, number, day, month, year, amount, cleared 19 // budgetid, number, day, month, year, amount, cleared
@@ -54,20 +54,20 @@ class Transaction
54 QString getAbsoluteAmount ( int ); 54 QString getAbsoluteAmount ( int );
55 int getCleared ( int ); 55 int getCleared ( int );
56 void setCleared ( int id, int cleared ); 56 void setCleared ( int id, int cleared );
57 int getBudgetID ( int id ); 57 int getBudgetID ( int id );
58 int getLineItemID ( int id ); 58 int getLineItemID ( int id );
59 int getDay ( int ); 59 int getDay ( int );
60 int getMonth ( int ); 60 int getMonth ( int );
61 int getYear ( int ); 61 int getYear ( int );
62 int getAccountID ( int id ); 62 int getAccountID ( int id );
63 63
64 private: 64 private:
65 65
66 sqlite *tdb; 66 sqlite3 *tdb;
67 int rows, columns; 67 int rows, columns;
68 }; 68 };
69 69
70#endif 70#endif
71 71
72 72
73 73