summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/category.cpp
Unidiff
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 @@
1/* C implementation of RC2 encryption algorithm, as described in RFC2268 */
2/* By Matthew Palmer <mjp16@uow.edu.au> */
3/* $Id$ */
4
5#include "category.h"
6#include <qlistview.h>
7
8Category::Category()
9{
10}
11
12Category::~Category()
13{
14}
15
16QString Category::getIconName()
17{
18 return iconName;
19}
20
21QString Category::getCategoryName()
22{
23 return categoryName;
24}
25
26QListViewItem * Category::getListItem()
27{
28 return listItem;
29}
30
31QPixmap Category::getIcon()
32{
33 return icon;
34}
35
36void Category::setIconName(QString name)
37{
38 iconName = name;
39}
40
41void Category::setCategoryName(QString name)
42{
43 categoryName = name;
44}
45
46void Category::setListItem(QListViewItem *item)
47{
48 listItem = item;
49}
50
51void Category::setIcon(QPixmap item)
52{
53 icon = item;
54}
55
56void Category::initListItem()
57{
58 if (listItem)
59 {
60 listItem->setText (0, categoryName);
61 listItem->setPixmap (0, icon);
62 }
63}