blob: 17a86eea887f1441335be7d0dc12d4a8f2ac03b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/treemodel.h>
#include <QPointer>
namespace Debugger::Internal {
class DebuggerEngine;
struct PerspectiveItem;
class EngineManager final : public QObject
{
Q_OBJECT
public:
explicit EngineManager();
~EngineManager() final;
static EngineManager *instance();
static QAbstractItemModel *model();
static QAbstractItemModel *dapModel();
static QString registerEngine(DebuggerEngine *engine);
static void unregisterEngine(DebuggerEngine *engine);
static QString registerDefaultPerspective(const QString &name,
const QString &type,
const QString &id);
static void activateDebugMode();
static void deactivateDebugMode();
static void activateByIndex(int index);
static QList<QPointer<DebuggerEngine> > engines();
static QPointer<DebuggerEngine> currentEngine();
static QWidget *engineChooser();
static QWidget *dapEngineChooser();
static void updatePerspectives();
static bool shutDown(); // Return true if some engine is being forced to shut down.
signals:
void engineStateChanged(DebuggerEngine *engine);
void currentEngineChanged();
void shutDownCompleted();
};
} // Debugger::Internal
|