Diffstat (limited to 'kabc/plugins/qtopia/qtopiaconverter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/qtopia/qtopiaconverter.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/kabc/plugins/qtopia/qtopiaconverter.h b/kabc/plugins/qtopia/qtopiaconverter.h new file mode 100644 index 0000000..8f4c698 --- a/dev/null +++ b/kabc/plugins/qtopia/qtopiaconverter.h | |||
@@ -0,0 +1,79 @@ | |||
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 | /* | ||
22 | Enhanced Version of the file for platform independent KDE tools. | ||
23 | Copyright (c) 2004 Ulf Schenk | ||
24 | $Id$ | ||
25 | */ | ||
26 | |||
27 | #ifndef KABC_QTOPIACONVERTER_H | ||
28 | #define KABC_QTOPIACONVERTER_H | ||
29 | |||
30 | #include <qstring.h> | ||
31 | |||
32 | #include "addressee.h" | ||
33 | #include <qpe/pim/contact.h> | ||
34 | |||
35 | class Categories; | ||
36 | |||
37 | namespace KABC { | ||
38 | |||
39 | class QtopiaConverter | ||
40 | { | ||
41 | public: | ||
42 | |||
43 | /** | ||
44 | * Constructor. | ||
45 | */ | ||
46 | QtopiaConverter(); | ||
47 | |||
48 | /** | ||
49 | * Destructor. | ||
50 | */ | ||
51 | virtual ~QtopiaConverter(); | ||
52 | |||
53 | bool init(); | ||
54 | void deinit(); | ||
55 | |||
56 | /** | ||
57 | * Converts a vcard string to an addressee. | ||
58 | * | ||
59 | * @param contact The qtopia contact. | ||
60 | * @param addr The addressee. | ||
61 | */ | ||
62 | bool qtopiaToAddressee( const PimContact &contact, Addressee &addr ); | ||
63 | |||
64 | /** | ||
65 | * Converts an addressee to a vcard string. | ||
66 | * | ||
67 | * @param addr The addressee. | ||
68 | * @param contact The qtopia contact. | ||
69 | */ | ||
70 | bool addresseeToQtopia( const Addressee &addr, PimContact &contact ); | ||
71 | |||
72 | private: | ||
73 | Categories* catDB; | ||
74 | |||
75 | |||
76 | }; | ||
77 | |||
78 | } | ||
79 | #endif | ||