2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2008-12-02 15:08:31 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-06-16 11:08:54 +02:00
|
|
|
#include "debugger_global.h"
|
2021-12-03 10:21:57 +01:00
|
|
|
|
2010-06-16 11:08:54 +02:00
|
|
|
#include <extensionsystem/iplugin.h>
|
2021-12-03 10:21:57 +01:00
|
|
|
#include <utils/filepath.h>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2014-10-22 13:04:47 +02:00
|
|
|
namespace ProjectExplorer { class RunControl; }
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
namespace Debugger::Internal {
|
2010-11-10 11:39:01 +01:00
|
|
|
|
2014-10-17 13:40:04 +02:00
|
|
|
class DebuggerPlugin : public ExtensionSystem::IPlugin
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Debugger.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
DebuggerPlugin();
|
2018-05-07 15:06:53 +02:00
|
|
|
~DebuggerPlugin() override;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
2010-11-10 11:39:01 +01:00
|
|
|
// IPlugin implementation.
|
2016-02-24 14:42:52 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage) override;
|
2015-03-09 10:59:58 +02:00
|
|
|
QObject *remoteCommand(const QStringList &options,
|
|
|
|
|
const QString &workingDirectory,
|
2016-02-24 14:42:52 +01:00
|
|
|
const QStringList &arguments) override;
|
|
|
|
|
ShutdownFlag aboutToShutdown() override;
|
|
|
|
|
void extensionsInitialized() override;
|
2015-02-25 16:30:23 +01:00
|
|
|
|
|
|
|
|
// Called from AppOutputPane::attachToRunControl().
|
2014-10-22 13:04:47 +02:00
|
|
|
Q_SLOT void attachExternalApplication(ProjectExplorer::RunControl *rc);
|
2012-01-23 16:45:00 +01:00
|
|
|
|
2017-01-13 13:18:39 +01:00
|
|
|
// Called from GammaRayIntegration
|
|
|
|
|
Q_SLOT void getEnginesState(QByteArray *json) const;
|
|
|
|
|
|
2021-06-21 10:27:02 +02:00
|
|
|
// Called from DockerDevice
|
2021-12-03 10:21:57 +01:00
|
|
|
Q_SLOT void autoDetectDebuggersForDevice(const Utils::FilePaths &searchPaths,
|
2021-07-13 13:05:36 +02:00
|
|
|
const QString &detectionId,
|
|
|
|
|
QString *logMessage);
|
|
|
|
|
Q_SLOT void removeDetectedDebuggers(const QString &detectionId, QString *logMessage);
|
2021-07-15 12:25:23 +02:00
|
|
|
Q_SLOT void listDetectedDebuggers(const QString &detectionId, QString *logMessage);
|
2021-06-21 10:27:02 +02:00
|
|
|
|
2019-05-27 14:12:11 +02:00
|
|
|
QVector<QObject *> createTestObjects() const override;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
} // Debugger::Internal
|
2021-07-13 13:05:36 +02:00
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(QString *)
|