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

KTNEF Library

ktnefpropertyset.h

Go to the documentation of this file.
00001 /*
00002     ktnefpropertyset.h
00003 
00004     Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
00005 
00006     This file is part of KTNEF, the KDE TNEF support library/program.
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022  */
00031 #ifndef KTNEFPROPERTYSET_H
00032 #define KTNEFPROPERTYSET_H
00033 
00034 #include <QtCore/QMap>
00035 #include <QtCore/QVariant>
00036 #include "ktnef_export.h"
00037 
00038 namespace KTnef { class KTNEFProperty; }
00039 
00040 namespace KTnef {
00041 
00046 class KTNEF_EXPORT KTNEFPropertySet
00047 {
00048   public:
00052     KTNEFPropertySet();
00053 
00057     ~KTNEFPropertySet();
00058 
00068     void addProperty( int key, int type, const QVariant &value,
00069                       const QVariant &name=QVariant(), bool overwrite=false );
00070 
00082     QString findProp( int key, const QString &fallback=QString(),
00083                       bool convertToUpper=false ) const;
00084 
00096     QString findNamedProp( const QString &name,
00097                            const QString &fallback=QString(),
00098                            bool convertToUpper=false ) const;
00099 
00103     QMap<int,KTNEFProperty*>& properties();
00104 
00108     const QMap<int,KTNEFProperty*>& properties() const; //krazy:exclude=constref
00109 
00117     QVariant property( int key ) const;
00118 
00127     void addAttribute( int key, int type, const QVariant &value,
00128                        bool overwrite=false );
00129 
00133     QMap<int,KTNEFProperty*>& attributes();
00134 
00138     const QMap<int,KTNEFProperty*>& attributes() const; //krazy:exclude=constref
00139 
00147     QVariant attribute( int key ) const;
00148 
00154     void clear( bool deleteAll=false );
00155 
00156   private:
00157     //@cond PRIVATE
00158     class Private;
00159     Private *const d;
00160     //@endcond
00161 
00162     Q_DISABLE_COPY( KTNEFPropertySet )
00163 };
00164 
00165 }
00166 #endif

KTNEF Library

Skip menu "KTNEF Library"
  • 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
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • 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