Solid

udevprocessor.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_PROCESSOR_H
8#define SOLID_BACKENDS_UDEV_PROCESSOR_H
9
10#include "udevdeviceinterface.h"
11#include <solid/devices/ifaces/processor.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace UDev
18{
19class UDevDevice;
20
21class Processor : public DeviceInterface, virtual public Solid::Ifaces::Processor
22{
25
26public:
27 Processor(UDevDevice *device);
28 ~Processor() override;
29
30 int number() const override;
31 int maxSpeed() const override;
32 bool canChangeFrequency() const override;
33 Solid::Processor::InstructionSets instructionSets() const override;
34
35private:
36 enum CanChangeFrequencyEnum {
37 NotChecked,
38 CanChangeFreq,
39 CannotChangeFreq,
40 };
41 mutable CanChangeFrequencyEnum m_canChangeFrequency;
42 mutable int m_maxSpeed;
43 QString prefix() const;
44};
45}
46}
47}
48
49#endif // SOLID_BACKENDS_UDEV_PROCESSOR_H
This device interface is available on processors.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
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.