| 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 | #include "rootdevice.h" |
| 8 | |
| 9 | using namespace Solid::Backends::Shared; |
| 10 | |
| 11 | RootDevice::RootDevice(const QString &udi, const QString &parentUdi) |
| 12 | : Solid::Ifaces::Device() |
| 13 | , m_udi(udi) |
| 14 | , m_parentUdi(parentUdi) |
| 15 | , m_vendor(QStringLiteral("KDE")) |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | RootDevice::~RootDevice() |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | QString RootDevice::udi() const |
| 24 | { |
| 25 | return m_udi; |
| 26 | } |
| 27 | |
| 28 | QString RootDevice::parentUdi() const |
| 29 | { |
| 30 | return m_parentUdi; |
| 31 | } |
| 32 | |
| 33 | QString RootDevice::vendor() const |
| 34 | { |
| 35 | return m_vendor; |
| 36 | } |
| 37 | |
| 38 | void RootDevice::setVendor(const QString &vendor) |
| 39 | { |
| 40 | m_vendor = vendor; |
| 41 | } |
| 42 | |
| 43 | QString RootDevice::product() const |
| 44 | { |
| 45 | return m_product; |
| 46 | } |
| 47 | |
| 48 | void RootDevice::setProduct(const QString &product) |
| 49 | { |
| 50 | m_product = product; |
| 51 | } |
| 52 | |
| 53 | QString RootDevice::icon() const |
| 54 | { |
| 55 | return m_icon; |
| 56 | } |
| 57 | |
| 58 | void RootDevice::setIcon(const QString &icon) |
| 59 | { |
| 60 | m_icon = icon; |
| 61 | } |
| 62 | |
| 63 | QStringList RootDevice::emblems() const |
| 64 | { |
| 65 | return m_emblems; |
| 66 | } |
| 67 | |
| 68 | void RootDevice::setEmblems(const QStringList &emblems) |
| 69 | { |
| 70 | m_emblems = emblems; |
| 71 | } |
| 72 | |
| 73 | QString RootDevice::description() const |
| 74 | { |
| 75 | return m_description; |
| 76 | } |
| 77 | |
| 78 | void RootDevice::setDescription(const QString &description) |
| 79 | { |
| 80 | m_description = description; |
| 81 | } |
| 82 | |
| 83 | bool RootDevice::queryDeviceInterface(const Solid::DeviceInterface::Type &) const |
| 84 | { |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | QObject *RootDevice::createDeviceInterface(const Solid::DeviceInterface::Type &) |
| 89 | { |
| 90 | return nullptr; |
| 91 | } |
| 92 | |
| 93 | #include "moc_rootdevice.cpp" |
| 94 |
