00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef FFTHREAD_HPP
00021 #define FFTHREAD_HPP
00022
00023 #include <Thread.hpp>
00024 #include <ThreadStaticCenter.hpp>
00025
00026 #include <config.h>
00027 #include <iostream>
00028
00029 #ifdef HAVE_GUI_LIBS
00030 class QTextEdit;
00031
00032 #include <QtCore/QThread>
00033 #endif // HAVE_GUI_LIBS
00034
00043 class FFThread
00044 #ifdef HAVE_GUI_LIBS
00045 : public QThread
00046 #else
00047 : public Thread
00048 #endif
00049 {
00050 #ifdef HAVE_GUI_LIBS
00051 private:
00052 QTextEdit* __console;
00053 public:
00054 void setConsole(QTextEdit* console);
00055 #endif // HAVE_GUI_LIBS
00056
00057 private:
00058 std::istream* __in;
00064 void run();
00065
00066 public:
00067
00072 FFThread(const FFThread&);
00073
00074
00075 void setInput(std::istream& fin);
00076
00081 FFThread();
00082
00087 ~FFThread();
00088 };
00089
00090 #endif // FFTHREAD_HPP