Solid

ifaces/processor.h
1 /*
2  SPDX-FileCopyrightText: 2006 Kevin Ottens <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef SOLID_IFACES_PROCESSOR_H
8 #define SOLID_IFACES_PROCESSOR_H
9 
10 #include <solid/devices/ifaces/deviceinterface.h>
11 #include <solid/processor.h>
12 
13 namespace Solid
14 {
15 namespace Ifaces
16 {
20 class Processor : virtual public DeviceInterface
21 {
22 public:
26  virtual ~Processor();
27 
33  virtual int number() const = 0;
34 
40  virtual int maxSpeed() const = 0;
41 
50  virtual bool canChangeFrequency() const = 0;
51 
58 
59 };
60 }
61 }
62 
63 Q_DECLARE_INTERFACE(Solid::Ifaces::Processor, "org.kde.Solid.Ifaces.Processor/0.1")
64 
65 #endif
virtual int number() const =0
Retrieves the processor number in the system.
virtual int maxSpeed() const =0
Retrieves the maximum speed of the processor.
Base interface of all the device interfaces.
virtual ~Processor()
Destroys a Processor object.
virtual Solid::Processor::InstructionSets instructionSets() const =0
Queries the instructions set extensions of the CPU.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
This device interface is available on processors.
virtual bool canChangeFrequency() const =0
Indicates if the processor can change the CPU frequency.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:50:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.