summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/category.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/category.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/zsafe/category.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/apps/zsafe/category.h b/noncore/apps/zsafe/category.h
new file mode 100644
index 0000000..943c728
--- a/dev/null
+++ b/noncore/apps/zsafe/category.h
@@ -0,0 +1,42 @@
+/*
+** $Id$
+*/
+
+#ifndef _CATEGORY_H_
+#define _CATEGORY_H_
+
+#include <qstring.h>
+#include <qlistview.h>
+#include <qpixmap.h>
+
+// class to hold one category item
+
+class Category
+{
+public:
+ Category();
+ ~Category();
+
+ QString getIconName();
+ QString getCategoryName();
+ QListViewItem * getListItem();
+ QPixmap getIcon();
+ void setIconName(QString name);
+ void setCategoryName(QString name);
+ void setListItem(QListViewItem *item);
+ void setIcon(QPixmap item);
+ void initListItem();
+
+protected:
+ QString iconName; // full path to the icon
+ QString categoryName; // name of the category
+ QPixmap icon; // pixmap icon
+ QListViewItem *listItem; // list view item
+
+private:
+
+};
+#endif // _CATEGORY_H_
+
+
+