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 UInt16 = 0x0002,
00052 ULong = 0x0003,
00053 Float = 0x0004,
00054 Double = 0x0005,
00055 Boolean = 0x000B,
00056 Object = 0x000D,
00057 Time = 0x0040,
00058 String8 = 0x001E,
00059 UString = 0x001F,
00060 Binary = 0x0102
00061 };
00062
00066 KTNEFProperty();
00067
00076 KTNEFProperty( int key_, int type_, const QVariant &value_,
00077 const QVariant &name_ = QVariant() );
00078
00084 KTNEFProperty( const KTNEFProperty &p );
00085
00089 ~KTNEFProperty();
00090
00091 KTNEFProperty &operator=( const KTNEFProperty &other );
00092
00098 QString keyString() const;
00099
00105 QString valueString() const;
00106
00115 static QString formatValue( const QVariant &v, bool beautify=true );
00116
00122 int key() const;
00123
00129 int type() const;
00130
00136 QVariant value() const;
00137
00143 QVariant name() const;
00144
00150 bool isVector() const;
00151
00152 private:
00153
00154 class Private;
00155 Private *const d;
00156
00157 };
00158
00159 }
00160 #endif