summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/categorylist.cpp
Unidiff
Diffstat (limited to 'noncore/apps/zsafe/categorylist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/categorylist.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/noncore/apps/zsafe/categorylist.cpp b/noncore/apps/zsafe/categorylist.cpp
new file mode 100644
index 0000000..2fa59d2
--- a/dev/null
+++ b/noncore/apps/zsafe/categorylist.cpp
@@ -0,0 +1,35 @@
1/* C implementation of RC2 encryption algorithm, as described in RFC2268 */
2/* By Matthew Palmer <mjp16@uow.edu.au> */
3/* $Id$ */
4
5#include "categorylist.h"
6
7CategoryList::CategoryList()
8{
9}
10
11CategoryList::~CategoryList()
12{
13}
14
15void CategoryList::insert (QString key, Category *category)
16{
17 categoryList.insert ((const char *) key, category);
18}
19
20Category *CategoryList::find (QString key)
21{
22 return categoryList.find ((const char *) key);
23}
24
25void CategoryList::remove (QString key)
26{
27 categoryList.remove ((const char *) key);
28}
29
30void CategoryList::clear()
31{
32 categoryList.clear();
33}
34
35