author | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
---|---|---|
committer | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
commit | fa3772aa7ddea5725cc7e7db42d017567e4cc14c (patch) (unidiff) | |
tree | 112ec27dd148d0b381ac559fd3e1ee32a89ecd0d /noncore/apps/zsafe/category.cpp | |
parent | 059af0e82a14a32f068c2ad943dc918afca93587 (diff) | |
download | opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.zip opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.gz opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/zsafe/category.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/zsafe/category.cpp | 63 |
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 | |||
8 | Category::Category() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | Category::~Category() | ||
13 | { | ||
14 | } | ||
15 | |||
16 | QString Category::getIconName() | ||
17 | { | ||
18 | return iconName; | ||
19 | } | ||
20 | |||
21 | QString Category::getCategoryName() | ||
22 | { | ||
23 | return categoryName; | ||
24 | } | ||
25 | |||
26 | QListViewItem * Category::getListItem() | ||
27 | { | ||
28 | return listItem; | ||
29 | } | ||
30 | |||
31 | QPixmap Category::getIcon() | ||
32 | { | ||
33 | return icon; | ||
34 | } | ||
35 | |||
36 | void Category::setIconName(QString name) | ||
37 | { | ||
38 | iconName = name; | ||
39 | } | ||
40 | |||
41 | void Category::setCategoryName(QString name) | ||
42 | { | ||
43 | categoryName = name; | ||
44 | } | ||
45 | |||
46 | void Category::setListItem(QListViewItem *item) | ||
47 | { | ||
48 | listItem = item; | ||
49 | } | ||
50 | |||
51 | void Category::setIcon(QPixmap item) | ||
52 | { | ||
53 | icon = item; | ||
54 | } | ||
55 | |||
56 | void Category::initListItem() | ||
57 | { | ||
58 | if (listItem) | ||
59 | { | ||
60 | listItem->setText (0, categoryName); | ||
61 | listItem->setPixmap (0, icon); | ||
62 | } | ||
63 | } | ||