Diffstat (limited to 'noncore/apps/qashmoney/transaction.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/transaction.h | 4 |
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,31 +1,31 @@ | |||
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 | ||
11 | class Transaction | 11 | class 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 |
20 | void addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid ); | 20 | void addTransaction ( QString description, QString payee, int accountid, int parentid, int number, int day, int month, int year, float amount, int cleared, int budgetid, int lineitemid ); |
21 | 21 | ||
22 | // This updates an already existing transaction | 22 | // This updates an already existing transaction |
23 | void updateTransaction ( QString, QString, int, int, int, int, float, int, int, int, int ); | 23 | void updateTransaction ( QString, QString, int, int, int, int, float, int, int, int, int ); |
24 | 24 | ||
25 | // Deletes a transaction. Takes the transid as its parameter | 25 | // Deletes a transaction. Takes the transid as its parameter |
26 | void deleteTransaction ( int ); | 26 | void deleteTransaction ( int ); |
27 | 27 | ||
28 | // Returns the number of transactions | 28 | // Returns the number of transactions |
29 | int getNumberOfTransactions (); | 29 | int getNumberOfTransactions (); |
30 | 30 | ||
31 | // this is an overloaded function that returns the number of | 31 | // this is an overloaded function that returns the number of |
@@ -42,32 +42,32 @@ class Transaction | |||
42 | void clearBudgetIDs ( int, int ); | 42 | void clearBudgetIDs ( int, int ); |
43 | void clearBudgetIDs ( int ); | 43 | void clearBudgetIDs ( int ); |
44 | 44 | ||
45 | public slots: | 45 | public slots: |
46 | 46 | ||
47 | void displayTransactions ( QListView *, int, bool, const char *, QDate ); | 47 | void displayTransactions ( QListView *, int, bool, const char *, QDate ); |
48 | char ** selectAllTransactions ( QDate fromdate, bool children, const char *limit, int id ); | 48 | char ** selectAllTransactions ( QDate fromdate, bool children, const char *limit, int id ); |
49 | char ** selectNonClearedTransactions ( QDate fromdate, bool children, const char *limit, int id ); | 49 | char ** selectNonClearedTransactions ( QDate fromdate, bool children, const char *limit, int id ); |
50 | QString getPayee ( int ); | 50 | QString getPayee ( int ); |
51 | QString getTransactionDescription ( int ); | 51 | QString getTransactionDescription ( int ); |
52 | QString getNumber ( int ); | 52 | QString getNumber ( int ); |
53 | QString getAmount ( int ); | 53 | QString getAmount ( int ); |
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 | ||