author | ulf69 <ulf69> | 2004-07-17 00:41:28 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-17 00:41:28 (UTC) |
commit | 8023ceff4cb170c0f8a46881345e7ea92674ef0e (patch) (unidiff) | |
tree | 5482877133b6512a2d0d4d2b8aea4fa29a3e2786 /kabc | |
parent | afdcf8b412f8831d0027aa54d7e8c652a84e02b7 (diff) | |
download | kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.zip kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.gz kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.bz2 |
implementation of the sharp resource plugin
-rw-r--r-- | kabc/converter/sharpdtm/sharpdtmconverter.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/kabc/converter/sharpdtm/sharpdtmconverter.h b/kabc/converter/sharpdtm/sharpdtmconverter.h index 85edea6..6a55431 100644 --- a/kabc/converter/sharpdtm/sharpdtmconverter.h +++ b/kabc/converter/sharpdtm/sharpdtmconverter.h | |||
@@ -20,62 +20,67 @@ | |||
20 | 20 | ||
21 | /* | 21 | /* |
22 | Enhanced Version of the file for platform independent KDE tools. | 22 | Enhanced Version of the file for platform independent KDE tools. |
23 | Copyright (c) 2004 Ulf Schenk | 23 | Copyright (c) 2004 Ulf Schenk |
24 | $Id$ | 24 | $Id$ |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #ifndef KABC_SHARPDTMCONVERTER_H | 27 | #ifndef KABC_SHARPDTMCONVERTER_H |
28 | #define KABC_SHARPDTMCONVERTER_H | 28 | #define KABC_SHARPDTMCONVERTER_H |
29 | 29 | ||
30 | #include <qstring.h> | 30 | #include <qstring.h> |
31 | 31 | ||
32 | #include <sl/slzdb.h> | ||
33 | |||
32 | #include "addressee.h" | 34 | #include "addressee.h" |
33 | #include <qpe/pim/contact.h> | ||
34 | 35 | ||
35 | namespace SlCategory { | 36 | namespace SlCategory { |
36 | class SlCategories; | 37 | class SlCategories; |
37 | } | 38 | } |
38 | 39 | ||
40 | class SlZDataBase; | ||
41 | |||
39 | namespace KABC { | 42 | namespace KABC { |
40 | 43 | ||
41 | class SharpDTMConverter | 44 | class SharpDTMConverter |
42 | { | 45 | { |
43 | public: | 46 | public: |
44 | 47 | ||
45 | /** | 48 | /** |
46 | * Constructor. | 49 | * Constructor. |
47 | */ | 50 | */ |
48 | SharpDTMConverter(); | 51 | SharpDTMConverter(); |
49 | 52 | ||
50 | /** | 53 | /** |
51 | * Destructor. | 54 | * Destructor. |
52 | */ | 55 | */ |
53 | virtual ~SharpDTMConverter(); | 56 | virtual ~SharpDTMConverter(); |
54 | 57 | ||
55 | bool init(); | 58 | bool init(); |
56 | void deinit(); | 59 | void deinit(); |
57 | 60 | ||
58 | /** | 61 | /** |
59 | * Converts a vcard string to an addressee. | 62 | * Converts a given sharp card to an addressee. |
60 | * | 63 | * |
61 | * @param contact The sharp contact. | 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 | ||
62 | * @param addr The addressee. | 66 | * @param addr The addressee. |
63 | */ | 67 | */ |
64 | bool sharpToAddressee( const PimContact &contact, Addressee &addr ); | 68 | bool sharpToAddressee( const CardId &contact, const SlZDataBase* database, Addressee &addr ); |
65 | 69 | ||
66 | /** | 70 | /** |
67 | * Converts an addressee to a sharp dtm contact. | 71 | * Converts an addressee to a sharp dtm contact. |
68 | * | 72 | * |
69 | * @param addr The addressee. | 73 | * @param addr The addressee. |
70 | * @param contact The sharp contact. | 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. | ||
71 | */ | 76 | */ |
72 | bool addresseeToSharp( const Addressee &addr, PimContact &contact ); | 77 | bool addresseeToSharp( const Addressee &addr, const SlZDataBase* database , const CardId &contact ); |
73 | 78 | ||
74 | private: | 79 | private: |
75 | SlCategory::SlCategories* catDB; | 80 | SlCategory::SlCategories* catDB; |
76 | 81 | ||
77 | 82 | ||
78 | }; | 83 | }; |
79 | 84 | ||
80 | } | 85 | } |
81 | #endif | 86 | #endif |