author | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
commit | d2f78d2aba17a491739d10bd73f6fce033849537 (patch) (side-by-side diff) | |
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 @@ -71,5 +71,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) } - QStrList freq = ODevice::inst()->cpuFrequencies(); + QStrList freq = ODevice::inst()->allowedCpuFrequencies(); if ( freq.count() ) { frequency->insertStrList( freq ); @@ -211,5 +211,5 @@ void LightSettings::setFrequency ( int index ) { qWarning("LightSettings::setFrequency(%d)", index); - ODevice::inst ( )-> setCpuFrequency(index); + ODevice::inst ( )-> setCurrentCpuFrequency(index); } diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 4c33a0e..d6e6892 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -776,7 +776,7 @@ int ODevice::lightSensorResolution ( ) const /** - * @return a list with valid CPU frequency + * @return a list with CPU frequencies supported by the hardware */ -QStrList &ODevice::cpuFrequencies ( ) const +const QStrList &ODevice::allowedCpuFrequencies ( ) const { return *d->m_cpu_frequencies; @@ -785,9 +785,9 @@ QStrList &ODevice::cpuFrequencies ( ) const /** - * Set desired cpu frequency + * Set desired CPU frequency * * @param index index into d->m_cpu_frequencies of the frequency to be set */ -bool ODevice::setCpuFrequency(uint index) +bool ODevice::setCurrentCpuFrequency(uint index) { if (index >= d->m_cpu_frequencies->count()) diff --git a/libopie/odevice.h b/libopie/odevice.h index 18ff5f1..f2f6467 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -199,7 +199,6 @@ public: virtual int lightSensorResolution ( ) const; - QStrList &cpuFrequencies() const; - bool setCpuFrequency(uint index); - int cpuFrequency() const; + const QStrList &allowedCpuFrequencies() const; + bool setCurrentCpuFrequency(uint index); /** |