summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/category.cpp
blob: 15448f083c5f431612996ebca04317c5f9261123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* C implementation of RC2 encryption algorithm, as described in RFC2268 */
/* By Matthew Palmer <mjp16@uow.edu.au> */
/* $Id$ */

#include "category.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);
   }
}