Diffstat (limited to 'noncore/apps/qashmoney/transfer.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/transfer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/qashmoney/transfer.h b/noncore/apps/qashmoney/transfer.h index 33dedf4..e910e7c 100755 --- a/noncore/apps/qashmoney/transfer.h +++ b/noncore/apps/qashmoney/transfer.h | |||
@@ -1,18 +1,19 @@ | |||
1 | #ifndef TRANSFER_H | 1 | #ifndef TRANSFER_H |
2 | #define TRANSFER_H | 2 | #define TRANSFER_H |
3 | 3 | ||
4 | #include <qlistview.h> | 4 | #include <qlistview.h> |
5 | #include <qstring.h> | 5 | #include <qstring.h> |
6 | #include <sqlite.h> | 6 | #include <sqlite.h> |
7 | #include <qdatetime.h> | ||
7 | 8 | ||
8 | #include "preferences.h" | 9 | #include "preferences.h" |
9 | 10 | ||
10 | class Transfer | 11 | class Transfer |
11 | { | 12 | { |
12 | public: | 13 | public: |
13 | 14 | ||
14 | Transfer (); | 15 | Transfer (); |
15 | ~Transfer (); | 16 | ~Transfer (); |
16 | 17 | ||
17 | // This function adds a new transfer to the database. It takes the fromaccount, toaccount, | 18 | // This function adds a new transfer to the database. It takes the fromaccount, toaccount, |
18 | // number, frombudget, tobudget, day, month, year, amount, cleared | 19 | // number, frombudget, tobudget, day, month, year, amount, cleared |
@@ -20,25 +21,25 @@ class Transfer | |||
20 | void updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid ); | 21 | void updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid ); |
21 | 22 | ||
22 | // Deletes a transfer. Takes the transferid as its parameter | 23 | // Deletes a transfer. Takes the transferid as its parameter |
23 | void deleteTransfer ( int ); | 24 | void deleteTransfer ( int ); |
24 | 25 | ||
25 | // Deletes all transfers for a given accountid | 26 | // Deletes all transfers for a given accountid |
26 | void deleteAllTransfers ( int accountid ); | 27 | void deleteAllTransfers ( int accountid ); |
27 | 28 | ||
28 | // Returns the number of checking transfers | 29 | // Returns the number of checking transfers |
29 | int getNumberOfTransfers (); | 30 | int getNumberOfTransfers (); |
30 | int getNumberOfTransfers ( int accountid ); | 31 | int getNumberOfTransfers ( int accountid ); |
31 | 32 | ||
32 | void displayTransfers ( QListView *listview, int accountid, bool children ); | 33 | void displayTransfers ( QListView *listview, int accountid, bool children, QDate displaydate ); |
33 | int getCleared ( int id ); | 34 | int getCleared ( int id ); |
34 | void setCleared ( int id, int cleared ); | 35 | void setCleared ( int id, int cleared ); |
35 | int getFromAccountID ( int id ); | 36 | int getFromAccountID ( int id ); |
36 | int getToAccountID ( int id ); | 37 | int getToAccountID ( int id ); |
37 | 38 | ||
38 | int getDay ( int id ); | 39 | int getDay ( int id ); |
39 | int getMonth ( int id ); | 40 | int getMonth ( int id ); |
40 | int getYear ( int id ); | 41 | int getYear ( int id ); |
41 | QString getAmount ( int id ); | 42 | QString getAmount ( int id ); |
42 | 43 | ||
43 | private: | 44 | private: |
44 | 45 | ||