• 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
ktnefproperty.h
Go to the documentation of this file.
1 /*
2  ktnefproperty.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 KTNEFPROPERTY_H
32 #define KTNEFPROPERTY_H
33 
34 #include <QtCore/QVariant>
35 #include <QtCore/QString>
36 #include "ktnef_export.h"
37 
38 namespace KTnef {
39 
44 class KTNEF_EXPORT KTNEFProperty
45 {
46  public:
50  enum MAPIType {
51  UInt16 = 0x0002,
52  ULong = 0x0003,
53  Float = 0x0004,
54  Double = 0x0005,
55  Boolean = 0x000B,
56  Object = 0x000D,
57  Time = 0x0040,
58  String8 = 0x001E,
59  UString = 0x001F,
60  Binary = 0x0102
61  };
62 
66  KTNEFProperty();
67 
76  KTNEFProperty( int key_, int type_, const QVariant &value_,
77  const QVariant &name_ = QVariant() );
78 
84  KTNEFProperty( const KTNEFProperty &p );
85 
89  ~KTNEFProperty();
90 
91  KTNEFProperty &operator=( const KTNEFProperty &other );
92 
98  QString keyString() const;
99 
105  QString valueString() const;
106 
115  static QString formatValue( const QVariant &v, bool beautify=true );
116 
122  int key() const;
123 
129  int type() const;
130 
136  QVariant value() const;
137 
143  QVariant name() const;
144 
150  bool isVector() const;
151 
152  private:
153  //@cond PRIVATE
154  class Private;
155  Private *const d;
156  //@endcond
157 };
158 
159 }
160 #endif
KTnef::KTNEFProperty::MAPIType
MAPIType
The different MAPI types.
Definition: ktnefproperty.h:50
KTnef::KTNEFProperty
Interface for setting MAPI properties.
Definition: ktnefproperty.h:44
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