File indexing completed on 2024-05-12 05:38:48

0001 /*
0002     SPDX-FileCopyrightText: 2016 Sebastian Kügler <sebas@kde.org>
0003 
0004     Work sponsored by the LiMux project of the city of Munich:
0005     SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@broulik.de>
0006 
0007     SPDX-FileCopyrightText: 2022 David Redondo <kde@david-redondo.de>
0008     SPDX-FileCopyrightText: 2023 Natalie Clarius <natalie.clarius@kde.org>
0009 
0010 
0011     SPDX-License-Identifier: GPL-2.0-or-later
0012 */
0013 
0014 #pragma once
0015 
0016 #include <QList>
0017 #include <QObject>
0018 #include <QString>
0019 
0020 namespace PowerDevil
0021 {
0022 struct OsdAction {
0023     Q_GADGET
0024     Q_PROPERTY(QString id MEMBER id CONSTANT)
0025     Q_PROPERTY(QString label MEMBER label CONSTANT)
0026     Q_PROPERTY(QString iconName MEMBER iconName CONSTANT)
0027 public:
0028     QString id;
0029     QString label;
0030     QString iconName;
0031 
0032     static QList<OsdAction> availableActions();
0033 };
0034 
0035 } // namespace PowerDevil