KContacts

vcard.h
1 /*
2  This file is part of the KContacts framework.
3  SPDX-FileCopyrightText: 2003 Tobias Koenig <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef VCARDPARSER_VCARD_H
9 #define VCARDPARSER_VCARD_H
10 
11 #include <QMap>
12 #include <QStringList>
13 #include <QVector>
14 #include "vcardline.h"
15 
16 namespace KContacts {
17 class VCard
18 {
19 public:
20  typedef QVector<VCard> List;
21  typedef QMap<QString, VCardLine::List> LineMap;
22 
23  enum Version {
24  v2_1,
25  v3_0,
26  v4_0
27  };
28 
29  VCard();
30  VCard(const VCard &card);
31 
32  ~VCard();
33 
34  VCard &operator=(const VCard &card);
35 
39  void clear();
40 
44  Q_REQUIRED_RESULT QStringList identifiers() const;
45 
49  void addLine(const VCardLine &line);
50 
54  Q_REQUIRED_RESULT VCardLine::List lines(const QString &identifier) const;
55 
59  Q_REQUIRED_RESULT VCardLine line(const QString &identifier) const;
60 
64  void setVersion(Version version);
65 
69  Q_REQUIRED_RESULT Version version() const;
70 
71 private:
72  LineMap mLineMap;
73 };
74 }
75 
76 #endif
KDB_EXPORT KDbVersionInfo version()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 14 2020 22:54:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.