diff options
author | hjk <[email protected]> | 2011-01-07 19:50:41 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2011-01-10 10:18:46 +0100 |
commit | 129c958a9328e05bd0ac70d49d7ab2cfdb60ec4f (patch) | |
tree | 91e0139baf7d023c44cbe982784bab1eaeed867e /src/plugins/debugger/debuggerrunner.h | |
parent | 1b1663a289967ee0fe5a8bcb4a6b981cc477877b (diff) |
debugger: refactor debugger configuration check
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.h')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/plugins/debugger/debuggerrunner.h b/src/plugins/debugger/debuggerrunner.h index 2167a7cd475..cc07971632e 100644 --- a/src/plugins/debugger/debuggerrunner.h +++ b/src/plugins/debugger/debuggerrunner.h @@ -37,6 +37,7 @@ #include "debugger_global.h" #include <projectexplorer/runconfiguration.h> +#include <projectexplorer/toolchaintype.h> #include <QtCore/QScopedPointer> @@ -81,6 +82,20 @@ private: } // namespace Internal +class ConfigurationCheck +{ +public: + ConfigurationCheck() {} + operator bool() const { return errorMessage.isEmpty(); } + +public: + QString errorMessage; + QString settingsCategory; + QString settingsPage; +}; + +ConfigurationCheck checkDebugConfiguration(ProjectExplorer::ToolChainType toolChain); + // This is a job description containing all data "local" to the jobs, including // the models of the individual debugger views. class DEBUGGER_EXPORT DebuggerRunControl @@ -109,10 +124,6 @@ public: void showMessage(const QString &msg, int channel); - static bool checkDebugConfiguration(int toolChain, - QString *errorMessage, - QString *settingsCategory = 0, - QString *settingsPage = 0); signals: void engineRequestSetup(); |