File indexing completed on 2024-06-09 04:00:41

0001 /*
0002     SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H
0008 #define SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H
0009 
0010 #include "udisksdeviceinterface.h"
0011 #include <solid/devices/ifaces/genericinterface.h>
0012 #include <solid/genericinterface.h>
0013 
0014 namespace Solid
0015 {
0016 namespace Backends
0017 {
0018 namespace UDisks2
0019 {
0020 class Device;
0021 
0022 class GenericInterface : public DeviceInterface, virtual public Solid::Ifaces::GenericInterface
0023 {
0024     Q_OBJECT
0025     Q_INTERFACES(Solid::Ifaces::GenericInterface)
0026 
0027 public:
0028     GenericInterface(Device *device);
0029     ~GenericInterface() override;
0030 
0031     QVariant property(const QString &key) const override;
0032     QVariantMap allProperties() const override;
0033     bool propertyExists(const QString &key) const override;
0034 
0035 Q_SIGNALS:
0036     void propertyChanged(const QMap<QString, int> &changes) override;
0037     void conditionRaised(const QString &condition, const QString &reason) override;
0038 };
0039 }
0040 }
0041 }
0042 
0043 #endif // SOLID_BACKENDS_UDISKS_GENERICINTERFACE_H