KTnef

ktnefproperty.h
Go to the documentation of this file.
1 /*
2  ktnefproperty.h
3 
4  Copyright (C) 2002 Michael Goffioul <[email protected]>
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 <QVariant>
35 #include <QString>
36 class KTNEFPropertyPrivate;
37 #include "ktnef_export.h"
38 
39 namespace KTnef
40 {
41 
46 class KTNEF_EXPORT KTNEFProperty
47 {
48 public:
52  enum MAPIType {
53  UInt16 = 0x0002,
54  ULong = 0x0003,
55  Float = 0x0004,
56  Double = 0x0005,
57  Boolean = 0x000B,
58  Object = 0x000D,
59  Time = 0x0040,
60  String8 = 0x001E,
61  UString = 0x001F,
62  Binary = 0x0102
63  };
64 
68  KTNEFProperty();
69 
78  KTNEFProperty(int key_, int type_, const QVariant &value_,
79  const QVariant &name_ = QVariant());
80 
86  KTNEFProperty(const KTNEFProperty &p);
87 
91  ~KTNEFProperty();
92 
93  KTNEFProperty &operator=(const KTNEFProperty &other);
94 
100  Q_REQUIRED_RESULT QString keyString() const;
101 
107  Q_REQUIRED_RESULT QString valueString() const;
108 
117  Q_REQUIRED_RESULT static QString formatValue(const QVariant &v, bool beautify = true);
118 
124  Q_REQUIRED_RESULT int key() const;
125 
131  Q_REQUIRED_RESULT int type() const;
132 
138  Q_REQUIRED_RESULT QVariant value() const;
139 
145  Q_REQUIRED_RESULT QVariant name() const;
146 
152  Q_REQUIRED_RESULT bool isVector() const;
153 
154 private:
155  //@cond PRIVATE
156  KTNEFPropertyPrivate *const d;
157  //@endcond
158 };
159 
160 }
161 #endif
MAPIType
The different MAPI types.
Definition: ktnefproperty.h:52
Interface for setting MAPI properties.
Definition: ktnefproperty.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 24 2020 22:45:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.