File indexing completed on 2024-05-12 04:01:51

0001 /*
0002     SPDX-FileCopyrightText: 2006-2007 Kevin Ottens <ervin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "processor.h"
0008 #include "processor_p.h"
0009 
0010 #include "soliddefs_p.h"
0011 #include <solid/devices/ifaces/processor.h>
0012 
0013 Solid::Processor::Processor(QObject *backendObject)
0014     : DeviceInterface(*new ProcessorPrivate(), backendObject)
0015 {
0016 }
0017 
0018 Solid::Processor::~Processor()
0019 {
0020 }
0021 
0022 int Solid::Processor::number() const
0023 {
0024     Q_D(const Processor);
0025     return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, number());
0026 }
0027 
0028 int Solid::Processor::maxSpeed() const
0029 {
0030     Q_D(const Processor);
0031     return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, maxSpeed());
0032 }
0033 
0034 bool Solid::Processor::canChangeFrequency() const
0035 {
0036     Q_D(const Processor);
0037     return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), false, canChangeFrequency());
0038 }
0039 
0040 Solid::Processor::InstructionSets Solid::Processor::instructionSets() const
0041 {
0042     Q_D(const Processor);
0043     return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), InstructionSets(), instructionSets());
0044 }
0045 
0046 #include "moc_processor.cpp"