Solid

udevdevice.h
1/*
2 SPDX-FileCopyrightText: 2010 Rafael Fernández López <ereslibre@kde.org>
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_UDEV_UDEVDEVICE_H
8#define SOLID_BACKENDS_UDEV_UDEVDEVICE_H
9
10#include "udev.h"
11
12#include <QStringList>
13#include <solid/devices/ifaces/device.h>
14
15namespace Solid
16{
17namespace Backends
18{
19namespace UDev
20{
21class UDevDevice : public Solid::Ifaces::Device
22{
24
25public:
26 UDevDevice(const UdevQt::Device device);
27 ~UDevDevice() override;
28
29 QString udi() const override;
30
31 QString parentUdi() const override;
32
33 QString vendor() const override;
34
35 QString product() const override;
36
37 QString icon() const override;
38
39 QStringList emblems() const override;
40
41 QString description() const override;
42
43 bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const override;
44
45 QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type) override;
46
47 QString device() const;
48
49 QVariant property(const QString &key) const;
50 QMap<QString, QVariant> allProperties() const;
51 bool propertyExists(const QString &key) const;
52
53 QString systemAttribute(const char *attribute) const;
54 QString deviceName() const;
55 QString devicePath() const;
56 int deviceNumber() const;
57
58 UdevQt::Device udevDevice();
59
60private:
61 UdevQt::Device m_device;
62};
63
64}
65}
66}
67#endif // SOLID_BACKENDS_UDEV_UDEVDEVICE_H
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.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.