1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#include "eventreceiver.h"
6#include "common/common.h"
7#include "debuggersignals.h"
8#include "debuggerglobals.h"
9
10DebugEventReceiver::DebugEventReceiver(QObject *parent)
11 : dpf::EventHandler(parent), dpf::AutoEventHandlerRegister<DebugEventReceiver>()
12{
13}
14
15dpf::EventHandler::Type DebugEventReceiver::type()
16{
17 return dpf::EventHandler::Type::Async;
18}
19
20QStringList DebugEventReceiver::topics()
21{
22 return {T_BUILDER, project.topic, debugger.topic, editor.topic};
23}
24
25void DebugEventReceiver::eventProcess(const dpf::Event &event)
26{
27 emit debuggerSignals->receivedEvent(event);
28}
29