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
@@ -8,81 +8,75 @@
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 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 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, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20 20
21/* 21/*
22Enhanced Version of the file for platform independent KDE tools. 22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk 23Copyright (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