• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

vcardline.h

00001 /*
00002     This file is part of libkabc.
00003     Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef VCARDLINE_H
00022 #define VCARDLINE_H
00023 
00024 #include <QtCore/QMap>
00025 #include <QtCore/QString>
00026 #include <QtCore/QStringList>
00027 #include <QtCore/QVariant>
00028 
00029 namespace KABC {
00030 
00031 class VCardLine
00032 {
00033   public:
00034     typedef QList<VCardLine> List;
00035     typedef QMap<QString, QStringList> ParamMap;
00036 
00037     VCardLine();
00038     VCardLine( const QString &identifier );
00039     VCardLine( const QString &identifier, const QVariant &value );
00040     VCardLine( const VCardLine &line );
00041 
00042     ~VCardLine();
00043 
00044     VCardLine &operator=( const VCardLine &line );
00045 
00051     void setIdentifier( const QString &identifier );
00052 
00056     QString identifier() const;
00057 
00061     void setValue( const QVariant &value );
00062 
00066     QVariant value() const;
00067 
00071     void setGroup( const QString &group );
00072 
00076     QString group() const;
00077 
00081     bool hasGroup() const;
00082 
00086     QStringList parameterList() const;
00087 
00094     void addParameter( const QString &param, const QString &value );
00095 
00102     QStringList parameters( const QString &param ) const;
00103 
00110     QString parameter( const QString &param ) const;
00111 
00112   private:
00113     ParamMap mParamMap;
00114     QString mIdentifier;
00115     QString mGroup;
00116     QVariant mValue;
00117 
00118     class VCardLinePrivate;
00119     VCardLinePrivate *d;
00120 };
00121 
00122 }
00123 
00124 #endif

kabc

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal