| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/controls/cpu/cpufreqqmlitem.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/qmlitem.h"cxx . . $ `<file>/src/core/qmlitem.h`/ |
| 7 | #include "cpufreqprofilepart.h"cxx . . $ `<file>/src/core/components/controls/cpu/cpufreqprofilepart.h`/ |
| 8 | #include <QList> |
| 9 | #include <QObject> |
| 10 | #include <QString> |
| 11 | #include <optional> |
| 12 | #include <string> |
| 13 | #include <vector> |
| 14 | |
| 15 | class CPUFreqQMLItemcxx . . $ CPUFreqQMLItem# |
| 16 | : public QMLItemcxx . . $ QMLItem# |
| 17 | , public CPUFreqProfilePartcxx . . $ CPUFreqProfilePart#::Importercxx . . $ CPUFreqProfilePart#Importer# |
| 18 | , public CPUFreqProfilePartcxx . . $ CPUFreqProfilePart#::Exportercxx . . $ CPUFreqProfilePart#Exporter# |
| 19 | { |
| 20 | Q_OBJECTcxx . . $ CPUFreqQMLItem#QPrivateSignal# |
| 21 | |
| 22 | public: |
| 23 | explicit CPUFreqQMLItemcxx . . $ CPUFreqQMLItem#CPUFreqQMLItem(ced63f7c635d850d).() noexcept; |
| 24 | |
| 25 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 26 | void scalingGovernorChangedcxx . . $ CPUFreqQMLItem#scalingGovernorChanged(3520e46b33348bf6).(QStringcxx . . $ QString# const &governor); |
| 27 | void scalingGovernorsChangedcxx . . $ CPUFreqQMLItem#scalingGovernorsChanged(4c9f0945b8b27034).(QListcxx . . $ QList#<QStringcxx . . $ QString#> const &governors); |
| 28 | void eppHintChangedcxx . . $ CPUFreqQMLItem#eppHintChanged(3520e46b33348bf6).(QStringcxx . . $ QString# const &hint); |
| 29 | void eppHintsChangedcxx . . $ CPUFreqQMLItem#eppHintsChanged(4c9f0945b8b27034).(QListcxx . . $ QList#<QStringcxx . . $ QString#> const &hints); |
| 30 | void toggleEppHintcxx . . $ CPUFreqQMLItem#toggleEppHint(b45ddcbc8423892c).(bool enable); |
| 31 | |
| 32 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 33 | void changeScalingGovernorcxx . . $ CPUFreqQMLItem#changeScalingGovernor(3520e46b33348bf6).(QStringcxx . . $ QString# const &governor); |
| 34 | void changeEPPHintcxx . . $ CPUFreqQMLItem#changeEPPHint(3520e46b33348bf6).(QStringcxx . . $ QString# const &hint); |
| 35 | |
| 36 | public: |
| 37 | void activatecxx . . $ CPUFreqQMLItem#activate(b45ddcbc8423892c).(bool active) override; |
| 38 | |
| 39 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 40 | provideImportercxx . . $ CPUFreqQMLItem#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 41 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 42 | provideExportercxx . . $ CPUFreqQMLItem#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 43 | |
| 44 | bool provideActivecxx . . $ CPUFreqQMLItem#provideActive(50ce9a9e25b4a850).() const override; |
| 45 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideCPUFreqScalingGovernorcxx . . $ CPUFreqQMLItem#provideCPUFreqScalingGovernor(f4fff0029955a25f).() const override; |
| 46 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &provideCPUFreqEPPHintcxx . . $ CPUFreqQMLItem#provideCPUFreqEPPHint(f34183478aa9387b).() const override; |
| 47 | |
| 48 | void takeActivecxx . . $ CPUFreqQMLItem#takeActive(b45ddcbc8423892c).(bool active) override; |
| 49 | void takeCPUFreqScalingGovernorcxx . . $ CPUFreqQMLItem#takeCPUFreqScalingGovernor(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &governor) override; |
| 50 | void takeCPUFreqEPPHintcxx . . $ CPUFreqQMLItem#takeCPUFreqEPPHint(d049417f242f31d7).(stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &hint) override; |
| 51 | |
| 52 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> |
| 53 | initializercxx . . $ CPUFreqQMLItem#initializer(7a83657deb216afe).(IQMLComponentFactorycxx . . $ IQMLComponentFactory# const &qmlComponentFactory, |
| 54 | QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &qmlEngine) override; |
| 55 | |
| 56 | private: |
| 57 | class Initializercxx . . $ CPUFreqQMLItem#Initializer#; |
| 58 | void takeCPUFreqScalingGovernorscxx . . $ CPUFreqQMLItem#takeCPUFreqScalingGovernors(eb4a68411a16b7e7).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &governors); |
| 59 | void takeCPUFreqEPPHintscxx . . $ CPUFreqQMLItem#takeCPUFreqEPPHints(2ecf63ce205bf0f4).(stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>> const &hints); |
| 60 | |
| 61 | bool active_cxx . . $ CPUFreqQMLItem#active_.; |
| 62 | stdcxx . . $ std/::stringcxx . . $ std/string# scalingGovernor_cxx . . $ CPUFreqQMLItem#scalingGovernor_.; |
| 63 | stdcxx . . $ std/::stringcxx . . $ std/string# const eppScalingGovernor_cxx . . $ CPUFreqQMLItem#eppScalingGovernor_.{cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)."powersave"}; |
| 64 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> eppHint_cxx . . $ CPUFreqQMLItem#eppHint_.; |
| 65 | bool enableEpp_cxx . . $ CPUFreqQMLItem#enableEpp_.{false}; |
| 66 | |
| 67 | static bool register_cxx . . $ CPUFreqQMLItem#register_(c9857a73d68e59ba).(); |
| 68 | static bool const registered_cxx . . $ CPUFreqQMLItem#registered_.; |
| 69 | |
| 70 | static char const *const trStringscxx . . $ CPUFreqQMLItem#trStrings.[]; |
| 71 | }; |