summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-07-17 00:41:28 (UTC)
committer ulf69 <ulf69>2004-07-17 00:41:28 (UTC)
commit8023ceff4cb170c0f8a46881345e7ea92674ef0e (patch) (unidiff)
tree5482877133b6512a2d0d4d2b8aea4fa29a3e2786
parentafdcf8b412f8831d0027aa54d7e8c652a84e02b7 (diff)
downloadkdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.zip
kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.gz
kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.bz2
implementation of the sharp resource plugin
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/converter/sharpdtm/sharpdtmconverter.h25
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
@@ -29,13 +29,16 @@ $Id$
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
35namespace SlCategory { 36namespace SlCategory {
36 class SlCategories; 37 class SlCategories;
37} 38}
38 39
40class SlZDataBase;
41
39namespace KABC { 42namespace KABC {
40 43
41class SharpDTMConverter 44class SharpDTMConverter
@@ -51,30 +54,32 @@ public:
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}