KTNEF Library
ktnefproperty.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00031 #ifndef KTNEFPROPERTY_H
00032 #define KTNEFPROPERTY_H
00033
00034 #include <QtCore/QVariant>
00035 #include <QtCore/QString>
00036 #include "ktnef_export.h"
00037
00038 namespace KTnef {
00039
00044 class KTNEF_EXPORT KTNEFProperty
00045 {
00046 public:
00050 enum MAPIType
00051 {
00052 UInt16 = 0x0002,
00053 ULong = 0x0003,
00054 Float = 0x0004,
00055 Double = 0x0005,
00056 Boolean = 0x000B,
00057 Object = 0x000D,
00058 Time = 0x0040,
00059 String8 = 0x001E,
00060 UString = 0x001F,
00061 Binary = 0x0102
00062 };
00063
00067 KTNEFProperty();
00068
00077 KTNEFProperty( int key_, int type_, const QVariant &value_,
00078 const QVariant &name_ = QVariant() );
00079
00085 KTNEFProperty( const KTNEFProperty &p );
00086
00090 ~KTNEFProperty();
00091
00092 KTNEFProperty& operator=( const KTNEFProperty &other );
00093
00099 QString keyString() const;
00100
00106 QString valueString() const;
00107
00116 static QString formatValue( const QVariant &v, bool beautify=true );
00117
00123 int key() const;
00124
00130 int type() const;
00131
00137 QVariant value() const;
00138
00144 QVariant name() const;
00145
00151 bool isVector() const;
00152
00153 private:
00154
00155 class Private;
00156 Private* const d;
00157
00158 };
00159
00160 }
00161 #endif