2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-10-25 13:47:08 +02:00
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
2015-02-26 15:29:28 +01:00
|
|
|
#include "debuggerconstants.h"
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2021-12-03 10:21:57 +01:00
|
|
|
#include <utils/filepath.h>
|
|
|
|
|
|
2013-10-25 13:47:08 +02:00
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
2016-11-28 18:47:18 +01:00
|
|
|
class DebuggerItem;
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
namespace DebuggerItemManager {
|
2016-11-28 18:47:18 +01:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
DEBUGGER_EXPORT void restoreDebuggers();
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
DEBUGGER_EXPORT const QList<DebuggerItem> debuggers();
|
2022-09-22 15:24:52 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
DEBUGGER_EXPORT QVariant registerDebugger(const DebuggerItem &item);
|
|
|
|
|
DEBUGGER_EXPORT void deregisterDebugger(const QVariant &id);
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
DEBUGGER_EXPORT void autoDetectDebuggersForDevice(const Utils::FilePaths &searchPaths,
|
|
|
|
|
const QString &detectionSource,
|
|
|
|
|
QString *logMessage);
|
|
|
|
|
DEBUGGER_EXPORT void removeDetectedDebuggers(const QString &detectionSource, QString *logMessage);
|
|
|
|
|
DEBUGGER_EXPORT void listDetectedDebuggers(const QString &detectionSource, QString *logMessage);
|
2013-10-25 13:47:08 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
DEBUGGER_EXPORT const DebuggerItem *findByCommand(const Utils::FilePath &command);
|
|
|
|
|
DEBUGGER_EXPORT const DebuggerItem *findById(const QVariant &id);
|
|
|
|
|
DEBUGGER_EXPORT const DebuggerItem *findByEngineType(DebuggerEngineType engineType);
|
2021-06-21 10:27:02 +02:00
|
|
|
|
2023-08-09 15:24:02 +02:00
|
|
|
} // DebuggerItemManager
|
|
|
|
|
} // Debugger
|