| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org> |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 5 | */ |
| 6 | |
| 7 | #ifndef SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H |
| 8 | #define SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H |
| 9 | |
| 10 | #include "udisksdeviceinterface.h" |
| 11 | #include <solid/devices/ifaces/genericinterface.h> |
| 12 | #include <solid/genericinterface.h> |
| 13 | |
| 14 | namespace Solid |
| 15 | { |
| 16 | namespace Backends |
| 17 | { |
| 18 | namespace UDisks2 |
| 19 | { |
| 20 | class Device; |
| 21 | |
| 22 | class GenericInterface : public DeviceInterface, virtual public Solid::Ifaces::GenericInterface |
| 23 | { |
| 24 | Q_OBJECT |
| 25 | Q_INTERFACES(Solid::Ifaces::GenericInterface) |
| 26 | |
| 27 | public: |
| 28 | GenericInterface(Device *device); |
| 29 | ~GenericInterface() override; |
| 30 | |
| 31 | QVariant property(const QString &key) const override; |
| 32 | QVariantMap allProperties() const override; |
| 33 | bool propertyExists(const QString &key) const override; |
| 34 | |
| 35 | Q_SIGNALS: |
| 36 | void propertyChanged(const QMap<QString, int> &changes) override; |
| 37 | void conditionRaised(const QString &condition, const QString &reason) override; |
| 38 | }; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | #endif // SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H |
| 44 | |