summaryrefslogtreecommitdiffstats
path: root/languages/java/backgroundparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/java/backgroundparser.h')
-rw-r--r--languages/java/backgroundparser.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/languages/java/backgroundparser.h b/languages/java/backgroundparser.h
index 2029ebf5..4cc52f33 100644
--- a/languages/java/backgroundparser.h
+++ b/languages/java/backgroundparser.h
@@ -15,10 +15,10 @@
#include "driver.h"
#include "JavaAST.hpp"
-#include <qthread.h>
-#include <qwaitcondition.h>
-#include <qmutex.h>
-#include <qmap.h>
+#include <tqthread.h>
+#include <tqwaitcondition.h>
+#include <tqmutex.h>
+#include <tqmap.h>
#include <kdebug.h>
class JavaSupportPart;
@@ -31,8 +31,8 @@ public:
Unit() {}
~Unit() {}
- QString fileName;
- QValueList<Problem> problems;
+ TQString fileName;
+ TQValueList<Problem> problems;
RefJavaAST translationUnit;
protected:
@@ -43,44 +43,44 @@ protected:
class BackgroundParser: public QThread
{
public:
- BackgroundParser( JavaSupportPart*, QWaitCondition* consumed );
+ BackgroundParser( JavaSupportPart*, TQWaitCondition* consumed );
virtual ~BackgroundParser();
- QMutex& mutex() { return m_mutex; }
+ TQMutex& mutex() { return m_mutex; }
void lock() { m_mutex.lock(); }
void unlock() { m_mutex.unlock(); }
- QWaitCondition& canParse() { return m_canParse; }
- QWaitCondition& isEmpty() { return m_isEmpty; }
+ TQWaitCondition& canParse() { return m_canParse; }
+ TQWaitCondition& isEmpty() { return m_isEmpty; }
bool filesInQueue();
- void addFile( const QString& fileName, bool readFromDisk=false );
- void removeFile( const QString& fileName );
+ void addFile( const TQString& fileName, bool readFromDisk=false );
+ void removeFile( const TQString& fileName );
void removeAllFiles();
- RefJavaAST translationUnit( const QString& fileName );
- QValueList<Problem> problems( const QString& fileName );
+ RefJavaAST translationUnit( const TQString& fileName );
+ TQValueList<Problem> problems( const TQString& fileName );
void close();
virtual void run();
protected:
- Unit* findUnit( const QString& fileName );
- Unit* parseFile( const QString& fileName, bool readFromDisk );
+ Unit* findUnit( const TQString& fileName );
+ Unit* parseFile( const TQString& fileName, bool readFromDisk );
private:
class KDevDriver* m_driver;
- QString m_currentFile;
- QWaitCondition m_canParse;
- QWaitCondition m_isEmpty;
- QWaitCondition* m_consumed;
- QMutex m_mutex;
+ TQString m_currentFile;
+ TQWaitCondition m_canParse;
+ TQWaitCondition m_isEmpty;
+ TQWaitCondition* m_consumed;
+ TQMutex m_mutex;
SynchronizedFileList* m_fileList;
JavaSupportPart* m_javaSupport;
bool m_close;
- QMap<QString, Unit*> m_unitDict;
+ TQMap<TQString, Unit*> m_unitDict;
};
#endif