summaryrefslogtreecommitdiffabout
path: root/kabc/formats/vcardformatplugin2.h
Unidiff
Diffstat (limited to 'kabc/formats/vcardformatplugin2.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/formats/vcardformatplugin2.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/kabc/formats/vcardformatplugin2.h b/kabc/formats/vcardformatplugin2.h
new file mode 100644
index 0000000..585ab6b
--- a/dev/null
+++ b/kabc/formats/vcardformatplugin2.h
@@ -0,0 +1,68 @@
1/*
2 This file is part of libkabc.
3 Copyright (c) 2003 Zack Rusin <zack@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
25$Id$
26*/
27
28#ifndef VCARDFORMATPLUGIN2_H
29#define VCARDFORMATPLUGIN2_H
30
31#include "formatplugin.h"
32#include "addressee.h"
33
34class QFile;
35
36namespace KABC {
37
38 class Resource;
39 class AddressBook;
40 /**
41 @short Interface of vCard backend for address book.
42
43 This class implements the file format interface of address book entries for
44 the vCard format.
45 */
46 class VCardFormatPlugin2 : public FormatPlugin
47 {
48 public:
49 VCardFormatPlugin2();
50 virtual ~VCardFormatPlugin2();
51
52 bool load( Addressee &, QFile *file );
53 bool loadAll( AddressBook *, Resource *, QFile *file );
54 void save( const Addressee &, QFile *file );
55 void saveAll( AddressBook *, Resource *, QFile *file );
56
57 bool checkFormat( QFile *file ) const;
58
59 private:
60 struct VCardFormatPrivate;
61 VCardFormatPrivate *d;
62 };
63
64
65}
66
67
68#endif