LCOV - code coverage report
Current view: top level - muse/framework/rcommand - icommandsregister.h Coverage Total Hit
Test: filtered_coverage.info Lines: 100.0 % 2 2
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore/Audacity CLA applies
       4              :  *
       5              :  * Copyright (C) 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/imoduleinterface.h"
      23              : 
      24              : #include "global/async/notification.h"
      25              : 
      26              : #include "imodulecommandsregister.h"
      27              : #include "commandtypes.h"
      28              : 
      29              : namespace muse::rcommand {
      30              : class ICommandsRegister : MODULE_GLOBAL_INTERFACE
      31              : {
      32          100 :     INTERFACE_ID(ICommandsRegister)
      33              : public:
      34           19 :     virtual ~ICommandsRegister() = default;
      35              : 
      36              :     virtual void reg(const IModuleCommandsRegisterPtr& module) = 0;
      37              :     virtual void unreg(const IModuleCommandsRegisterPtr& module) = 0;
      38              :     virtual IModuleCommandsRegisterPtr moduleRegister(const std::string& moduleName) const = 0;
      39              : 
      40              :     virtual std::vector<CommandInfo> commandInfoList() const = 0;
      41              :     virtual const CommandInfo& commandInfo(const Command& command) const = 0;
      42              :     virtual async::Notification commandInfoListChanged() const = 0;
      43              : 
      44              :     virtual const std::string& commandModuleName(const Command& command) const = 0;
      45              : };
      46              : }
        

Generated by: LCOV version 2.0-1