| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2010 Mario Bensi <mbensi@ipsquad.net> |
| 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_SHARED_ROOT_DEVICE_H |
| 8 | #define SOLID_BACKENDS_SHARED_ROOT_DEVICE_H |
| 9 | |
| 10 | #include <solid/devices/ifaces/device.h> |
| 11 | |
| 12 | #include <QStringList> |
| 13 | |
| 14 | namespace Solid |
| 15 | { |
| 16 | namespace Backends |
| 17 | { |
| 18 | namespace Shared |
| 19 | { |
| 20 | class RootDevice : public Solid::Ifaces::Device |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | |
| 24 | public: |
| 25 | explicit RootDevice(const QString &udi, const QString &parentUdi = QString()); |
| 26 | |
| 27 | ~RootDevice() override; |
| 28 | |
| 29 | QString udi() const override; |
| 30 | QString parentUdi() const override; |
| 31 | |
| 32 | QString vendor() const override; |
| 33 | void setVendor(const QString &vendor); |
| 34 | |
| 35 | QString product() const override; |
| 36 | void setProduct(const QString &product); |
| 37 | |
| 38 | QString icon() const override; |
| 39 | void setIcon(const QString &icon); |
| 40 | |
| 41 | QStringList emblems() const override; |
| 42 | void setEmblems(const QStringList &emblems); |
| 43 | |
| 44 | QString description() const override; |
| 45 | void setDescription(const QString &description); |
| 46 | |
| 47 | bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const override; |
| 48 | |
| 49 | QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type) override; |
| 50 | |
| 51 | private: |
| 52 | QString m_udi; |
| 53 | QString m_parentUdi; |
| 54 | QString m_vendor; |
| 55 | QString m_product; |
| 56 | QString m_icon; |
| 57 | QStringList m_emblems; |
| 58 | QString m_description; |
| 59 | }; |
| 60 | |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | #endif |
| 65 | |