summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/category.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/category.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/category.cpp63
1 files changed, 63 insertions, 0 deletions
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 <mjp16@uow.edu.au> */
+/* $Id$ */
+
+#include "category.h"
+#include <qlistview.h>
+
+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);
+ }
+}