Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

convert2text.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   convert2text.h                                                                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
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

Generated on Sat Mar 27 19:20:38 2004 for Literature by doxygen 1.3.6-20040222