Line data Source code
1 : /*
2 : * SPDX-License-Identifier: GPL-3.0-only
3 : * MuseScore-Studio-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 : #ifndef MU_BRAILLE_IBRAILLECONFIGURATION_H
23 : #define MU_BRAILLE_IBRAILLECONFIGURATION_H
24 :
25 : #include <QString>
26 :
27 : #include "modularity/imoduleinterface.h"
28 : #include "async/notification.h"
29 :
30 : #include "brailletypes.h"
31 :
32 : namespace mu::braille {
33 : class IBrailleConfiguration : MODULE_GLOBAL_INTERFACE
34 : {
35 0 : INTERFACE_ID(IBrailleConfiguration)
36 :
37 : public:
38 0 : virtual ~IBrailleConfiguration() = default;
39 :
40 : virtual muse::async::Notification braillePanelEnabledChanged() const = 0;
41 : virtual bool braillePanelEnabled() const = 0;
42 : virtual void setBraillePanelEnabled(const bool enabled) = 0;
43 :
44 : virtual muse::async::Notification intervalDirectionChanged() const = 0;
45 : virtual BrailleIntervalDirection intervalDirection() const = 0;
46 : virtual void setIntervalDirection(const BrailleIntervalDirection direction) = 0;
47 :
48 : virtual muse::async::Notification brailleTableChanged() const = 0;
49 : virtual QString brailleTable() const = 0;
50 : virtual void setBrailleTable(const QString& table) = 0;
51 : virtual QStringList brailleTableList() const = 0;
52 : };
53 : }
54 :
55 : #endif // MU_BRAILLE_IBRAILLECONFIGURATION_H
|