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/includepathresolver.h | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'languages/cpp/includepathresolver.h') diff --git a/languages/cpp/includepathresolver.h b/languages/cpp/includepathresolver.h index c182d52e..33aaecd9 100644 --- a/languages/cpp/includepathresolver.h +++ b/languages/cpp/includepathresolver.h @@ -13,20 +13,20 @@ ***************************************************************************/ #ifndef INCLUDEPATHRESOLVER_H #define INCLUDEPATHRESOLVER_H -#include /* defines QString */ -#include +#include /* defines TQString */ +#include namespace CppTools { class FileModificationTimeWrapper; struct PathResolutionResult { - PathResolutionResult( bool _success = false, const QString& _errorMessage = QString(), const QString& _longErrorMessage = QString() ) : success( _success ), errorMessage( _errorMessage ), longErrorMessage( _longErrorMessage ) { + PathResolutionResult( bool _success = false, const TQString& _errorMessage = TQString(), const TQString& _longErrorMessage = TQString() ) : success( _success ), errorMessage( _errorMessage ), longErrorMessage( _longErrorMessage ) { } bool success; - QString errorMessage; - QString longErrorMessage; + TQString errorMessage; + TQString longErrorMessage; - QStringList path; + TQStringList path; operator bool() const { return success; @@ -41,35 +41,35 @@ namespace CppTools { ///Whether the Qt event-loop should be continued(using BlockingKProcess). This crashes if enabled in a non-foreground thread. IncludePathResolver( bool continueEventLoop = false ); ///Same as below, but uses the directory of the file as working-directory. The argument must be absolute. - PathResolutionResult resolveIncludePath( const QString& file ); + PathResolutionResult resolveIncludePath( const TQString& file ); ///The include-path is only computed once for a whole directory, then it is cached using the modification-time of the Makefile. - PathResolutionResult resolveIncludePath( const QString& file, const QString& workingDirectory ); + PathResolutionResult resolveIncludePath( const TQString& file, const TQString& workingDirectory ); ///source and build must be absolute paths - void setOutOfSourceBuildSystem( const QString& source, const QString& build ); + void setOutOfSourceBuildSystem( const TQString& source, const TQString& build ); private: bool m_isResolving; bool m_continueEventLoop; struct CacheEntry { CacheEntry() : failed(false) { } - QDateTime modificationTime; - QStringList path; - QString errorMessage, longErrorMessage; + TQDateTime modificationTime; + TQStringList path; + TQString errorMessage, longErrorMessage; bool failed; - QMap failedFiles; - QDateTime failTime; + TQMap failedFiles; + TQDateTime failTime; }; - typedef QMap Cache; + typedef TQMap Cache; Cache m_cache; ///Executes the command, either using popen or BlockingKProcess - PathResolutionResult getFullOutput( const QString& command, const QString& workingDirectory, QString& output ) const; - bool executeCommandPopen ( const QString& command, const QString& workingDirectory, QString& result ) const; + PathResolutionResult getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const; + bool executeCommandPopen ( const TQString& command, const TQString& workingDirectory, TQString& result ) const; ///file should be the name of the target, without extension(because that may be different) - PathResolutionResult resolveIncludePathInternal( const QString& file, const QString& workingDirectory, const QString& makeParameters, const SourcePathInformation& source ); + PathResolutionResult resolveIncludePathInternal( const TQString& file, const TQString& workingDirectory, const TQString& makeParameters, const SourcePathInformation& source ); bool m_outOfSource; - QString m_source; - QString m_build; + TQString m_source; + TQString m_build; }; }; -- cgit v1.2.3