File indexing completed on 2024-06-09 04:00:39
0001 /* 0002 SPDX-FileCopyrightText: 2010 Mario Bensi <mbensi@ipsquad.net> 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_SHARED_ROOT_DEVICE_H 0008 #define SOLID_BACKENDS_SHARED_ROOT_DEVICE_H 0009 0010 #include <solid/devices/ifaces/device.h> 0011 0012 #include <QStringList> 0013 0014 namespace Solid 0015 { 0016 namespace Backends 0017 { 0018 namespace Shared 0019 { 0020 class RootDevice : public Solid::Ifaces::Device 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit RootDevice(const QString &udi, const QString &parentUdi = QString()); 0026 0027 ~RootDevice() override; 0028 0029 QString udi() const override; 0030 QString parentUdi() const override; 0031 0032 QString vendor() const override; 0033 void setVendor(const QString &vendor); 0034 0035 QString product() const override; 0036 void setProduct(const QString &product); 0037 0038 QString icon() const override; 0039 void setIcon(const QString &icon); 0040 0041 QStringList emblems() const override; 0042 void setEmblems(const QStringList &emblems); 0043 0044 QString description() const override; 0045 void setDescription(const QString &description); 0046 0047 bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const override; 0048 0049 QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type) override; 0050 0051 private: 0052 QString m_udi; 0053 QString m_parentUdi; 0054 QString m_vendor; 0055 QString m_product; 0056 QString m_icon; 0057 QStringList m_emblems; 0058 QString m_description; 0059 }; 0060 0061 } 0062 } 0063 } 0064 #endif