Diffstat (limited to 'kabc/converter/sharpdtm/sharpdtmconverter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/converter/sharpdtm/sharpdtmconverter.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/kabc/converter/sharpdtm/sharpdtmconverter.h b/kabc/converter/sharpdtm/sharpdtmconverter.h new file mode 100644 index 0000000..85edea6 --- a/dev/null +++ b/kabc/converter/sharpdtm/sharpdtmconverter.h | |||
@@ -0,0 +1,81 @@ | |||
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_SHARPDTMCONVERTER_H | ||
28 | #define KABC_SHARPDTMCONVERTER_H | ||
29 | |||
30 | #include <qstring.h> | ||
31 | |||
32 | #include "addressee.h" | ||
33 | #include <qpe/pim/contact.h> | ||
34 | |||
35 | namespace SlCategory { | ||
36 | class SlCategories; | ||
37 | } | ||
38 | |||
39 | namespace KABC { | ||
40 | |||
41 | class SharpDTMConverter | ||
42 | { | ||
43 | public: | ||
44 | |||
45 | /** | ||
46 | * Constructor. | ||
47 | */ | ||
48 | SharpDTMConverter(); | ||
49 | |||
50 | /** | ||
51 | * Destructor. | ||
52 | */ | ||
53 | virtual ~SharpDTMConverter(); | ||
54 | |||
55 | bool init(); | ||
56 | void deinit(); | ||
57 | |||
58 | /** | ||
59 | * Converts a vcard string to an addressee. | ||
60 | * | ||
61 | * @param contact The sharp contact. | ||
62 | * @param addr The addressee. | ||
63 | */ | ||
64 | bool sharpToAddressee( const PimContact &contact, Addressee &addr ); | ||
65 | |||
66 | /** | ||
67 | * Converts an addressee to a sharp dtm contact. | ||
68 | * | ||
69 | * @param addr The addressee. | ||
70 | * @param contact The sharp contact. | ||
71 | */ | ||
72 | bool addresseeToSharp( const Addressee &addr, PimContact &contact ); | ||
73 | |||
74 | private: | ||
75 | SlCategory::SlCategories* catDB; | ||
76 | |||
77 | |||
78 | }; | ||
79 | |||
80 | } | ||
81 | #endif | ||