File indexing completed on 2024-09-08 04:30:12
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef DEVICEINDICATOR_H 0008 #define DEVICEINDICATOR_H 0009 0010 #include <QMenu> 0011 0012 class DeviceDbusInterface; 0013 class RemoteCommandsDbusInterface; 0014 0015 class DeviceIndicator : public QMenu 0016 { 0017 Q_OBJECT 0018 public: 0019 DeviceIndicator(DeviceDbusInterface *device); 0020 0021 public Q_SLOTS: 0022 void setText(const QString &text) 0023 { 0024 setTitle(text); 0025 } 0026 0027 private: 0028 DeviceDbusInterface *m_device; 0029 RemoteCommandsDbusInterface *m_remoteCommandsInterface; 0030 }; 0031 0032 #endif // DEVICEINDICATOR_H