1/*
2 This file is part of libkabc.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@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., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KABC_VCARDFORMAT_H
22#define KABC_VCARDFORMAT_H
23
24#include "format.h"
25
26namespace KABC {
27
28class AddressBook;
29class Addressee;
30
31/**
32 @short Interface of vCard backend for address book.
33
34 This class implements the file format interface of address book entries for
35 the vCard format.
36*/
37class KABC_DEPRECATED_EXPORT VCardFormat : public Format
38{
39 public:
40 VCardFormat();
41 virtual ~VCardFormat();
42
43 bool load( Addressee &, QFile *file );
44 bool loadAll( AddressBook *, Resource *, QFile *file );
45 void save( const Addressee &, QFile *file );
46 void saveAll( AddressBook *, Resource *, QFile *file );
47
48 bool checkFormat( QFile *file ) const;
49
50 private:
51 class Private;
52 Private *const d;
53};
54
55}
56#endif
57