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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/qashmoney/transaction.h b/noncore/apps/qashmoney/transaction.h
index 5db011c..7297bb1 100755
--- a/noncore/apps/qashmoney/transaction.h
+++ b/noncore/apps/qashmoney/transaction.h
@@ -1,17 +1,18 @@
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 <sqlite.h> 7#include <sqlite.h>
7 8
8#include "preferences.h" 9#include "preferences.h"
9 10
10class Transaction 11class Transaction
11 { 12 {
12 public: 13 public:
13 14
14 Transaction (); 15 Transaction ();
15 ~Transaction (); 16 ~Transaction ();
16 17
17 // 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,
@@ -34,25 +35,25 @@ class Transaction
34 // deletes all transactions for the provided accountid 35 // deletes all transactions for the provided accountid
35 void deleteAllTransactions ( int accountid ); 36 void deleteAllTransactions ( int accountid );
36 37
37 QString getBudgetTotal ( int budgetid, int lineitemid, int year, int month, int viewtype ); 38 QString getBudgetTotal ( int budgetid, int lineitemid, int year, int month, int viewtype );
38 QString getActualTotal ( int budgetid, int year, int month, int viewtype ); 39 QString getActualTotal ( int budgetid, int year, int month, int viewtype );
39 40
40 // These two functions clear budget ids is either a line item or an entire budget is deleted 41 // These two functions clear budget ids is either a line item or an entire budget is deleted
41 void clearBudgetIDs ( int, int ); 42 void clearBudgetIDs ( int, int );
42 void clearBudgetIDs ( int ); 43 void clearBudgetIDs ( int );
43 44
44 public slots: 45 public slots:
45 46
46 void displayTransactions ( QListView *, int, bool, const char * ); 47 void displayTransactions ( QListView *, int, bool, const char *, QDate );
47 QString getPayee ( int ); 48 QString getPayee ( int );
48 QString getTransactionDescription ( int ); 49 QString getTransactionDescription ( int );
49 QString getNumber ( int ); 50 QString getNumber ( int );
50 QString getAmount ( int ); 51 QString getAmount ( int );
51 QString getAbsoluteAmount ( int ); 52 QString getAbsoluteAmount ( int );
52 int getCleared ( int ); 53 int getCleared ( int );
53 void setCleared ( int id, int cleared ); 54 void setCleared ( int id, int cleared );
54 int getBudgetID ( int id ); 55 int getBudgetID ( int id );
55 int getLineItemID ( int id ); 56 int getLineItemID ( int id );
56 int getDay ( int ); 57 int getDay ( int );
57 int getMonth ( int ); 58 int getMonth ( int );
58 int getYear ( int ); 59 int getYear ( int );