Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Zaurus Class Reference

Inheritance diagram for Zaurus:

Inheritance graph
[legend]
Collaboration diagram for Zaurus:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool setSoftSuspend (bool soft)
virtual bool setDisplayBrightness (int b)
virtual int displayBrightnessResolution () const
virtual void alarmSound ()
virtual void keySound ()
virtual void touchSound ()
virtual QValueList< OLedledList () const
virtual QValueList< OLedStateledStateList (OLed led) const
virtual OLedState ledState (OLed led) const
virtual bool setLedState (OLed led, OLedState st)
bool hasHingeSensor () const
OHingeStatus readHingeSensor ()
virtual bool suspend ()
Transformation rotation () const
ODirection direction () const

Static Public Member Functions

static bool isZaurus ()

Protected Member Functions

virtual void init ()
virtual void initButtons ()
virtual void buzzer (int snd)
void virtual_hook (int id, void *data)

Protected Attributes

OLedState m_leds [1]
bool m_embedix

Member Function Documentation

void Zaurus::alarmSound  )  [virtual]
 

This plays an alarmSound

Reimplemented from Opie::ODevice.

Definition at line 1878 of file odevice.cpp.

References buzzer(), and SHARP_BUZ_SCHEDULE_ALARM.

void Zaurus::buzzer int  snd  )  [protected, virtual]
 

Definition at line 1804 of file odevice.cpp.

References Opie::ODevice::d, QString::isEmpty(), ODeviceData::m_model, Opie::Core::Model_Zaurus_SLB600, Opie::Core::Model_Zaurus_SLC7x0, qApp, SHARP_BUZ_KEYSOUND, SHARP_BUZ_SCHEDULE_ALARM, SHARP_BUZ_TOUCHSOUND, SHARP_BUZZER_MAKESOUND, and snd.

Referenced by alarmSound(), keySound(), and touchSound().

ODirection Zaurus::direction  )  const
 

Returns:
the current rotation direction

Reimplemented from Opie::ODevice.

Definition at line 2100 of file odevice.cpp.

References Opie::Core::CCW, Opie::Core::CW, Opie::ODevice::d, Opie::Core::Model_Zaurus_SL5000, Opie::Core::Model_Zaurus_SL5500, Opie::Core::Model_Zaurus_SLA300, Opie::Core::Model_Zaurus_SLB600, Opie::Core::Model_Zaurus_SLC7x0, and SHARP_IOCTL_GET_ROTATION.

Referenced by init(), and virtual_hook().

int Zaurus::displayBrightnessResolution  )  const [virtual]
 

Returns:
returns the number of steppings on the brightness slider in the Light-'n-Power settings.

Reimplemented from Opie::ODevice.

Definition at line 2131 of file odevice.cpp.

References Opie::ODevice::d, m_embedix, ODeviceData::m_model, and Opie::Core::Model_Zaurus_SLC7x0.

bool Zaurus::hasHingeSensor  )  const
 

Returns:
if the device has a hinge sensor

Reimplemented from Opie::ODevice.

Definition at line 2139 of file odevice.cpp.

References Opie::ODevice::d, ODeviceData::m_model, and Opie::Core::Model_Zaurus_SLC7x0.

Referenced by virtual_hook().

void Zaurus::init  )  [protected, virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 1594 of file odevice.cpp.

References Opie::ODevice::d, direction(), QFile::exists(), f, IO_ReadOnly, Opie::Core::Led_Off, loc, m_embedix, m_leds, Opie::ODevice::model(), Opie::Core::Model_Zaurus_SL5000, Opie::Core::Model_Zaurus_SL5500, Opie::Core::Model_Zaurus_SLA300, Opie::Core::Model_Zaurus_SLB600, Opie::Core::Model_Zaurus_SLC7x0, QFile::open(), Rot0, Rot270, rotation(), Opie::Core::System_OpenZaurus, Opie::Core::System_Zaurus, and Opie::Core::Vendor_Sharp.

void Zaurus::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::ODevice.

Definition at line 1693 of file odevice.cpp.

References ARRAY_SIZE, code, Opie::ODevice::d, fheldaction, fheldservice, fpressedaction, fpressedservice, i, Resource::loadPixmap(), Opie::Core::makeChannel(), Opie::Core::Model_Zaurus_SLC7x0, pix, Opie::ODevice::reloadButtonMapping(), Opie::ODevice::systemMessage(), tr, utext, and z_buttons.

bool Zaurus::isZaurus  )  [static]
 

Definition at line 1555 of file odevice.cpp.

References QFile::exists(), f, IO_ReadOnly, loc, and Opie::ODevice::model().

Referenced by Opie::ODevice::inst().

void Zaurus::keySound  )  [virtual]
 

This plays a key sound

Reimplemented from Opie::ODevice.

Definition at line 1888 of file odevice.cpp.

References buzzer(), and SHARP_BUZ_KEYSOUND.

QValueList< OLed > Zaurus::ledList  )  const [virtual]
 

This method will return a list of leds available on this device

Returns:
a list of LEDs.

Reimplemented from Opie::ODevice.

