-rw-r--r-- | noncore/apps/zsafe/category.h | 42 |
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 @@ | |||
1 | /* | ||
2 | ** $Id$ | ||
3 | */ | ||
4 | |||
5 | #ifndef _CATEGORY_H_ | ||
6 | #define _CATEGORY_H_ | ||
7 | |||
8 | #include <qstring.h> | ||
9 | #include <qlistview.h> | ||
10 | #include <qpixmap.h> | ||
11 | |||
12 | // class to hold one category item | ||
13 | |||
14 | class Category | ||
15 | { | ||
16 | public: | ||
17 | Category(); | ||
18 | ~Category(); | ||
19 | |||
20 | QString getIconName(); | ||
21 | QString getCategoryName(); | ||
22 | QListViewItem * getListItem(); | ||
23 | QPixmap getIcon(); | ||
24 | void setIconName(QString name); | ||
25 | void setCategoryName(QString name); | ||
26 | void setListItem(QListViewItem *item); | ||
27 | void setIcon(QPixmap item); | ||
28 | void initListItem(); | ||
29 | |||
30 | protected: | ||
31 | QString iconName; // full path to the icon | ||
32 | QString categoryName; // name of the category | ||
33 | QPixmap icon; // pixmap icon | ||
34 | QListViewItem *listItem; // list view item | ||
35 | |||
36 | private: | ||
37 | |||
38 | }; | ||
39 | #endif // _CATEGORY_H_ | ||
40 | |||
41 | |||
42 | |||