00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqAccelReadThread.h 00004 // 00005 // Purpose: Extension of QThread to read an accel file. 00006 // 00007 // Version: $Id: TxqAccelReadThread.h,v 1.1 2002/03/05 00:52:13 kgl Exp $ 00008 // 00009 // Copyright (c) 2002 by Tech-X Corporation. All rights reserved. 00010 // 00011 // Author: Kelly G. Luetkemeyer 00012 // 00013 //-------------------------------------------------------------------- 00014 00015 #ifndef TXQ_ACCEL_READ_THREAD_H 00016 #define TXQ_ACCEL_READ_THREAD_H 00017 00018 #if defined(QT_THREAD_SUPPORT) 00019 00020 // Qt includes 00021 #include <qthread.h> 00022 #include <qstring.h> 00023 00024 // system includes 00025 #include <iostream.h> 00026 00027 class TxqAccelTrol; 00028 00040 class TxqAccelReadThread : public QThread 00041 { 00042 00043 public: 00044 00052 TxqAccelReadThread(TxqAccelTrol *accel, 00053 const QString &fname, 00054 ifstream *ifile ); 00055 00059 virtual ~TxqAccelReadThread(); 00060 00064 void run(); 00065 00069 void stop(); 00070 00071 protected: 00072 00073 private: 00074 00078 TxqAccelTrol *accel; 00079 00083 QString inputFileName; 00084 00088 ifstream *inputFile; 00089 00090 }; 00091 00092 00093 #endif 00094 #endif
Copyright Tech-X Corporation, all rights reserved.