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/includepathresolver.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/includepathresolver.h')
-rw-r--r-- | languages/cpp/includepathresolver.h | 40 |
1 files changed, 20 insertions, 20 deletions
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 <qstring.h> /* defines QString */ -#include <qmap.h> +#include <tqstring.h> /* defines TQString */ +#include <tqmap.h> 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<QString,bool> failedFiles; - QDateTime failTime; + TQMap<TQString,bool> failedFiles; + TQDateTime failTime; }; - typedef QMap<QString, CacheEntry> Cache; + typedef TQMap<TQString, CacheEntry> 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; }; }; |