summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/budget.h
Unidiff
Diffstat (limited to 'noncore/apps/qashmoney/budget.h') (more/less context) (show whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/budget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/qashmoney/budget.h b/noncore/apps/qashmoney/budget.h
index 16af26a..f82e048 100755
--- a/noncore/apps/qashmoney/budget.h
+++ b/noncore/apps/qashmoney/budget.h
@@ -1,19 +1,19 @@
1#ifndef BUDGET_H 1#ifndef BUDGET_H
2#define BUDGET_H 2#define BUDGET_H
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qstringlist.h> 5#include <qstringlist.h>
6#include <qlistview.h> 6#include <qlistview.h>
7#include <sqlite.h> 7#include <sqlite3.h>
8 8
9class Budget 9class Budget
10 { 10 {
11 public: 11 public:
12 12
13 Budget (); 13 Budget ();
14 ~Budget (); 14 ~Budget ();
15 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 ); 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 ); 17 void updateBudget ( QString name, QString description, QString currency, int budgetid );
18 void deleteBudget ( int budgetid ); 18 void deleteBudget ( int budgetid );
19 int getNumberOfBudgets (); 19 int getNumberOfBudgets ();
@@ -29,17 +29,17 @@ class Budget
29 QString getBudgetTotal ( int budgetid, int viewtype ); 29 QString getBudgetTotal ( int budgetid, int viewtype );
30 30
31 int getLastAdded (); 31 int getLastAdded ();
32 32
33 int addLineItem ( int budgetid, QString lineitemname, float lineitemamount, int lineitemtype ); 33 int addLineItem ( int budgetid, QString lineitemname, float lineitemamount, int lineitemtype );
34 void updateLineItem ( QString lineitemname, float lineitemamount, int lineitemtype, int budgetid, int lineitemid ); 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 ); 35 void displayLineItems ( int budgetid, QListView *listview, int month, int year, int viewtype );
36 void deleteLineItem ( int budgetid, int lineitemid ); 36 void deleteLineItem ( int budgetid, int lineitemid );
37 int getLineItemTime ( int budgetid, int lineitemid ); 37 int getLineItemTime ( int budgetid, int lineitemid );
38 float getLineItemAmount ( int budgetid, int lineitemid ); 38 float getLineItemAmount ( int budgetid, int lineitemid );
39 39
40 private: 40 private:
41 sqlite *bdb; 41 sqlite3 *bdb;
42 }; 42 };
43 43
44#endif 44#endif
45 45