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

KTNEF Library

  • ktnef
ktnefpropertyset.h
Go to the documentation of this file.
1 /*
2  ktnefpropertyset.h
3 
4  Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
5 
6  This file is part of KTNEF, the KDE TNEF support library/program.
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22  */
31 #ifndef KTNEFPROPERTYSET_H
32 #define KTNEFPROPERTYSET_H
33 
34 #include <QtCore/QMap>
35 #include <QtCore/QVariant>
36 #include "ktnef_export.h"
37 
38 namespace KTnef { class KTNEFProperty; }
39 
40 namespace KTnef {
41 
46 class KTNEF_EXPORT KTNEFPropertySet
47 {
48  public:
52  KTNEFPropertySet();
53 
57  ~KTNEFPropertySet();
58 
68  void addProperty( int key, int type, const QVariant &value,
69  const QVariant &name=QVariant(), bool overwrite=false );
70 
82  QString findProp( int key, const QString &fallback=QString(),
83  bool convertToUpper=false ) const;
84 
96  QString findNamedProp( const QString &name,
97  const QString &fallback=QString(),
98  bool convertToUpper=false ) const;
99 
103  QMap<int,KTNEFProperty*>& properties();
104 
108  const QMap<int,KTNEFProperty*>& properties() const; //krazy:exclude=constref
109 
117  QVariant property( int key ) const;
118 
127  void addAttribute( int key, int type, const QVariant &value,
128  bool overwrite=false );
129 
133  QMap<int,KTNEFProperty*>& attributes();
134 
138  const QMap<int,KTNEFProperty*>& attributes() const; //krazy:exclude=constref
139 
147  QVariant attribute( int key ) const;
148 
154  void clear( bool deleteAll=false );
155 
156  private:
157  //@cond PRIVATE
158  class Private;
159  Private *const d;
160  //@endcond
161 
162  Q_DISABLE_COPY( KTNEFPropertySet )
163 };
164 
165 }
166 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:10:25 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs-4.9.1 API Reference

Skip menu "kdepimlibs-4.9.1 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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