• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kabc

  • sources
  • kde-4.14
  • kdepimlibs
  • kabc
  • vcardparser
vcard.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2003 Tobias Koenig <tokoe@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 VCARDPARSER_VCARD_H
22 #define VCARDPARSER_VCARD_H
23 
24 #include <QtCore/QMap>
25 #include <QtCore/QStringList>
26 
27 #include "vcardline.h"
28 
29 namespace KABC {
30 
31 class VCard
32 {
33  public:
34  typedef QList<VCard> List;
35  typedef QMap<QString, VCardLine::List> LineMap;
36 
37  enum Version {
38  v2_1,
39  v3_0,
40  v4_0
41  };
42 
43  VCard();
44  VCard( const VCard &card );
45 
46  ~VCard();
47 
48  VCard &operator=( const VCard &card );
49 
53  void clear();
54 
58  QStringList identifiers() const;
59 
63  void addLine( const VCardLine &line );
64 
68  VCardLine::List lines( const QString &identifier ) const;
69 
73  VCardLine line( const QString &identifier ) const;
74 
78  void setVersion( Version version );
79 
83  Version version() const;
84 
85  private:
86  LineMap mLineMap;
87 
88  class VCardPrivate;
89  VCardPrivate *d;
90 };
91 
92 }
93 
94 #endif
QMap< QString, VCardLine::List >
QString
QList
Definition: contactgrouptool.h:30
QStringList
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



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