Solid

windevice.h
1/*
2 SPDX-FileCopyrightText: 2013 Patrick von Reth <vonreth@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 WINDEVICE_H
8#define WINDEVICE_H
9
10#include "windevicemanager.h"
11#include <solid/devices/ifaces/device.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace Win
18{
19class WinDevice : public Solid::Ifaces::Device
20{
22public:
23 WinDevice(const QString &udi);
24
25 virtual QString udi() const;
26
27 virtual QString parentUdi() const;
28 virtual QString vendor() const;
29 virtual QString product() const;
30
31 virtual QString icon() const;
32
33 virtual QStringList emblems() const;
34
35 virtual QString description() const;
36
37 virtual bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const;
38 virtual QObject *createDeviceInterface(const Solid::DeviceInterface::Type &type);
39
41
42private:
43 QString m_udi;
44 QString m_parentUdi;
45 QString m_vendor;
46 QString m_product;
47 QString m_description;
49
50 void initStorageDevice();
51 void initBatteryDevice();
52 void initCpuDevice();
53};
54
55}
56}
57}
58
59#endif // WINDEVICE_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.