LCOV - code coverage report
Current view: top level - muse/framework/shortcuts_v2 - ishortcutsconfiguration.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-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : 
      23              : #pragma once
      24              : 
      25              : #include <string>
      26              : #include <vector>
      27              : 
      28              : #include "modularity/imoduleinterface.h"
      29              : #include "io/path.h"
      30              : #include "types/retval.h"
      31              : #include "async/channel.h"
      32              : 
      33              : namespace muse::shortcuts {
      34              : class IShortcutsConfiguration : MODULE_GLOBAL_INTERFACE
      35              : {
      36           75 :     INTERFACE_ID(IShortcutsConfiguration)
      37              : 
      38              : public:
      39           15 :     virtual ~IShortcutsConfiguration() = default;
      40              : 
      41              :     virtual QString currentKeyboardLayout() const = 0;
      42              :     virtual void setCurrentKeyboardLayout(const QString& layout) = 0;
      43              : 
      44              :     virtual io::path_t shortcutsUserAppDataPath() const = 0;
      45              :     virtual io::path_t shortcutsAppDataPath() const = 0;
      46              : 
      47              :     virtual std::string defaultShortcutsName() const = 0;
      48              :     virtual std::vector<std::string> availableShortcutsPresets() const = 0;
      49              : 
      50              :     virtual std::string currentShortcutsPresetName() const = 0;
      51              :     virtual void setCurrentShortcutsPresetName(const std::string& name) = 0;
      52              :     virtual async::Channel<std::string> currentShortcutsPresetNameChanged() const = 0;
      53              : 
      54              :     virtual io::path_t commandShortcutsUserAppDataPath(const std::string& shortcutsName) const = 0;
      55              :     virtual io::path_t commandShortcutsAppDataPath(const std::string& shortcutsName) const = 0;
      56              : };
      57              : }
        

Generated by: LCOV version 2.0-1