summaryrefslogtreecommitdiffabout
Unidiff
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
@@ -26,19 +26,22 @@ $Id$
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
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
42{ 45{
43public: 46public:
44 47
@@ -48,34 +51,36 @@ public:
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