1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#include "buildersender.h"
6#include "framework.h"
7#include "common/common.h"
8
9BuilderSender::BuilderSender(QObject *parent)
10 : QObject(parent)
11{
12
13}
14
15BuilderSender::~BuilderSender()
16{
17
18}
19
20void BuilderSender::notifyBuildState(BuildState state, const BuildCommandInfo &commandInfo)
21{
22 dpf::Event event;
23 event.setTopic(T_BUILDER);
24 event.setData(D_BUILD_STATE);
25 event.setProperty(P_STATE, static_cast<int>(state));
26 event.setProperty(P_ORIGINCMD, QVariant::fromValue(commandInfo));
27 dpf::EventCallProxy::instance().pubEvent(event);
28}
29
30