Page MenuHomePhorge

l10n-provider.hpp
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

l10n-provider.hpp

/*
* Copyright (C) 2021 Tusooa Zhu <tusooa@kazv.moe>
*
* This file is part of kazv.
*
* kazv is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* kazv 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with kazv. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <libkazv-config.hpp>
#include <QObject>
#include <QQmlEngine>
#include <QScopedPointer>
#include <QString>
#include <QJsonObject>
struct L10nProviderPrivate;
class L10nProvider : public QObject
{
Q_OBJECT
QML_ELEMENT
QScopedPointer<L10nProviderPrivate> m_d;
public:
explicit L10nProvider(QObject *parent = 0);
~L10nProvider() override;
Q_INVOKABLE QStringList availableLocaleCodes();
Q_INVOKABLE QJsonObject availableLocaleToNameMap();
Q_INVOKABLE QJsonObject getFtlData(QStringList desiredLocales);
};

File Metadata

Mime Type
text/x-c++
Expires
Fri, Jul 18, 8:28 AM (14 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
244275
Default Alt Text
l10n-provider.hpp (1 KB)

Event Timeline