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/cpp/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/cpp/backgroundparser.h')
-rw-r--r-- | languages/cpp/backgroundparser.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/languages/cpp/backgroundparser.h b/languages/cpp/backgroundparser.h index 2bbf1173..6bbec3fc 100644 --- a/languages/cpp/backgroundparser.h +++ b/languages/cpp/backgroundparser.h @@ -15,10 +15,10 @@ #include "ast.h" #include "driver.h" -#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 CppSupportPart; @@ -35,8 +35,8 @@ public: translationUnit = 0; } - QString fileName; - QValueList<Problem> problems; + TQString fileName; + TQValueList<Problem> problems; ParsedFilePointer translationUnit; protected: @@ -47,10 +47,10 @@ protected: class BackgroundParser: public QThread { public: - BackgroundParser( CppSupportPart*, QWaitCondition* consumed ); + BackgroundParser( CppSupportPart*, TQWaitCondition* consumed ); virtual ~BackgroundParser(); - QMutex& mutex() + TQMutex& mutex() { return m_mutex; } @@ -63,27 +63,27 @@ public: m_mutex.unlock(); } - QWaitCondition& canParse() + TQWaitCondition& canParse() { return m_canParse; } - QWaitCondition& isEmpty() + TQWaitCondition& isEmpty() { return m_isEmpty; } bool filesInQueue(); - int countInQueue( const QString& file ) const; + int countInQueue( const TQString& file ) const; - void addFile( const QString& fileName, bool readFromDisk = false ); - void addFileFront( const QString& fileName, bool readFromDisk = false ); - void removeFile( const QString& fileName ); + void addFile( const TQString& fileName, bool readFromDisk = false ); + void addFileFront( const TQString& fileName, bool readFromDisk = false ); + void removeFile( const TQString& fileName ); void removeAllFiles(); - bool hasTranslationUnit( const QString& fileName ); - ParsedFilePointer translationUnit( const QString& fileName ); - QValueList<Problem> problems( const QString& fileName , bool readFromDisk = false, bool forceParse = false ); + bool hasTranslationUnit( const TQString& fileName ); + ParsedFilePointer translationUnit( const TQString& fileName ); + TQValueList<Problem> problems( const TQString& fileName , bool readFromDisk = false, bool forceParse = false ); void updateParserConfiguration(); ///Should be run on a regular basis(every X minutes). It reduces some caches etc. BackgroundParser must be locked before. @@ -96,21 +96,21 @@ public: protected: friend class BackgroundKDevDriver; void fileParsed( ParsedFile& fileName ); - Unit* findUnit( const QString& fileName ); - void parseFile( const QString& fileName, bool readFromDisk, bool lock = false ) + Unit* findUnit( const TQString& fileName ); + void parseFile( const TQString& fileName, bool readFromDisk, bool lock = false ) ; 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; CppSupportPart* m_cppSupport; bool m_close; - QMap<QString, Unit*> m_unitDict; + TQMap<TQString, Unit*> m_unitDict; bool m_saveMemory; //used to prevent blocking //State of parseFile(..): |