From fa3772aa7ddea5725cc7e7db42d017567e4cc14c Mon Sep 17 00:00:00 2001 From: zcarsten Date: Tue, 22 Jul 2003 19:23:13 +0000 Subject: Initial revision --- (limited to 'noncore/apps/zsafe/category.cpp') diff --git a/noncore/apps/zsafe/category.cpp b/noncore/apps/zsafe/category.cpp new file mode 100644 index 0000000..ce1d614 --- a/dev/null +++ b/noncore/apps/zsafe/category.cpp @@ -0,0 +1,63 @@ +/* C implementation of RC2 encryption algorithm, as described in RFC2268 */ +/* By Matthew Palmer */ +/* $Id$ */ + +#include "category.h" +#include + +Category::Category() +{ +} + +Category::~Category() +{ +} + +QString Category::getIconName() +{ + return iconName; +} + +QString Category::getCategoryName() +{ + return categoryName; +} + +QListViewItem * Category::getListItem() +{ + return listItem; +} + +QPixmap Category::getIcon() +{ + return icon; +} + +void Category::setIconName(QString name) +{ + iconName = name; +} + +void Category::setCategoryName(QString name) +{ + categoryName = name; +} + +void Category::setListItem(QListViewItem *item) +{ + listItem = item; +} + +void Category::setIcon(QPixmap item) +{ + icon = item; +} + +void Category::initListItem() +{ + if (listItem) + { + listItem->setText (0, categoryName); + listItem->setPixmap (0, icon); + } +} -- cgit v0.9.0.2