00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CONVERT2TEXT_H
00018 #define CONVERT2TEXT_H
00019
00020 #include <qstring.h>
00021 #include <qcstring.h>
00022 #include <qfile.h>
00023 #include <qlist.h>
00024 #include <qobject.h>
00025
00026 class KProcess;
00027 class Convert2Text: public QObject {
00028 Q_OBJECT
00029
00030 QList<QFile> tmpfiles;
00031 public:
00032 Convert2Text();
00033 ~Convert2Text();
00034
00035 QString buf2file(QByteArray b);
00036 QString convert(QString cmd, QString infilename);
00037
00038 bool mime2text(QString infilename, QString &out);
00039 public slots:
00040 void slotReceivedStderr(KProcess* proc,char* buf,int len);
00041 void slotReceivedStdout(KProcess* proc,char* buf,int len);
00042 signals:
00043 void output(QString);
00044 };
00045
00046 #endif