diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/java/backgroundparser.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/java/backgroundparser.h')
-rw-r--r-- | languages/java/backgroundparser.h | 44 |
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 |