Line data Source code
1 : /*
2 : * SPDX-License-Identifier: GPL-3.0-only
3 : * MuseScore/Audacity CLA applies
4 : *
5 : * Copyright (C) 2026 MuseScore/Audacity and others
6 : *
7 : * This program is free software: you can redistribute it and/or modify
8 : * it under the terms of the GNU General Public License version 3 as
9 : * published by the Free Software Foundation.
10 : *
11 : * This program is distributed in the hope that it will be useful,
12 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : * GNU General Public License for more details.
15 : *
16 : * You should have received a copy of the GNU General Public License
17 : * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 : */
19 :
20 : #pragma once
21 :
22 : #include "modularity/imodulesetup.h"
23 : #include <memory>
24 :
25 : namespace muse::rcontrol::mcp {
26 : class McpController;
27 : }
28 :
29 : namespace muse::rcontrol {
30 : class RControlModule : public modularity::IModuleSetup
31 : {
32 : public:
33 : std::string moduleName() const override;
34 :
35 : modularity::IContextSetup* newContext(const muse::modularity::ContextPtr& ctx) const override;
36 : };
37 :
38 : class RControlContext : public modularity::IContextSetup
39 : {
40 : public:
41 0 : RControlContext(const muse::modularity::ContextPtr& ctx)
42 0 : : modularity::IContextSetup(ctx) {}
43 :
44 : void registerExports() override;
45 : void onInit(const IApplication::RunMode& mode) override;
46 : void onDeinit() override;
47 :
48 : private:
49 : std::shared_ptr<mcp::McpController> m_mcpController;
50 : };
51 : }
|