summaryrefslogtreecommitdiffabout
path: root/kabc
authorulf69 <ulf69>2004-07-17 00:41:28 (UTC)
committer ulf69 <ulf69>2004-07-17 00:41:28 (UTC)
commit8023ceff4cb170c0f8a46881345e7ea92674ef0e (patch) (unidiff)
tree5482877133b6512a2d0d4d2b8aea4fa29a3e2786 /kabc
parentafdcf8b412f8831d0027aa54d7e8c652a84e02b7 (diff)
downloadkdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.zip
kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.gz
kdepimpi-8023ceff4cb170c0f8a46881345e7ea92674ef0e.tar.bz2
implementation of the sharp resource plugin
Diffstat (limited to 'kabc') (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
@@ -8,74 +8,79 @@
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#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
45 /** 48 /**
46 * Constructor. 49 * Constructor.
47 */ 50 */
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