author | allenforsythe <allenforsythe> | 2003-05-13 21:14:56 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-13 21:14:56 (UTC) |
commit | f08e51ae62bf814b4cbf8873afd0e44b167cb9b4 (patch) (unidiff) | |
tree | bab48138189f471aa8f18dd53dd57b4d0bfd156b /noncore/apps/qashmoney/budget.h | |
parent | f31e2ecd95aba951dc77d98f02b45cb1297046ac (diff) | |
download | opie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.zip opie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.tar.gz opie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/budget.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/budget.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/budget.h b/noncore/apps/qashmoney/budget.h new file mode 100755 index 0000000..16af26a --- a/dev/null +++ b/noncore/apps/qashmoney/budget.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef BUDGET_H | ||
2 | #define BUDGET_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qstringlist.h> | ||
6 | #include <qlistview.h> | ||
7 | #include <sqlite.h> | ||
8 | |||
9 | class Budget | ||
10 | { | ||
11 | public: | ||
12 | |||
13 | Budget (); | ||
14 | ~Budget (); | ||
15 | |||
16 | int addBudget ( QString name, int type, QString description, QString currency, int startday, int startmonth, int startyear, int endday, int endmonth, int endyear, int defaultview ); | ||
17 | void updateBudget ( QString name, QString description, QString currency, int budgetid ); | ||
18 | void deleteBudget ( int budgetid ); | ||
19 | int getNumberOfBudgets (); | ||
20 | int getNumberOfLineItems ( int budgetid ); | ||
21 | |||
22 | QStringList* getBudgetNames (); | ||
23 | QStringList* getBudgetIDs (); | ||
24 | QStringList getLineItems ( int budgetid ); | ||
25 | QStringList getLineItemIDs ( int budgetid ); | ||
26 | QString getBudgetName ( int budgetid ); | ||
27 | QString getBudgetDescription ( int budgetid ); | ||
28 | QString getCurrency ( int budgetid ); | ||
29 | QString getBudgetTotal ( int budgetid, int viewtype ); | ||
30 | |||
31 | int getLastAdded (); | ||
32 | |||
33 | int addLineItem ( int budgetid, QString lineitemname, float lineitemamount, int lineitemtype ); | ||
34 | void updateLineItem ( QString lineitemname, float lineitemamount, int lineitemtype, int budgetid, int lineitemid ); | ||
35 | void displayLineItems ( int budgetid, QListView *listview, int month, int year, int viewtype ); | ||
36 | void deleteLineItem ( int budgetid, int lineitemid ); | ||
37 | int getLineItemTime ( int budgetid, int lineitemid ); | ||
38 | float getLineItemAmount ( int budgetid, int lineitemid ); | ||
39 | |||
40 | private: | ||
41 | sqlite *bdb; | ||
42 | }; | ||
43 | |||
44 | #endif | ||
45 | |||