2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
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
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
|
|
|
* Originally from the Manjaro Installation Framework
|
|
|
|
* by Roland Singer <roland@manjaro.org>
|
|
|
|
* Copyright (C) 2007 Free Software Foundation, Inc.
|
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-04 15:33:59 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KEYBOARDGLOBAL_H
|
|
|
|
#define KEYBOARDGLOBAL_H
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#include <QDebug>
|
2014-07-04 15:33:59 +02:00
|
|
|
#include <QDir>
|
2020-08-22 01:19:58 +02:00
|
|
|
#include <QFile>
|
2014-07-04 15:33:59 +02:00
|
|
|
#include <QHash>
|
2020-08-22 01:19:58 +02:00
|
|
|
#include <QList>
|
2014-07-04 15:33:59 +02:00
|
|
|
#include <QMap>
|
|
|
|
#include <QRegExp>
|
2020-08-22 01:19:58 +02:00
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QTextStream>
|
2014-07-04 15:33:59 +02:00
|
|
|
|
|
|
|
class KeyboardGlobal
|
|
|
|
{
|
|
|
|
public:
|
2020-08-22 01:19:58 +02:00
|
|
|
struct KeyboardInfo
|
|
|
|
{
|
2014-07-04 15:33:59 +02:00
|
|
|
QString description;
|
|
|
|
QMap< QString, QString > variants;
|
|
|
|
};
|
|
|
|
|
2017-06-07 16:15:13 +02:00
|
|
|
using LayoutsMap = QMap< QString, KeyboardInfo >;
|
2019-04-18 13:22:12 +02:00
|
|
|
using ModelsMap = QMap< QString, QString >;
|
2017-06-07 16:15:13 +02:00
|
|
|
|
|
|
|
static LayoutsMap getKeyboardLayouts();
|
2019-04-18 13:22:12 +02:00
|
|
|
static ModelsMap getKeyboardModels();
|
2014-07-04 15:33:59 +02:00
|
|
|
};
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#endif // KEYBOARDGLOBAL_H
|