Debugger: (Sub-)Aspectify DebuggerRunConfigurationAspect

Change-Id: If7fcc52a88dec02061c4e0cce4aa48d1b923ceb2
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2019-09-30 14:00:58 +02:00
parent 6d5c61b164
commit 005a03ccd4
2 changed files with 164 additions and 162 deletions

View File

@@ -29,26 +29,11 @@
#include "debuggerconstants.h"
#include <projectexplorer/runconfiguration.h>
#include <projectexplorer/runconfigurationaspects.h>
namespace Debugger {
namespace Internal { class DebuggerRunConfigWidget; }
enum DebuggerLanguageStatus {
DisabledLanguage = 0,
EnabledLanguage,
AutoEnabledLanguage
};
class DEBUGGER_EXPORT DebuggerRunConfigurationAspectData
{
public:
DebuggerLanguageStatus useCppDebugger = AutoEnabledLanguage;
DebuggerLanguageStatus useQmlDebugger = AutoEnabledLanguage;
bool useMultiProcess = false;
QString overrideStartup;
};
namespace Internal { class DebuggerLanguageAspect; }
class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
: public ProjectExplorer::GlobalOrProjectAspect
@@ -71,8 +56,10 @@ public:
int portsUsedByDebugger() const;
private:
friend class Internal::DebuggerRunConfigWidget;
DebuggerRunConfigurationAspectData d;
Internal::DebuggerLanguageAspect *m_cppAspect;
Internal::DebuggerLanguageAspect *m_qmlAspect;
ProjectExplorer::BaseBoolAspect *m_multiProcessAspect;
ProjectExplorer::BaseStringAspect *m_overrideStartupAspect;
ProjectExplorer::Target *m_target;
};