author | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
---|---|---|
committer | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
commit | fa3772aa7ddea5725cc7e7db42d017567e4cc14c (patch) (side-by-side diff) | |
tree | 112ec27dd148d0b381ac559fd3e1ee32a89ecd0d /noncore/apps/zsafe/category.h | |
parent | 059af0e82a14a32f068c2ad943dc918afca93587 (diff) | |
download | opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.zip opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.gz opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/zsafe/category.h') (more/less context) (ignore whitespace changes)
-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 @@ +/* +** $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_ + + + |