calamares/src/modules/keyboard/keyboardwidget/keyboardglobal.h

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

47 lines
1.1 KiB
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2007 Free Software Foundation, Inc.
* SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org>
* SPDX-FileCopyrightText: 2017 2019, Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Originally from the Manjaro Installation Framework
* by Roland Singer <roland@manjaro.org>
* Copyright (C) 2007 Free Software Foundation, Inc.
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef KEYBOARDGLOBAL_H
#define KEYBOARDGLOBAL_H
2020-08-22 01:19:58 +02:00
#include <QDebug>
#include <QDir>
2020-08-22 01:19:58 +02:00
#include <QFile>
#include <QHash>
2020-08-22 01:19:58 +02:00
#include <QList>
#include <QMap>
#include <QRegExp>
2020-08-22 01:19:58 +02:00
#include <QString>
#include <QStringList>
#include <QTextStream>
class KeyboardGlobal
{
public:
2020-08-22 01:19:58 +02:00
struct KeyboardInfo
{
QString description;
QMap< QString, QString > variants;
};
2017-06-07 16:15:13 +02:00
using LayoutsMap = QMap< QString, KeyboardInfo >;
using ModelsMap = QMap< QString, QString >;
2017-06-07 16:15:13 +02:00
static LayoutsMap getKeyboardLayouts();
static ModelsMap getKeyboardModels();
};
2020-08-22 01:19:58 +02:00
#endif // KEYBOARDGLOBAL_H