2016-11-23 16:49:41 +00:00
|
|
|
/*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez <aleixpol@kde.org>
|
2016-11-23 16:49:41 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2016-11-23 16:49:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DEVICEINDICATOR_H
|
|
|
|
#define DEVICEINDICATOR_H
|
|
|
|
|
|
|
|
#include <QMenu>
|
2019-03-11 17:50:14 +00:00
|
|
|
|
|
|
|
class DeviceDbusInterface;
|
2019-07-20 09:23:33 +01:00
|
|
|
class RemoteCommandsDbusInterface;
|
2016-11-23 16:49:41 +00:00
|
|
|
|
|
|
|
class DeviceIndicator : public QMenu
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2022-09-10 22:23:52 +01:00
|
|
|
public:
|
|
|
|
DeviceIndicator(DeviceDbusInterface *device);
|
2016-11-23 16:49:41 +00:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
public Q_SLOTS:
|
|
|
|
void setText(const QString &text)
|
|
|
|
{
|
|
|
|
setTitle(text);
|
|
|
|
}
|
2016-11-23 17:43:17 +00:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
private:
|
|
|
|
DeviceDbusInterface *m_device;
|
|
|
|
RemoteCommandsDbusInterface *m_remoteCommandsInterface;
|
2016-11-23 16:49:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DEVICEINDICATOR_H
|