00001 /* 00002 ** $Id: category.h,v 1.1.1.1 2003/07/22 19:23:28 zcarsten Exp $ 00003 */ 00004 00005 #ifndef _CATEGORY_H_ 00006 #define _CATEGORY_H_ 00007 00008 #include <qstring.h> 00009 #include <qlistview.h> 00010 #include <qpixmap.h> 00011 00012 // class to hold one category item 00013 00014 class Category 00015 { 00016 public: 00017 Category(); 00018 ~Category(); 00019 00020 QString getIconName(); 00021 QString getCategoryName(); 00022 QListViewItem * getListItem(); 00023 QPixmap getIcon(); 00024 void setIconName(QString name); 00025 void setCategoryName(QString name); 00026 void setListItem(QListViewItem *item); 00027 void setIcon(QPixmap item); 00028 void initListItem(); 00029 00030 protected: 00031 QString iconName; // full path to the icon 00032 QString categoryName; // name of the category 00033 QPixmap icon; // pixmap icon 00034 QListViewItem *listItem; // list view item 00035 00036 private: 00037 00038 }; 00039 #endif // _CATEGORY_H_ 00040 00041 00042
1.4.2