Solid

rootdevice.h
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
14namespace Solid
15{
16namespace Backends
17{
18namespace Shared
19{
20class RootDevice : public Solid::Ifaces::Device
21{
23
24public:
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
51private:
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
Type
This enum type defines the type of device interface that a Device can have.
This class specifies the interface a device will have to comply to in order to be used in the system.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.