Solid

udevmanager.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_UDEVMANAGER_H
8#define SOLID_BACKENDS_UDEV_UDEVMANAGER_H
9
10#include <solid/devices/ifaces/devicemanager.h>
11
12#include "../shared/udevqt.h"
13
14namespace Solid
15{
16namespace Backends
17{
18namespace UDev
19{
20class UDevManager : public Solid::Ifaces::DeviceManager
21{
23
24public:
25 UDevManager(QObject *parent);
26 ~UDevManager() override;
27
28 QString udiPrefix() const override;
29 QSet<Solid::DeviceInterface::Type> supportedInterfaces() const override;
30
31 QStringList allDevices() override;
32
33 virtual QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type) override;
34
35 QObject *createDevice(const QString &udi) override;
36
37private Q_SLOTS:
38 void slotDeviceAdded(const UdevQt::Device &device);
39 void slotDeviceRemoved(const UdevQt::Device &device);
40
41private:
42 class Private;
43 Private *const d;
44};
45}
46}
47}
48
49#endif // SOLID_BACKENDS_UDEV_UDEVMANAGER_H
Type
This enum type defines the type of device interface that a Device can have.
This class specifies the interface a backend will have to implement 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
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.