|
luna-sysmgr-common
|
#include <NyxSensorConnector.h>
Public Member Functions | |
| virtual | ~NYXLogicalSensorConnectorBase () |
| virtual bool | on () |
| virtual bool | off () |
| virtual bool | setRate (SensorReportRate aRate) |
| virtual void | setOrientationAngle (int aAngle) |
| virtual void | scheduleDeletion () |
| virtual json_object * | toJSONObject () |
Public Member Functions inherited from NYXConnectorBase | |
| virtual | ~NYXConnectorBase () |
| virtual std::string | toJSONString () |
| virtual QEvent * | getQSensorData ()=0 |
| virtual nyx_device_handle_t | getHandle () |
| Sensor | type () |
Protected Slots | |
| virtual void | readSensorData (int) |
| void | logicalSensorDataAvailable () |
Protected Slots inherited from NYXConnectorBase | |
| virtual void | readSensorData (int aSocket)=0 |
Protected Member Functions | |
| NYXLogicalSensorConnectorBase (Sensor aSensorType, NYXConnectorObserver *aObserver, bool bCanPostEvent) | |
| virtual nyx_error_t | openSensor () |
| virtual void | connectSensorSignalToSlot () |
Protected Member Functions inherited from NYXConnectorBase | |
| NYXConnectorBase (Sensor aSensorType, nyx_device_type_t aDevType, nyx_device_id_t aDevID, NYXConnectorObserver *aObserver, bool bCanPostEvent) | |
| void | callObserver (bool aShouldEmit=true) |
| bool | canPostEvent () |
| virtual void | postProcessSensorData () |
Protected Attributes | |
| std::vector< NYXConnectorBase * > | m_SensorList |
Protected Attributes inherited from NYXConnectorBase | |
| Sensor | m_SensorType |
| QSocketNotifier * | m_NYXSensorNotifier |
| nyx_device_handle_t | m_Handle |
| nyx_device_type_t | m_NYXDeviceType |
| nyx_device_id_t | m_NYXDeviceId |
| NYXConnectorObserver * | m_Observer |
| int | m_SensorFD |
| bool | m_CanPostEvent |
| int | m_OrientationAngle |
| bool | m_Finished |
NYX Logical sensor connector base class A logical sensor is the one which combines more than one physical sensors and generates useful data
|
virtual |
default destructor
|
protected |
Parameterize constructor
| [in] | aSensorType | - Sensor Type |
| [in] | aObserver | - Observer for the NYX device |
| [in] | bCanPostEvent | - Defines whether a particular sensor can post event data or not |
NYX Logical sensor connector base class
|
inlineprotectedvirtual |
Connects the Sensor FD to a SLOT Override this method if a sensor has some other slot to register than the default one
Reimplemented from NYXConnectorBase.
|
protectedslot |
SLOT gets called whenever any of the one sensor has data available to read.
|
virtual |
Stop the apropriate sensor
Reimplemented from NYXConnectorBase.
|
virtual |
Start the appropriate sensor
Reimplemented from NYXConnectorBase.
|
inlineprotectedvirtual |
Opens a given sensor. Override this method if a sensor doesn't wants to be opened in a default way.
Reimplemented from NYXConnectorBase.
|
inlineprotectedvirtualslot |
SLOT gets called whenever there is some sensor data available to read.
| [in] | aSocket | - Socket identifier |
|
virtual |
Function marks this object for deletion As Qt deleteLater() is not working as expected, we will add an idle runloop callback which will help us delete this object
Reimplemented from NYXConnectorBase.
|
virtual |
Sets the Orientation angle, which will be taken into account while processing sensor data for Accelerometer, Rotation, Bearing (Compass) and Gyro
| aAngle | - Angle |
Reimplemented from NYXConnectorBase.
|
virtual |
Sets the report rate for the sensor
| [in] | aRate | - report rate |
Reimplemented from NYXConnectorBase.
|
virtual |
Gets the sensor data as a json Object
Implements NYXConnectorBase.
|
protected |