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

KTNEF Library

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 {
39  class KTNEFProperty;
40 }
41 
42 namespace KTnef {
43 
48 class KTNEF_EXPORT KTNEFPropertySet
49 {
50  public:
54  KTNEFPropertySet();
55 
59  ~KTNEFPropertySet();
60 
70  void addProperty( int key, int type, const QVariant &value,
71  const QVariant &name=QVariant(), bool overwrite=false );
72 
84  QString findProp( int key, const QString &fallback=QString(),
85  bool convertToUpper=false ) const;
86 
98  QString findNamedProp( const QString &name,
99  const QString &fallback=QString(),
100  bool convertToUpper=false ) const;
101 
105  QMap<int,KTNEFProperty*>& properties();
106 
110  const QMap<int,KTNEFProperty*>& properties() const; //krazy:exclude=constref
111 
119  QVariant property( int key ) const;
120 
129  void addAttribute( int key, int type, const QVariant &value,
130  bool overwrite=false );
131 
135  QMap<int,KTNEFProperty*>& attributes();
136 
140  const QMap<int,KTNEFProperty*>& attributes() const; //krazy:exclude=constref
141 
149  QVariant attribute( int key ) const;
150 
156  void clear( bool deleteAll=false );
157 
158  private:
159  //@cond PRIVATE
160  class Private;
161  Private *const d;
162  //@endcond
163 
164  Q_DISABLE_COPY( KTNEFPropertySet )
165 };
166 
167 }
168 #endif
KTnef::KTNEFPropertySet
Interface for setting MAPI properties and TNEF attributes.
Definition: ktnefpropertyset.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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