00001 /* C implementation of RC2 encryption algorithm, as described in RFC2268 */ 00002 /* By Matthew Palmer <mjp16@uow.edu.au> */ 00003 /* $Id: category.cpp,v 1.2 2004/03/01 20:04:34 chicken Exp $ */ 00004 00005 #include "category.h" 00006 00007 Category::Category() 00008 { 00009 } 00010 00011 Category::~Category() 00012 { 00013 } 00014 00015 QString Category::getIconName() 00016 { 00017 return iconName; 00018 } 00019 00020 QString Category::getCategoryName() 00021 { 00022 return categoryName; 00023 } 00024 00025 QListViewItem * Category::getListItem() 00026 { 00027 return listItem; 00028 } 00029 00030 QPixmap Category::getIcon() 00031 { 00032 return icon; 00033 } 00034 00035 void Category::setIconName(QString name) 00036 { 00037 iconName = name; 00038 } 00039 00040 void Category::setCategoryName(QString name) 00041 { 00042 categoryName = name; 00043 } 00044 00045 void Category::setListItem(QListViewItem *item) 00046 { 00047 listItem = item; 00048 } 00049 00050 void Category::setIcon(QPixmap item) 00051 { 00052 icon = item; 00053 } 00054 00055 void Category::initListItem() 00056 { 00057 if (listItem) 00058 { 00059 listItem->setText (0, categoryName); 00060 listItem->setPixmap (0, icon); 00061 } 00062 }
1.4.2