KTnef

ktnefproperty.h
Go to the documentation of this file.
1 /*
2  ktnefproperty.h
3 
4  SPDX-FileCopyrightText: 2002 Michael Goffioul <[email protected]>
5 
6  This file is part of KTNEF, the KDE TNEF support library/program.
7 
8  SPDX-License-Identifier: LGPL-2.0-or-later
9  */
18 #ifndef KTNEFPROPERTY_H
19 #define KTNEFPROPERTY_H
20 
21 #include <QVariant>
22 #include <QString>
23 class KTNEFPropertyPrivate;
24 #include "ktnef_export.h"
25 
26 namespace KTnef
27 {
28 
33 class KTNEF_EXPORT KTNEFProperty
34 {
35 public:
39  enum MAPIType {
40  UInt16 = 0x0002,
41  ULong = 0x0003,
42  Float = 0x0004,
43  Double = 0x0005,
44  Boolean = 0x000B,
45  Object = 0x000D,
46  Time = 0x0040,
47  String8 = 0x001E,
48  UString = 0x001F,
49  Binary = 0x0102
50  };
51 
55  KTNEFProperty();
56 
65  KTNEFProperty(int key_, int type_, const QVariant &value_,
66  const QVariant &name_ = QVariant());
67 
73  KTNEFProperty(const KTNEFProperty &p);
74 
78  ~KTNEFProperty();
79 
80  KTNEFProperty &operator=(const KTNEFProperty &other);
81 
87  Q_REQUIRED_RESULT QString keyString() const;
88 
94  Q_REQUIRED_RESULT QString valueString() const;
95 
104  Q_REQUIRED_RESULT static QString formatValue(const QVariant &v, bool beautify = true);
105 
111  Q_REQUIRED_RESULT int key() const;
112 
118  Q_REQUIRED_RESULT int type() const;
119 
125  Q_REQUIRED_RESULT QVariant value() const;
126 
132  Q_REQUIRED_RESULT QVariant name() const;
133 
139  Q_REQUIRED_RESULT bool isVector() const;
140 
141 private:
142  //@cond PRIVATE
143  KTNEFPropertyPrivate *const d;
144  //@endcond
145 };
146 
147 }
148 #endif
MAPIType
The different MAPI types.
Definition: ktnefproperty.h:39
Interface for setting MAPI properties.
Definition: ktnefproperty.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Oct 24 2020 23:22:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.