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

Public Member Functions

 HostArmWindsorNot ()
 
virtual ~HostArmWindsorNot ()
 
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 ()
 

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 ()
 
- 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)
 
- 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 WindsorNot device(s)

Device details:

  • Unknown instruction set.
  • Switches (3): ringer, headphones inserted, and power.
  • Home button wakes up the screen.

Constructor & Destructor Documentation

HostArmWindsorNot::HostArmWindsorNot ( )

Constructs a WindsorNot device host

HostArmWindsorNot::~HostArmWindsorNot ( )
virtual

Destroys a WindsorNot device host

Member Function Documentation

int HostArmWindsorNot::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 * HostArmWindsorNot::hardwareName ( ) const
virtual

Reimplemented from HostArm.

bool HostArmWindsorNot::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.


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