KTNEF Library
ktnefattach.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 KTNEFATTACH_H
00032 #define KTNEFATTACH_H
00033
00034 #include <QtCore/QMap>
00035 #include <QtCore/QString>
00036 #include <QtCore/QVariant>
00037
00038 #include "ktnefpropertyset.h"
00039 #include "ktnef_export.h"
00040
00041 namespace KTnef { class KTNEFProperty; }
00042
00043 namespace KTnef {
00044
00049 class KTNEF_EXPORT KTNEFAttach : public KTNEFPropertySet
00050 {
00051 public:
00055 enum ParseState {
00056 Unparsed = 0x0000,
00057 TitleParsed = 0x0001,
00058 DataParsed = 0x0002,
00059 InfoParsed = 0x0004
00060 };
00061
00065 KTNEFAttach();
00066
00070 ~KTNEFAttach();
00071
00075 void setTitleParsed();
00076
00080 void setDataParsed();
00081
00085 void unsetDataParser();
00086
00090 void setInfoParsed();
00091
00095 bool titleParsed() const;
00096
00100 bool dataParsed() const;
00101
00105 bool infoParsed() const;
00106
00114 bool checkState( int state ) const;
00115
00121 void setOffset( int offset );
00122
00126 int offset() const;
00127
00133 void setSize( int size );
00134
00138 int size() const;
00139
00145 void setDisplaySize( int size );
00146
00150 int displaySize() const;
00151
00157 void setName( const QString &str );
00158
00162 QString name() const;
00163
00169 void setIndex( int indx );
00170
00174 int index() const;
00175
00181 void setFileName( const QString &str );
00182
00186 QString fileName() const;
00187
00193 void setDisplayName( const QString &str );
00194
00198 QString displayName() const;
00199
00205 void setMimeTag( const QString &str );
00206
00210 QString mimeTag() const;
00211
00217 void setExtension( const QString &str );
00218
00222 QString extension() const;
00223
00224 private:
00225
00226 class AttachPrivate;
00227 AttachPrivate *const d;
00228
00229
00230 Q_DISABLE_COPY( KTNEFAttach )
00231 };
00232
00233 }
00234 #endif