Definition at line 1894 of file odevice.cpp.

References Opie::Core::Led_Mail.

OLedState Zaurus::ledState OLed  which  )  const [virtual]
 

Returns:
the state for a given OLed

Reimplemented from Opie::ODevice.

Definition at line 1910 of file odevice.cpp.

References Opie::Core::Led_Mail, Opie::Core::Led_Off, and m_leds.

QValueList< OLedState > Zaurus::ledStateList OLed  l  )  const [virtual]
 

This does return the state of the LEDs

Reimplemented from Opie::ODevice.

Definition at line 1901 of file odevice.cpp.

References Opie::Core::Led_BlinkSlow, Opie::Core::Led_Mail, Opie::Core::Led_Off, and Opie::Core::Led_On.

OHingeStatus Zaurus::readHingeSensor  ) 
 

Returns:
a value from the hinge sensor

Reimplemented from Opie::ODevice.

Definition at line 2144 of file odevice.cpp.

References Opie::Core::CASE_CLOSED, Opie::Core::CASE_LANDSCAPE, Opie::Core::CASE_PORTRAIT, Opie::Core::CASE_UNKNOWN, qDebug(), qWarning(), and SHARP_IOCTL_GET_ROTATION.

Referenced by virtual_hook().

Transformation Zaurus::rotation  )  const
 

Returns:
the current Transformation

Reimplemented from Opie::ODevice.

Definition at line 2068 of file odevice.cpp.

References Opie::ODevice::d, Opie::Core::Model_Zaurus_SL5000, Opie::Core::Model_Zaurus_SL5500, Opie::Core::Model_Zaurus_SLA300, Opie::Core::Model_Zaurus_SLB600, Opie::Core::Model_Zaurus_SLC7x0, Rot0, Rot270, and SHARP_IOCTL_GET_ROTATION.

Referenced by init(), and virtual_hook().

bool Zaurus::setDisplayBrightness int  bright  )  [virtual]
 

This sets the display brightness

Parameters:
p The brightness to be set on a scale from 0 to 255
Returns:
success or failure

Reimplemented from Opie::ODevice.

Definition at line 1986 of file odevice.cpp.

References Opie::ODevice::d, FB_BACKLIGHT_SET_BRIGHTNESS, FL_IOCTL_STEP_CONTRAST, m_embedix, ODeviceData::m_model, Opie::Core::Model_Zaurus_SLC7x0, and write().

bool Zaurus::setLedState OLed  which,
OLedState  st
[virtual]
 

Set the state for a LED

Parameters:
which Which OLed to use
st The state to set
Returns:
success or failure

Reimplemented from Opie::ODevice.

Definition at line 1918 of file odevice.cpp.

References Opie::Core::Led_BlinkSlow, Opie::Core::Led_Mail, LED_MAIL_NEWMAIL_EXISTS, LED_MAIL_NO_UNREAD_MAIL, LED_MAIL_UNREAD_MAIL_EX, Opie::Core::Led_Off, Opie::Core::Led_On, m_embedix, m_leds, SHARP_LED_MAIL_EXISTS, SHARP_LED_SETSTATUS, and sharp_led_status::status.

bool Zaurus::setSoftSuspend bool  soft  )  [virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 1948 of file odevice.cpp.

References APM_EVT_POWER_BUTTON, APM_IOCGEVTSRC, APM_IOCSEVTSRC, m_embedix, and Opie::Core::perror().

bool Zaurus::suspend  )  [virtual]
 

This method will try to suspend the device It only works if the user is the QWS Server and the apm application is installed. It tries to suspend and then waits some time cause some distributions do have asynchronus apm implementations. This method will either fail and return false or it'll suspend the device and return once the device got woken up

Returns:
if the device got suspended

Reimplemented from Opie::ODevice.

Definition at line 2035 of file odevice.cpp.

References Opie::ODevice::d, Opie::Core::isQWS(), Opie::Core::Model_Unknown, qDebug(), and Opie::ODevice::system().

void Zaurus::touchSound  )  [virtual]
 

This plays a touch sound

Reimplemented from Opie::ODevice.

Definition at line 1883 of file odevice.cpp.

References buzzer(), and SHARP_BUZ_TOUCHSOUND.

void Zaurus::virtual_hook int  id,
void *  data
[protected, virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 2170 of file odevice.cpp.

References direction(), hasHingeSensor(), readHingeSensor(), rotation(), Opie::ODevice::VIRTUAL_DIRECTION, Opie::ODevice::VIRTUAL_HAS_HINGE, Opie::ODevice::VIRTUAL_HINGE, and Opie::ODevice::VIRTUAL_ROTATION.


Member Data Documentation

bool Zaurus::m_embedix [protected]
 

Definition at line 157 of file odevice.cpp.

Referenced by displayBrightnessResolution(), init(), setDisplayBrightness(), setLedState(), and setSoftSuspend().

OLedState Zaurus::m_leds[1] [protected]
 

Definition at line 156 of file odevice.cpp.

Referenced by init(), ledState(), and setLedState().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:56:05 2005 for OPIE by  doxygen 1.4.2