author | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
commit | d2f78d2aba17a491739d10bd73f6fce033849537 (patch) (unidiff) | |
tree | 0d8e5683afaa6da476001e00fc6db2ebc5c1a0df | |
parent | 8ffea5d37080bd173d55a458296c1fc461a54d13 (diff) | |
download | opie-d2f78d2aba17a491739d10bd73f6fce033849537.zip opie-d2f78d2aba17a491739d10bd73f6fce033849537.tar.gz opie-d2f78d2aba17a491739d10bd73f6fce033849537.tar.bz2 |
renamed frequency access methods
-rw-r--r-- | core/settings/light-and-power/light.cpp | 4 | ||||
-rw-r--r-- | libopie/odevice.cpp | 8 | ||||
-rw-r--r-- | libopie/odevice.h | 5 |
3 files changed, 8 insertions, 9 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 68c2929..eda0c1f 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -72,3 +72,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
72 | 72 | ||
73 | QStrList freq = ODevice::inst()->cpuFrequencies(); | 73 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); |
74 | if ( freq.count() ) { | 74 | if ( freq.count() ) { |
@@ -212,3 +212,3 @@ void LightSettings::setFrequency ( int index ) | |||
212 | qWarning("LightSettings::setFrequency(%d)", index); | 212 | qWarning("LightSettings::setFrequency(%d)", index); |
213 | ODevice::inst ( )-> setCpuFrequency(index); | 213 | ODevice::inst ( )-> setCurrentCpuFrequency(index); |
214 | } | 214 | } |
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 4c33a0e..d6e6892 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -777,5 +777,5 @@ int ODevice::lightSensorResolution ( ) const | |||
777 | /** | 777 | /** |
778 | * @return a list with valid CPU frequency | 778 | * @return a list with CPU frequencies supported by the hardware |
779 | */ | 779 | */ |
780 | QStrList &ODevice::cpuFrequencies ( ) const | 780 | const QStrList &ODevice::allowedCpuFrequencies ( ) const |
781 | { | 781 | { |
@@ -786,3 +786,3 @@ QStrList &ODevice::cpuFrequencies ( ) const | |||
786 | /** | 786 | /** |
787 | * Set desired cpu frequency | 787 | * Set desired CPU frequency |
788 | * | 788 | * |
@@ -790,3 +790,3 @@ QStrList &ODevice::cpuFrequencies ( ) const | |||
790 | */ | 790 | */ |
791 | bool ODevice::setCpuFrequency(uint index) | 791 | bool ODevice::setCurrentCpuFrequency(uint index) |
792 | { | 792 | { |
diff --git a/libopie/odevice.h b/libopie/odevice.h index 18ff5f1..f2f6467 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -200,5 +200,4 @@ public: | |||
200 | 200 | ||
201 | QStrList &cpuFrequencies() const; | 201 | const QStrList &allowedCpuFrequencies() const; |
202 | bool setCpuFrequency(uint index); | 202 | bool setCurrentCpuFrequency(uint index); |
203 | int cpuFrequency() const; | ||
204 | 203 | ||