• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KContacts
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KContacts"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Dependencies
  • Related Pages

Class Picker

About

Address book API for KDE

Maintainer
Laurent Montel
Supported platforms
Android, FreeBSD, iOS, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5Contacts)
target_link_libraries(yourapp KF5::Contacts)
Use with QMake
QT += KContacts 
Clone
git clone git://anongit.kde.org/kcontacts.git
Browse source
KContacts on cgit.kde.org

KContacts

  • frameworks
  • frameworks
  • kcontacts
  • src
  • vcardparser
vcardline.h
1 /*
2  This file is part of the KContacts framework.
3  Copyright (c) 2003 Tobias Koenig <[email protected]>
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 VCARDLINE_H
22 #define VCARDLINE_H
23 
24 #include <QMap>
25 #include <QString>
26 #include <QStringList>
27 #include <QVariant>
28 
29 #include "kcontacts_export.h"
30 
31 namespace KContacts {
32 class KCONTACTS_EXPORT VCardLine
33 {
34 public:
35  typedef QVector<VCardLine> List;
36  typedef QMap<QString, QStringList> ParamMap;
37 
38  VCardLine();
39  VCardLine(const QString &identifier);
40  VCardLine(const QString &identifier, const QVariant &value);
41  VCardLine(const VCardLine &line);
42 
43  ~VCardLine();
44 
45  VCardLine &operator=(const VCardLine &line);
46 
51  Q_REQUIRED_RESULT bool operator==(const VCardLine &other) const;
52 
58  void setIdentifier(const QString &identifier);
59 
63  Q_REQUIRED_RESULT QString identifier() const;
64 
68  void setValue(const QVariant &value);
69 
73  Q_REQUIRED_RESULT QVariant value() const;
74 
78  void setGroup(const QString &group);
79 
83  Q_REQUIRED_RESULT QString group() const;
84 
88  Q_REQUIRED_RESULT bool hasGroup() const;
89 
93  Q_REQUIRED_RESULT QStringList parameterList() const;
94 
101  void addParameter(const QString &param, const QString &value);
102 
109  Q_REQUIRED_RESULT QStringList parameters(const QString &param) const;
110 
117  Q_REQUIRED_RESULT QString parameter(const QString &param) const;
118 
123  Q_REQUIRED_RESULT ParamMap parameterMap() const;
124 
125 private:
126  ParamMap mParamMap;
127  QString mIdentifier;
128  QString mGroup;
129  QVariant mValue;
130 };
131 }
132 
133 #endif
QMap< QString, QStringList >
QString
QStringList
KContacts
Definition: address.h:32
QVector
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 01:11:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal