1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-23 10:03:43 +03:00
latte-dock/app/alternativeshelper.h

38 lines
826 B
C
Raw Normal View History

/*
2021-05-27 15:01:00 +00:00
SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
2018-08-30 08:47:53 +03:00
#ifndef ALTERNATIVESHELPER_H
#define ALTERNATIVESHELPER_H
2018-12-02 02:05:52 +02:00
// Qt
#include <QQuickItem>
2018-12-02 02:05:52 +02:00
// Plasma
#include <Plasma/Applet>
2018-07-03 22:15:45 +03:00
class AlternativesHelper : public QObject
{
Q_OBJECT
Q_PROPERTY(QStringList appletProvides READ appletProvides CONSTANT)
Q_PROPERTY(QString currentPlugin READ currentPlugin CONSTANT)
Q_PROPERTY(QQuickItem *applet READ applet CONSTANT)
public:
AlternativesHelper(Plasma::Applet *applet, QObject *parent = 0);
~AlternativesHelper() override;
QQuickItem *applet() const;
QStringList appletProvides() const;
QString currentPlugin() const;
Q_INVOKABLE void loadAlternative(const QString &plugin);
private:
Plasma::Applet *m_applet;
};
#endif