Diffstat (limited to 'noncore/apps/qashmoney/transaction.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/transaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/transaction.h b/noncore/apps/qashmoney/transaction.h index 7297bb1..5871555 100755 --- a/noncore/apps/qashmoney/transaction.h +++ b/noncore/apps/qashmoney/transaction.h | |||
@@ -24,47 +24,50 @@ class Transaction | |||
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 |
32 | // transactions for an account | 32 | // transactions for an account |
33 | int getNumberOfTransactions ( int ); | 33 | int getNumberOfTransactions ( int ); |
34 | 34 | ||
35 | // deletes all transactions for the provided accountid | 35 | // deletes all transactions for the provided accountid |
36 | void deleteAllTransactions ( int accountid ); | 36 | void deleteAllTransactions ( int accountid ); |
37 | 37 | ||
38 | 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 ); |
39 | QString getActualTotal ( int budgetid, int year, int month, int viewtype ); | 39 | QString getActualTotal ( int budgetid, int year, int month, int viewtype ); |
40 | 40 | ||
41 | // 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 |
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 ); | ||
49 | char ** selectNonClearedTransactions ( QDate fromdate, bool children, const char *limit, int id ); | ||
48 | QString getPayee ( int ); | 50 | QString getPayee ( int ); |
49 | QString getTransactionDescription ( int ); | 51 | QString getTransactionDescription ( int ); |
50 | QString getNumber ( int ); | 52 | QString getNumber ( int ); |
51 | QString getAmount ( int ); | 53 | QString getAmount ( int ); |
52 | QString getAbsoluteAmount ( int ); | 54 | QString getAbsoluteAmount ( int ); |
53 | int getCleared ( int ); | 55 | int getCleared ( int ); |
54 | void setCleared ( int id, int cleared ); | 56 | void setCleared ( int id, int cleared ); |
55 | int getBudgetID ( int id ); | 57 | int getBudgetID ( int id ); |
56 | int getLineItemID ( int id ); | 58 | int getLineItemID ( int id ); |
57 | int getDay ( int ); | 59 | int getDay ( int ); |
58 | int getMonth ( int ); | 60 | int getMonth ( int ); |
59 | int getYear ( int ); | 61 | int getYear ( int ); |
60 | int getAccountID ( int id ); | 62 | int getAccountID ( int id ); |
61 | 63 | ||
62 | private: | 64 | private: |
63 | 65 | ||
64 | sqlite *tdb; | 66 | sqlite *tdb; |
67 | int rows, columns; | ||
65 | }; | 68 | }; |
66 | 69 | ||
67 | #endif | 70 | #endif |
68 | 71 | ||
69 | 72 | ||
70 | 73 | ||