Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

memory.h

Go to the documentation of this file.
00001 #ifndef MEMORY_H
00002 #define MEMORY_H
00003 
00004 #include <qstring.h>
00005 #include <qlistbox.h>
00006 #include <qcombobox.h>
00007 #include <sqlite3.h>
00008 
00009 class Memory : public QObject
00010   {
00011 
00012     Q_OBJECT
00013 
00014     public:
00015 
00016       Memory ();
00017       ~Memory ();
00018 
00019       // This function adds a new memory to the database.  It takes the memory name, parent,
00020       // initial balance, a displayed variable, and the memory type
00021       // The parent is an integer memory id.  Its -1 if there is not parent
00022       // The memory types  are 0=not defined 1=parent 2=child
00023       void addMemoryItem ( QString );
00024 
00025       // Returns the number of checking memorys
00026       int getNumberOfMemoryItems ();
00027 
00028       void changeMemoryName ( QString );
00029 
00030       // This takes a QListView and puts parents and children memorys
00031       // into the list view
00032       void displayMemoryItems ( QListBox * );
00033       void displayMemoryItems ( QComboBox * );
00034 
00035       // The primary database that stores all our data
00036       sqlite3 *db;
00037 
00038     public slots:
00039 
00040       // Deletes a memory item.  Takes the memoryid as its parameter
00041       void deleteMemoryItem ( QString );
00042   };
00043 
00044 #endif
00045 

Generated on Sat Nov 5 16:16:44 2005 for OPIE by  doxygen 1.4.2