1 | /* |
2 | This file is part of the KContacts framework. |
3 | SPDX-FileCopyrightText: 2003 Tobias Koenig <tokoe@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.0-or-later |
6 | */ |
7 | |
8 | #ifndef VCARDPARSER_H |
9 | #define VCARDPARSER_H |
10 | |
11 | #include "vcard_p.h" |
12 | #include <QByteArray> |
13 | |
14 | namespace KContacts |
15 | { |
16 | class VCardParser |
17 | { |
18 | public: |
19 | VCardParser(); |
20 | ~VCardParser(); |
21 | |
22 | static VCard::List parseVCards(const QByteArray &text); |
23 | static QByteArray createVCards(const VCard::List &list); |
24 | |
25 | private: |
26 | Q_DISABLE_COPY(VCardParser) |
27 | class VCardParserPrivate; |
28 | VCardParserPrivate *d = nullptr; |
29 | }; |
30 | } |
31 | |
32 | #endif |
33 | |