diff options
Diffstat (limited to 'languages/php/phpparser.cpp')
-rw-r--r-- | languages/php/phpparser.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/languages/php/phpparser.cpp b/languages/php/phpparser.cpp index b13c5479..a0f1179e 100644 --- a/languages/php/phpparser.cpp +++ b/languages/php/phpparser.cpp @@ -25,11 +25,11 @@ #include <kdevproject.h> #include <codemodel.h> -#include <qregexp.h> +#include <tqregexp.h> #include <kdebug.h> -#include <qfileinfo.h> -#include <qtextstream.h> +#include <tqfileinfo.h> +#include <tqtextstream.h> #include <iostream> @@ -46,37 +46,37 @@ PHPParser::~PHPParser(){ removeAllFiles(); } -bool PHPParser::hasFile( const QString& fileName ) +bool PHPParser::hasFile( const TQString& fileName ) { // kdDebug(9018) << "hasFile " << fileName.latin1() << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it == m_files.end() ) return false; return true; } -void PHPParser::addFile( const QString& fileName ) +void PHPParser::addFile( const TQString& fileName ) { - QString abso = URLUtil::canonicalPath(fileName); + TQString abso = URLUtil::canonicalPath(fileName); if ( hasFile(abso) ) return; kdDebug(9018) << "addFile " << fileName.latin1() << endl; - QFileInfo fi( abso ); + TQFileInfo fi( abso ); if ((fi.extension().contains("inc") || fi.extension().contains("php") || fi.extension().contains("html") || fi.extension().contains("php3") || !fi.extension()) && !fi.extension().contains("~")) { m_files.insert(abso, new PHPFile(m_part, abso)); } } -void PHPParser::removeFile( const QString& fileName ) +void PHPParser::removeFile( const TQString& fileName ) { // kdDebug(9018) << "removeFile " << fileName.latin1() << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); @@ -89,7 +89,7 @@ void PHPParser::removeFile( const QString& fileName ) void PHPParser::removeAllFiles() { kdDebug(9018) << "removeAllFiles" << endl; - QMap<QString, PHPFile *>::Iterator it = m_files.begin(); + TQMap<TQString, PHPFile *>::Iterator it = m_files.begin(); while( it != m_files.end() ){ PHPFile * file = it.data(); @@ -100,11 +100,11 @@ void PHPParser::removeAllFiles() m_files.clear(); } -void PHPParser::reparseFile( const QString& fileName ) +void PHPParser::reparseFile( const TQString& fileName ) { kdDebug(9018) << "reparseFile" << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); @@ -115,8 +115,8 @@ void PHPParser::reparseFile( const QString& fileName ) } void PHPParser::run() { - kdDebug(9018) << "run thread " << QThread::currentThread() << endl; - QMap<QString, PHPFile *>::Iterator it; + kdDebug(9018) << "run thread " << TQThread::currentThread() << endl; + TQMap<TQString, PHPFile *>::Iterator it; while ( !m_close ) { m_canParse.wait(); |