luna-sysmgr-common
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HostArmOpal Class Reference
Inheritance diagram for HostArmOpal:
[legend]
Collaboration diagram for HostArmOpal:
[legend]

Public Member Functions

 HostArmOpal ()
 
virtual ~HostArmOpal ()
 
virtual const char * hardwareName () const
 
virtual bool homeButtonWakesUpScreen ()
 
virtual int getNumberOfSwitches () const
 
- Public Member Functions inherited from HostArm
 HostArm ()
 
virtual ~HostArm ()
 
virtual void init (int w, int h)
 
virtual void show ()
 
int readHidEvents (int fd, struct input_event *eventBuf, int bufSize)
 
virtual InputControlgetInputControlALS ()
 
virtual InputControlgetInputControlBluetoothInputDetect ()
 
virtual InputControlgetInputControlProximity ()
 
virtual InputControlgetInputControlTouchpanel ()
 
virtual InputControlgetInputControlKeys ()
 
virtual LedControlgetLedControlKeypadAndDisplay ()
 
virtual void OrientationSensorOn (bool enable)
 
virtual void setBluetoothKeyboardActive (bool active)
 
virtual bool bluetoothKeyboardActive () const
 
- Public Member Functions inherited from HostBase
virtual ~HostBase ()
 
const HostInfogetInfo () const
 
virtual void run ()
 
virtual void quit ()
 
virtual unsigned short translateKeyWithMeta (unsigned short key, bool withShift, bool withAlt)
 
void lockPainting ()
 
void unlockPainting ()
 
virtual void setMetaModifier (bool metaKeyDown)
 
virtual bool metaModifier ()
 
void turboModeSubscription (bool add)
 
virtual bool hasAltKey (Qt::KeyboardModifiers modifiers)
 
void setOrientation (OrientationEvent::Orientation o)
 
QPoint map (const QPoint &pt)
 
virtual OrientationEventpostProcessDeviceOrientation (OrientationEvent *currOrientation)
 
- Public Member Functions inherited from TaskBase
 TaskBase ()
 
virtual ~TaskBase ()
 
void postEvent (sptr< Event > event, bool highPriority=false)
 
GMainLoop * mainLoop () const
 
SingletonTimermasterTimer () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void ref ()
 
void deref ()
 

Protected Member Functions

virtual void turboMode (bool enable)
 
- Protected Member Functions inherited from HostArm
virtual void wakeUpLcd ()
 
virtual int screenX (int rawX, Event::Type type)
 
virtual int screenY (int rawY, Event::Type type)
 
virtual void setCentralWidget (QWidget *view)
 
void setupInput (void)
 
void shutdownInput (void)
 
void startService (void)
 
void stopService (void)
 
void disableScreenBlanking ()
 
virtual void flip ()
 
virtual QImage takeScreenShot () const
 
virtual QImage takeAppDirectRenderingScreenShot () const
 
virtual void setAppDirectRenderingLayerEnabled (bool enable)
 
virtual void setRenderingLayerEnabled (bool enable)
 
virtual void NYXDataAvailable (NYXConnectorBase::Sensor aSensorType)
 
- Protected Member Functions inherited from HostBase
 HostBase ()
 
virtual void handleEvent (sptr< Event >)
 

Additional Inherited Members

- Signals inherited from HostBase
void signalBluetoothKeyboardActive (bool active)
 
- Static Public Member Functions inherited from HostBase
static HostBaseinstance ()
 
static bool hostIsQemu ()
 
- Protected Slots inherited from HostArm
void readALSData ()
 
void readProxData ()
 
- Static Protected Member Functions inherited from HostArm
static bool getMsgValueInt (LSMessage *msg, int &value)
 
- Protected Attributes inherited from HostArm
QSocketNotifier * m_nyxLightNotifier
 
QSocketNotifier * m_nyxProxNotifier
 
int m_fb0Fd
 
int m_fb1Fd
 
void * m_fb0Buffer
 
int m_fb0NumBuffers
 
void * m_fb1Buffer
 
int m_fb1NumBuffers
 
LSHandle * m_service
 
InputControlm_nyxInputControlALS
 
InputControlm_nyxInputControlBluetoothInputDetect
 
InputControlm_nyxInputControlProx
 
InputControlm_nyxInputControlKeys
 
InputControlm_nyxInputControlTouchpanel
 
LedControlm_nyxLedControlKeypadAndDisplay
 
bool m_bluetoothKeyboardActive
 
NYXOrientationSensorConnectorm_OrientationSensor
 

Detailed Description

Device-specific functionality for the never-released Opal devices, which would have been very similar to the Topaz devices

Device details:

  • ARMv7.
  • Turbo mode from 40% to 95% of speed.
  • Switches (2): headphones inserted and power.
  • Home button wakes up the screen.
See Also
https://en.wikipedia.org/wiki/HP_TouchPad

Constructor & Destructor Documentation

HostArmOpal::HostArmOpal ( )

Constructs an Opal device host

HostArmOpal::~HostArmOpal ( )
virtual

Destroys an Opal device host

Member Function Documentation

int HostArmOpal::getNumberOfSwitches ( ) const
virtual

Gets the number of hardware switches the current host device has

As an example, the Palm Pre has 3 switches:

  • Ringer on/off.
  • Slider opened/closed.
  • Headphones inserted/no headphones.
Returns
Number of hardware switches the device has.

Reimplemented from HostArm.

const char * HostArmOpal::hardwareName ( ) const
virtual

Reimplemented from HostArm.

bool HostArmOpal::homeButtonWakesUpScreen ( )
virtual

Presumably whether the Home button wakes up the screen

This is seldom used and largely undocumented. Description is more or less a guess.

Todo:
Determine with certainty what this method is for.
Returns
Presumably true if pressing the Home button wakes up the screen and false otherwise.

Reimplemented from HostBase.

void HostArmOpal::turboMode ( bool  enable)
protectedvirtual

Enables/disables turbo mode

Changes CPU frequency scaling. When turbo mode is enabled, the CPU is set to run at full speed. When disabled, it turns the speed down to save on power usage.

Parameters
enabletrue to enable turbo mode, false to disable it

Reimplemented from HostBase.


The documentation for this class was generated from the following file: