summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/category.h
blob: 943c728e49184e473fc2ffd49a30b1387dc89f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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_