KContacts

vcardline.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 VCARDLINE_H
9 #define VCARDLINE_H
10 
11 #include <QMap>
12 #include <QString>
13 #include <QStringList>
14 #include <QVariant>
15 
16 #include "kcontacts_export.h"
17 
18 namespace KContacts {
19 class KCONTACTS_EXPORT VCardLine
20 {
21 public:
22  typedef QVector<VCardLine> List;
23  typedef QMap<QString, QStringList> ParamMap;
24 
25  VCardLine();
26  VCardLine(const QString &identifier);
27  VCardLine(const QString &identifier, const QVariant &value);
28  VCardLine(const VCardLine &line);
29 
30  ~VCardLine();
31 
32  VCardLine &operator=(const VCardLine &line);
33 
38  Q_REQUIRED_RESULT bool operator==(const VCardLine &other) const;
39 
45  void setIdentifier(const QString &identifier);
46 
50  Q_REQUIRED_RESULT QString identifier() const;
51 
55  void setValue(const QVariant &value);
56 
60  Q_REQUIRED_RESULT QVariant value() const;
61 
65  void setGroup(const QString &group);
66 
70  Q_REQUIRED_RESULT QString group() const;
71 
75  Q_REQUIRED_RESULT bool hasGroup() const;
76 
80  Q_REQUIRED_RESULT QStringList parameterList() const;
81 
88  void addParameter(const QString &param, const QString &value);
89 
96  Q_REQUIRED_RESULT QStringList parameters(const QString &param) const;
97 
104  Q_REQUIRED_RESULT QString parameter(const QString &param) const;
105 
110  Q_REQUIRED_RESULT ParamMap parameterMap() const;
111 
112 private:
113  ParamMap mParamMap;
114  QString mIdentifier;
115  QString mGroup;
116  QVariant mValue;
117 };
118 }
119 
120 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 7 2020 22:53:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.