KTNEF Library
ktnefparser.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 KTNEFPARSER_H
00032 #define KTNEFPARSER_H
00033
00034 #include <QtCore/QString>
00035 #include <QtCore/QMap>
00036 #include <QtCore/QIODevice>
00037 #include "ktnef_export.h"
00038
00039 namespace KTnef { class KTNEFAttach; }
00040 namespace KTnef { class KTNEFMessage; }
00041 namespace KTnef { class KTNEFProperty; }
00042
00043 namespace KTnef {
00044
00049 class KTNEF_EXPORT KTNEFParser
00050 {
00051 public:
00055 KTNEFParser();
00056
00060 ~KTNEFParser();
00061
00068 bool openFile( const QString &filename ) const;
00069
00076 bool openDevice( QIODevice *device );
00077
00085 bool extractFile( const QString &filename ) const;
00086
00097 bool extractFileTo( const QString &filename, const QString &dirname ) const;
00098
00104 bool extractAll();
00105
00111 void setDefaultExtractDir( const QString &dirname );
00112
00118 KTNEFMessage *message() const;
00119
00120 private:
00121
00122 class ParserPrivate;
00123 ParserPrivate *const d;
00124
00125
00126 Q_DISABLE_COPY( KTNEFParser )
00127 };
00128
00129 }
00130 #endif