| 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 | |
| 13 | Solid::Processor::Processor(QObject *backendObject) |
| 14 | : DeviceInterface(*new ProcessorPrivate(), backendObject) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | Solid::Processor::~Processor() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | int Solid::Processor::number() const |
| 23 | { |
| 24 | Q_D(const Processor); |
| 25 | return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, number()); |
| 26 | } |
| 27 | |
| 28 | int Solid::Processor::maxSpeed() const |
| 29 | { |
| 30 | Q_D(const Processor); |
| 31 | return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), 0, maxSpeed()); |
| 32 | } |
| 33 | |
| 34 | bool Solid::Processor::canChangeFrequency() const |
| 35 | { |
| 36 | Q_D(const Processor); |
| 37 | return_SOLID_CALL(Ifaces::Processor *, d->backendObject(), false, canChangeFrequency()); |
| 38 | } |
| 39 | |
| 40 | Solid::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" |
| 47 | |