author | mickeyl <mickeyl> | 2005-01-23 21:35:29 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-23 21:35:29 (UTC) |
commit | dd410f1eb69e68f04cf26b6d3e6bca88f0987f71 (patch) (side-by-side diff) | |
tree | 0f2b59bae4c326011783e9cdea0754e180ae0e27 /libopie2/opiecore/device/odevice_genuineintel.cpp | |
parent | 78e658cecc7521cf3932f5eb44d3f551d73f3181 (diff) | |
download | opie-dd410f1eb69e68f04cf26b6d3e6bca88f0987f71.zip opie-dd410f1eb69e68f04cf26b6d3e6bca88f0987f71.tar.gz opie-dd410f1eb69e68f04cf26b6d3e6bca88f0987f71.tar.bz2 |
remove setSoftSuspend() from ODevice. this is a left-over from the old days
Diffstat (limited to 'libopie2/opiecore/device/odevice_genuineintel.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_genuineintel.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libopie2/opiecore/device/odevice_genuineintel.cpp b/libopie2/opiecore/device/odevice_genuineintel.cpp index 61ba052..1584249 100644 --- a/libopie2/opiecore/device/odevice_genuineintel.cpp +++ b/libopie2/opiecore/device/odevice_genuineintel.cpp @@ -67,127 +67,121 @@ struct gi_button genuineintel_buttons [] = { "QPE/TaskBar", "toggleStartMenu()" }, { Qt::Key_F4, QT_TRANSLATE_NOOP("Button", "Mail Button"), "devicebuttons/ipaq_mail", "opiemail", "raise()", "opiemail", "newMail()" }, { Qt::Key_F5, QT_TRANSLATE_NOOP("Button", "Home Button"), "devicebuttons/ipaq_home", "QPE/Launcher", "home()", "buttonsettings", "raise()" }, { Qt::Key_F6, QT_TRANSLATE_NOOP("Button", "Record Button"), "devicebuttons/ipaq_record", "QPE/VMemo", "toggleRecord()", "sound", "raise()" }, }; void GenuineIntel::init(const QString& model) { d->m_vendorstr = "Intel"; d->m_vendor = Vendor_GenuineIntel; QStringList SL = QStringList::split( " ", model ); d->m_model = Model_GenuineIntel; d->m_rotation = Rot0; } void GenuineIntel::initButtons() { if ( d->m_buttons ) return; if ( isQWS( ) ) { addPreHandler(this); } d->m_buttons = new QValueList <ODeviceButton>; for ( uint i = 0; i < ( sizeof( genuineintel_buttons ) / sizeof( gi_button )); i++ ) { gi_button *ib = genuineintel_buttons + i; ODeviceButton b; b. setKeycode ( ib->code ); b. setUserText ( QObject::tr ( "Button", ib->utext )); b. setPixmap ( Resource::loadPixmap ( ib->pix )); b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction )); b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction )); d->m_buttons->append ( b ); } reloadButtonMapping(); } QValueList <OLed> GenuineIntel::ledList() const { QValueList <OLed> vl; return vl; //none } QValueList <OLedState> GenuineIntel::ledStateList ( OLed ) const { QValueList <OLedState> vl; return vl; // none } OLedState GenuineIntel::ledState ( OLed ) const { return Led_Off; } bool GenuineIntel::setLedState ( OLed , OLedState ) { return false; } bool GenuineIntel::filter ( int /*unicode*/, int , int , bool , bool ) { return false; } void GenuineIntel::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); if(!snd.isFinished()) return; changeMixerForAlarm(0, "/dev/sound/mixer", &snd ); snd. play(); #endif } -bool GenuineIntel::setSoftSuspend ( bool ) -{ - return false; -} - - bool GenuineIntel::setDisplayBrightness ( int ) { return false; } int GenuineIntel::displayBrightnessResolution() const { return 1; // perhaps to avoid division by zero } bool GenuineIntel::hasLightSensor() const { return false; } int GenuineIntel::readLightSensor() { return 0; } int GenuineIntel::lightSensorResolution() const { return 1; // see above } |