summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/opie/opieconverter.h
authorulf69 <ulf69>2004-07-26 22:10:28 (UTC)
committer ulf69 <ulf69>2004-07-26 22:10:28 (UTC)
commitd7336fb5466f19b2757392fa96b7c4eb713b7bd9 (patch) (unidiff)
tree6878487c18874a09a83ef44dfc75f11be56b242a /kabc/plugins/opie/opieconverter.h
parentcd4e3730fed61ca0a2c4195bff83669d7ae6610c (diff)
downloadkdepimpi-d7336fb5466f19b2757392fa96b7c4eb713b7bd9.zip
kdepimpi-d7336fb5466f19b2757392fa96b7c4eb713b7bd9.tar.gz
kdepimpi-d7336fb5466f19b2757392fa96b7c4eb713b7bd9.tar.bz2
added the converter to the resource plugin. That makes the sync impl easier
Diffstat (limited to 'kabc/plugins/opie/opieconverter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/opie/opieconverter.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/kabc/plugins/opie/opieconverter.h b/kabc/plugins/opie/opieconverter.h
new file mode 100644
index 0000000..d251a24
--- a/dev/null
+++ b/kabc/plugins/opie/opieconverter.h
@@ -0,0 +1,80 @@
1/*
2 This file is part of libkabc.
3 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/*
22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk
24
25$Id$
26*/
27
28#ifndef KABC_OPIECONVERTER_H
29#define KABC_OPIECONVERTER_H
30
31#include <qstring.h>
32
33#include "addressee.h"
34#include <opie/ocontact.h>
35
36class Categories;
37
38namespace KABC {
39
40class OpieConverter
41{
42public:
43
44 /**
45 * Constructor.
46 */
47 OpieConverter();
48
49 /**
50 * Destructor.
51 */
52 virtual ~OpieConverter();
53
54 bool init();
55 void deinit();
56
57 /**
58 * Converts a vcard string to an addressee.
59 *
60 * @param contact The opie contact.
61 * @param addr The addressee.
62 */
63 bool opieToAddressee( const OContact &contact, Addressee &addr );
64
65 /**
66 * Converts an addressee to a vcard string.
67 *
68 * @param addr The addressee.
69 * @param contact The opie contact.
70 */
71 bool addresseeToOpie( const Addressee &addr, OContact &contact );
72
73 private:
74 Categories* catDB;
75
76
77};
78
79}
80#endif