Diffstat (limited to 'noncore/apps/qashmoney/account.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/account.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/qashmoney/account.cpp b/noncore/apps/qashmoney/account.cpp index 181be23..f21598e 100755 --- a/noncore/apps/qashmoney/account.cpp +++ b/noncore/apps/qashmoney/account.cpp | |||
@@ -1,27 +1,25 @@ | |||
1 | #include "account.h" | 1 | #include "account.h" |
2 | #include "transaction.h" | ||
3 | #include "transfer.h" | ||
4 | #include "preferences.h" | 2 | #include "preferences.h" |
5 | 3 | ||
6 | #include <qpixmap.h> | 4 | #include <qpixmap.h> |
7 | #include <stdlib.h> | 5 | #include <stdlib.h> |
8 | 6 | ||
9 | extern Preferences *preferences; | 7 | extern Preferences *preferences; |
10 | 8 | ||
11 | Account::Account () | 9 | Account::Account () |
12 | { | 10 | { |
13 | adb = sqlite_open ( "qmaccounts.db", 0, NULL ); | 11 | adb = sqlite_open ( "qmaccounts.db", 0, NULL ); |
14 | } | 12 | } |
15 | 13 | ||
16 | Account::~Account () | 14 | Account::~Account () |
17 | { | 15 | { |
18 | sqlite_close ( adb ); | 16 | sqlite_close ( adb ); |
19 | } | 17 | } |
20 | 18 | ||
21 | void Account::addAccount ( QString name, int parentid, float balance, int type, QString description, float creditlimit, | 19 | void Account::addAccount ( QString name, int parentid, float balance, int type, QString description, float creditlimit, |
22 | int statementyear, int statementmonth, int statementday, float statementbalance, const char *currency ) | 20 | int statementyear, int statementmonth, int statementday, float statementbalance, const char *currency ) |
23 | { | 21 | { |
24 | sqlite_exec_printf ( adb, "insert into accounts2 values ( '%q', %i, %.2f, %i, '%q', %.2f, %i, %i, %i, %.2f, '%q', 0, 0, 0, 0, 0, NULL );", 0, 0, 0, | 22 | sqlite_exec_printf ( adb, "insert into accounts2 values ( '%q', %i, %.2f, %i, '%q', %.2f, %i, %i, %i, %.2f, '%q', 0, 0, 0, 0, 0, NULL );", 0, 0, 0, |
25 | (const char *) name, parentid, balance, type, (const char *) description, creditlimit, statementyear, statementmonth, statementday, statementbalance, currency ); | 23 | (const char *) name, parentid, balance, type, (const char *) description, creditlimit, statementyear, statementmonth, statementday, statementbalance, currency ); |
26 | } | 24 | } |
27 | 25 | ||