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