Diffstat (limited to 'kabc/plugins/sharpdtm/sharpdtmconverter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/sharpdtm/sharpdtmconverter.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kabc/plugins/sharpdtm/sharpdtmconverter.h b/kabc/plugins/sharpdtm/sharpdtmconverter.h new file mode 100644 index 0000000..99e0413 --- a/dev/null +++ b/kabc/plugins/sharpdtm/sharpdtmconverter.h | |||
@@ -0,0 +1,86 @@ | |||
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 <sl/slzdb.h> | ||
33 | |||
34 | #include "addressee.h" | ||
35 | |||
36 | namespace SlCategory { | ||
37 | class SlCategories; | ||
38 | } | ||
39 | |||
40 | class SlZDataBase; | ||
41 | |||
42 | namespace KABC { | ||
43 | |||
44 | class SharpDTMConverter | ||
45 | { | ||
46 | public: | ||
47 | |||
48 | /** | ||
49 | * Constructor. | ||
50 | */ | ||
51 | SharpDTMConverter(); | ||
52 | |||
53 | /** | ||
54 | * Destructor. | ||
55 | */ | ||
56 | virtual ~SharpDTMConverter(); | ||
57 | |||
58 | bool init(); | ||
59 | void deinit(); | ||
60 | |||
61 | /** | ||
62 | * Converts a given sharp card to an addressee. | ||
63 | * | ||
64 | * @param contact The sharp card id, eventhough it might be 0, if the contact is a new one. | ||
65 | * @param database The sharp database pointer we use for the conversion | ||
66 | * @param addr The addressee. | ||
67 | */ | ||
68 | bool sharpToAddressee( const CardId &contact, const SlZDataBase* database, Addressee &addr ); | ||
69 | |||
70 | /** | ||
71 | * Converts an addressee to a sharp dtm contact. | ||
72 | * | ||
73 | * @param addr The addressee. | ||
74 | * @param database The sharp database pointer we use for the conversion | ||
75 | * @param contact The sharp card id, eventhough it might be 0, if the contact is a new one. | ||
76 | */ | ||
77 | bool addresseeToSharp( const Addressee &addr, SlZDataBase* database , const CardId &contact ); | ||
78 | |||
79 | private: | ||
80 | SlCategory::SlCategories* catDB; | ||
81 | |||
82 | |||
83 | }; | ||
84 | |||
85 | } | ||
86 | #endif | ||