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.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/kabc/plugins/olaccess/olaccessconverter.h b/kabc/plugins/olaccess/olaccessconverter.h
new file mode 100644
index 0000000..db1bf2d
--- a/dev/null
+++ b/kabc/plugins/olaccess/olaccessconverter.h
@@ -0,0 +1,88 @@
1/*
2 This file is part of libkabc.
3 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
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
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/*
22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk
24$Id$
25*/
26
27#ifndef KABC_SHARPDTMCONVERTER_H
28#define KABC_SHARPDTMCONVERTER_H
29
30#include <qstring.h>
31
32#include <sl/slzdb.h>
33
34#include "addressee.h"
35
36namespace SlCategory {
37 class SlCategories;
38}
39
40class SlZDataBase;
41
42namespace KABC {
43
44class SharpDTMConverter
45{
46public:
47
48 /**
49 * Constructor.
50 */
51 SharpDTMConverter();
52
53 /**
54 * Destructor.
55 */
56 virtual ~SharpDTMConverter();
57
58 bool init();
59 void deinit();
60
61 /**
62 * Converts a given sharp card to an addressee.
63 *
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
66 * @param addr The addressee.
67 */
68 bool sharpToAddressee( const CardId &contact, const SlZDataBase* database, Addressee &addr );
69
70 /**
71 * Converts an addressee to a sharp dtm contact.
72 *
73 * @param addr The addressee.
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.
76 */
77 bool addresseeToSharp( const Addressee &addr, SlZDataBase* database , const CardId &contact );
78 bool setCategories( const Addressee &addr, SlZDataBase* database , const CardId &contact );
79
80 private:
81 SlCategory::SlCategories* catDB;
82 QDate convertDate( QString );
83
84
85};
86
87}
88#endif