author | ulf69 <ulf69> | 2004-06-30 22:12:32 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-30 22:12:32 (UTC) |
commit | 34c8059a5400d4a13456a5b4cb90328369999f20 (patch) (unidiff) | |
tree | 694e9a6b7814522ddec59b52cbaad3fe5690afea /kabc/converter/opie/opieconverter.h | |
parent | bd79f5a89b0d1071ef9ad749fe3a8096bbc25b0b (diff) | |
download | kdepimpi-34c8059a5400d4a13456a5b4cb90328369999f20.zip kdepimpi-34c8059a5400d4a13456a5b4cb90328369999f20.tar.gz kdepimpi-34c8059a5400d4a13456a5b4cb90328369999f20.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'kabc/converter/opie/opieconverter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/converter/opie/opieconverter.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/kabc/converter/opie/opieconverter.h b/kabc/converter/opie/opieconverter.h new file mode 100644 index 0000000..55a869a --- a/dev/null +++ b/kabc/converter/opie/opieconverter.h | |||
@@ -0,0 +1,74 @@ | |||
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 | /* | ||
22 | Enhanced Version of the file for platform independent KDE tools. | ||
23 | Copyright (c) 2004 Ulf Schenk | ||
24 | |||
25 | $Id$ | ||
26 | */ | ||
27 | |||
28 | #ifndef KABC_OPIECONVERTER_H | ||
29 | #define KABC_OPIECONVERTER_H | ||
30 | |||
31 | #include <qstring.h> | ||
32 | |||
33 | #include "addressee.h" | ||
34 | #include <opie/ocontact.h> | ||
35 | |||
36 | namespace KABC { | ||
37 | |||
38 | class OpieConverter | ||
39 | { | ||
40 | public: | ||
41 | |||
42 | /** | ||
43 | * Constructor. | ||
44 | */ | ||
45 | OpieConverter(); | ||
46 | |||
47 | /** | ||
48 | * Destructor. | ||
49 | */ | ||
50 | ~OpieConverter(); | ||
51 | |||
52 | /** | ||
53 | * Converts a vcard string to an addressee. | ||
54 | * | ||
55 | * @param contact The opie contact. | ||
56 | * @param addr The addressee. | ||
57 | */ | ||
58 | bool opieToAddressee( OContact &contact, Addressee &addr ); | ||
59 | |||
60 | /** | ||
61 | * Converts an addressee to a vcard string. | ||
62 | * | ||
63 | * @param addr The addressee. | ||
64 | * @param contact The opie contact. | ||
65 | */ | ||
66 | bool addresseeToOpie( const Addressee &addr, OContact &contact ); | ||
67 | |||
68 | private: | ||
69 | QString dateToAddresseeString( const QDate &date ); | ||
70 | |||
71 | }; | ||
72 | |||
73 | } | ||
74 | #endif | ||