File indexing completed on 2024-04-14 15:31:33
0001 /* 0002 SPDX-FileCopyrightText: 2022 Aditya Mehra <aix.m@outlook.com> 0003 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 */ 0005 0006 #ifndef KEYDISPLAYPROVIDER_H 0007 #define KEYDISPLAYPROVIDER_H 0008 0009 #include <QObject> 0010 0011 class KeyDisplayProvider : public QObject 0012 { 0013 Q_OBJECT 0014 0015 public: 0016 explicit KeyDisplayProvider(QObject *parent = nullptr); 0017 ~KeyDisplayProvider() override; 0018 Q_INVOKABLE QString keyDisplay(const int &key) const; 0019 Q_INVOKABLE QString keyIcon(const int &key, const QString &deviceType) const; 0020 0021 private: 0022 QList<QVariantMap> m_displayMap; 0023 }; 0024 0025 #endif // KEYDISPLAYPROVIDER_H