1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef BUILDERGENERATOR_H |
6 | #define BUILDERGENERATOR_H |
7 | |
8 | #include "builderglobals.h" |
9 | #include "common/common.h" |
10 | #include "services/builder/ioutputparser.h" |
11 | #include "services/project/projectinfo.h" |
12 | |
13 | #include <QWidget> |
14 | #include <QMenu> |
15 | |
16 | namespace dpfservice { |
17 | class BuilderGenerator : public Generator |
18 | { |
19 | Q_OBJECT |
20 | public: |
21 | BuilderGenerator(){} |
22 | virtual ~BuilderGenerator(){} |
23 | |
24 | virtual BuildCommandInfo getMenuCommand(const BuildMenuType buildMenuType, const dpfservice::ProjectInfo &projectInfo) { |
25 | Q_UNUSED(buildMenuType) |
26 | Q_UNUSED(projectInfo) |
27 | return BuildCommandInfo(); |
28 | } |
29 | |
30 | virtual void appendOutputParser(std::unique_ptr<IOutputParser>& outputParser) { |
31 | Q_UNUSED(outputParser) |
32 | } |
33 | |
34 | virtual bool checkCommandValidity(const BuildCommandInfo &info, QString &retMsg) { |
35 | Q_UNUSED(info) |
36 | Q_UNUSED(retMsg) |
37 | return true; |
38 | } |
39 | }; |
40 | |
41 | } // namespace dpfservice |
42 | |
43 | #endif // BUILDERGENERATOR_H |
44 |