summaryrefslogtreecommitdiffstats
path: root/languages/cpp/backgroundparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/backgroundparser.h')
-rw-r--r--languages/cpp/backgroundparser.h50
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(..):