MuseScore/src/languages/ilanguagesconfiguration.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.8 KiB
C
Raw Normal View History

/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2020-07-15 16:57:54 +02:00
#ifndef MU_LANGUAGES_ILANGUAGESCONFIGURATION_H
#define MU_LANGUAGES_ILANGUAGESCONFIGURATION_H
#include "modularity/imoduleexport.h"
#include "retval.h"
#include "io/path.h"
2020-07-15 16:57:54 +02:00
#include "languagestypes.h"
2021-01-21 13:35:52 +01:00
namespace mu::languages {
2020-07-15 16:57:54 +02:00
class ILanguagesConfiguration : MODULE_EXPORT_INTERFACE
{
INTERFACE_ID(ILanguagesConfiguration)
public:
virtual ~ILanguagesConfiguration() = default;
2021-02-18 08:55:30 +01:00
virtual ValCh<QString> currentLanguageCode() const = 0;
virtual void setCurrentLanguageCode(const QString& languageCode) const = 0;
2020-07-15 16:57:54 +02:00
virtual QUrl languagesUpdateUrl() const = 0;
2020-08-03 11:15:47 +02:00
virtual QUrl languageFileServerUrl(const QString& languageCode) const = 0;
2020-07-15 16:57:54 +02:00
virtual ValCh<LanguagesHash> languages() const = 0;
2021-06-22 14:46:35 +02:00
virtual Ret setLanguages(const LanguagesHash& languages) = 0;
2020-07-15 16:57:54 +02:00
2021-06-22 14:46:35 +02:00
virtual io::path languagesUserAppDataPath() const = 0;
2020-08-03 11:15:47 +02:00
virtual io::paths languageFilePaths(const QString& languageCode) const = 0;
virtual io::path languageArchivePath(const QString& languageCode) const = 0;
2020-07-15 16:57:54 +02:00
};
}
#endif // MU_LANGUAGES_ILANGUAGESCONFIGURATION_H