summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/transfer.h
authorallenforsythe <allenforsythe>2003-05-13 21:14:56 (UTC)
committer allenforsythe <allenforsythe>2003-05-13 21:14:56 (UTC)
commitf08e51ae62bf814b4cbf8873afd0e44b167cb9b4 (patch) (unidiff)
treebab48138189f471aa8f18dd53dd57b4d0bfd156b /noncore/apps/qashmoney/transfer.h
parentf31e2ecd95aba951dc77d98f02b45cb1297046ac (diff)
downloadopie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.zip
opie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.tar.gz
opie-f08e51ae62bf814b4cbf8873afd0e44b167cb9b4.tar.bz2
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/transfer.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/transfer.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/transfer.h b/noncore/apps/qashmoney/transfer.h
new file mode 100755
index 0000000..33dedf4
--- a/dev/null
+++ b/noncore/apps/qashmoney/transfer.h
@@ -0,0 +1,51 @@
1#ifndef TRANSFER_H
2#define TRANSFER_H
3
4#include <qlistview.h>
5#include <qstring.h>
6#include <sqlite.h>
7
8#include "preferences.h"
9
10class Transfer
11 {
12 public:
13
14 Transfer ();
15 ~Transfer ();
16
17 // This function adds a new transfer to the database. It takes the fromaccount, toaccount,
18 // number, frombudget, tobudget, day, month, year, amount, cleared
19 void addTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared );
20 void updateTransfer ( int fromaccount, int fromparent, int toaccount, int toparent, int day, int month, int year, float amount, int cleared, int transferid );
21
22 // Deletes a transfer. Takes the transferid as its parameter
23 void deleteTransfer ( int );
24
25 // Deletes all transfers for a given accountid
26 void deleteAllTransfers ( int accountid );
27
28 // Returns the number of checking transfers
29 int getNumberOfTransfers ();
30 int getNumberOfTransfers ( int accountid );
31
32 void displayTransfers ( QListView *listview, int accountid, bool children );
33 int getCleared ( int id );
34 void setCleared ( int id, int cleared );
35 int getFromAccountID ( int id );
36 int getToAccountID ( int id );
37
38 int getDay ( int id );
39 int getMonth ( int id );
40 int getYear ( int id );
41 QString getAmount ( int id );
42
43 private:
44
45 sqlite *db;
46 };
47
48#endif
49
50
51