From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/backgroundparser.h | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'languages/cpp/backgroundparser.h') 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 -#include -#include -#include +#include +#include +#include +#include #include class CppSupportPart; @@ -35,8 +35,8 @@ public: translationUnit = 0; } - QString fileName; - QValueList problems; + TQString fileName; + TQValueList 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 problems( const QString& fileName , bool readFromDisk = false, bool forceParse = false ); + bool hasTranslationUnit( const TQString& fileName ); + ParsedFilePointer translationUnit( const TQString& fileName ); + TQValueList 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 m_unitDict; + TQMap m_unitDict; bool m_saveMemory; //used to prevent blocking //State of parseFile(..): -- cgit v1.2.1