Solid

frontend/processor.cpp
1/*
2 SPDX-FileCopyrightText: 2006-2007 Kevin Ottens <ervin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "processor.h"
8#include "processor_p.h"
9
10#include "soliddefs_p.h"
11#include <solid/devices/ifaces/processor.h>
12
13Solid::Processor::Processor(QObject *backendObject)
14 : DeviceInterface(*new ProcessorPrivate(), backendObject)
15{
16}
17
21
22int Solid::Processor::number() const
23{
24 Q_D(const Processor);
25 return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, number());
26}
27
28int Solid::Processor::maxSpeed() const
29{
30 Q_D(const Processor);
31 return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, maxSpeed());
32}
33
34bool Solid::Processor::canChangeFrequency() const
35{
36 Q_D(const Processor);
37 return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), false, canChangeFrequency());
38}
39
40Solid::Processor::InstructionSets Solid::Processor::instructionSets() const
41{
42 Q_D(const Processor);
43 return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), InstructionSets(), instructionSets());
44}
45
46#include "moc_processor.cpp"
This device interface is available on processors.
This device interface is available on processors.
~Processor() override
Destroys a Processor object.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.