You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
772 B
32 lines
772 B
/* |
|
SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <Plasma/Applet> |
|
|
|
#include <QQuickItem> |
|
|
|
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: |
|
explicit AlternativesHelper(Plasma::Applet *applet, QObject *parent = nullptr); |
|
~AlternativesHelper() override; |
|
|
|
QQuickItem *applet() const; |
|
QStringList appletProvides() const; |
|
QString currentPlugin() const; |
|
|
|
Q_INVOKABLE void loadAlternative(const QString &plugin); |
|
|
|
private: |
|
Plasma::Applet *m_applet; |
|
};
|
|
|