2013-03-27 13:03:15 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
2015-12-09 16:17:47 +01:00
|
|
|
#include "debuggerconstants.h"
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2019-09-30 14:00:58 +02:00
|
|
|
#include <projectexplorer/runconfigurationaspects.h>
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
2019-09-30 14:00:58 +02:00
|
|
|
namespace Internal { class DebuggerLanguageAspect; }
|
2015-12-09 16:17:47 +01:00
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
|
2018-09-13 15:48:16 +02:00
|
|
|
: public ProjectExplorer::GlobalOrProjectAspect
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2018-09-12 11:48:32 +02:00
|
|
|
DebuggerRunConfigurationAspect(ProjectExplorer::Target *target);
|
2019-10-17 17:58:22 +02:00
|
|
|
~DebuggerRunConfigurationAspect();
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2017-11-09 16:06:19 +01:00
|
|
|
void fromMap(const QVariantMap &map) override;
|
|
|
|
|
void toMap(QVariantMap &map) const override;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
bool useCppDebugger() const;
|
|
|
|
|
bool useQmlDebugger() const;
|
|
|
|
|
void setUseQmlDebugger(bool value);
|
|
|
|
|
bool useMultiProcess() const;
|
|
|
|
|
void setUseMultiProcess(bool on);
|
2019-09-30 11:26:32 +02:00
|
|
|
QString overrideStartup() const;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2016-01-26 14:09:13 +01:00
|
|
|
int portsUsedByDebugger() const;
|
|
|
|
|
|
2022-04-08 11:35:54 +02:00
|
|
|
struct Data : BaseAspect::Data
|
|
|
|
|
{
|
|
|
|
|
bool useCppDebugger;
|
|
|
|
|
bool useQmlDebugger;
|
|
|
|
|
bool useMultiProcess;
|
|
|
|
|
QString overrideStartup;
|
|
|
|
|
};
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
private:
|
2019-09-30 14:00:58 +02:00
|
|
|
Internal::DebuggerLanguageAspect *m_cppAspect;
|
|
|
|
|
Internal::DebuggerLanguageAspect *m_qmlAspect;
|
2020-09-18 12:11:40 +02:00
|
|
|
Utils::BoolAspect *m_multiProcessAspect;
|
|
|
|
|
Utils::StringAspect *m_overrideStartupAspect;
|
2018-09-12 09:31:45 +02:00
|
|
|
ProjectExplorer::Target *m_target;
|
2013-03-27 13:03:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|