Diffstat (limited to 'noncore/apps/qashmoney/memory.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/memory.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/memory.h b/noncore/apps/qashmoney/memory.h new file mode 100755 index 0000000..6f3f100 --- a/dev/null +++ b/noncore/apps/qashmoney/memory.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef MEMORY_H | ||
2 | #define MEMORY_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qlistbox.h> | ||
6 | #include <qcombobox.h> | ||
7 | #include <sqlite.h> | ||
8 | |||
9 | class Memory : public QObject | ||
10 | { | ||
11 | |||
12 | Q_OBJECT | ||
13 | |||
14 | public: | ||
15 | |||
16 | Memory (); | ||
17 | ~Memory (); | ||
18 | |||
19 | // This function adds a new memory to the database. It takes the memory name, parent, | ||
20 | // initial balance, a displayed variable, and the memory type | ||
21 | // The parent is an integer memory id. Its -1 if there is not parent | ||
22 | // The memory types are 0=not defined 1=parent 2=child | ||
23 | void addMemoryItem ( QString ); | ||
24 | |||
25 | // Returns the number of checking memorys | ||
26 | int getNumberOfMemoryItems (); | ||
27 | |||
28 | void changeMemoryName ( QString ); | ||
29 | |||
30 | // This takes a QListView and puts parents and children memorys | ||
31 | // into the list view | ||
32 | void displayMemoryItems ( QListBox * ); | ||
33 | void displayMemoryItems ( QComboBox * ); | ||
34 | |||
35 | // The primary database that stores all our data | ||
36 | sqlite *db; | ||
37 | |||
38 | public slots: | ||
39 | |||
40 | // Deletes a memory item. Takes the memoryid as its parameter | ||
41 | void deleteMemoryItem ( QString ); | ||
42 | }; | ||
43 | |||
44 | #endif | ||
45 | |||