sensorfw
|
Adaptor for proximity sensor. More...
#include <proximityadaptor-evdev.h>
Public Types | |
enum | ProximityState { ProximityStateUnknown = -1 , ProximityStateOpen = 0 , ProximityStateClosed = 1 } |
Public Member Functions | |
virtual bool | startSensor () |
virtual void | stopSensor () |
virtual bool | standby () |
virtual bool | resume () |
Static Public Member Functions | |
static DeviceAdaptor * | factoryMethod (const QString &id) |
Factory method for gaining a new instance of ProximityAdaptorEvdev class. More... | |
Protected Member Functions | |
ProximityAdaptorEvdev (const QString &id) | |
Constructor. More... | |
~ProximityAdaptorEvdev () | |
Adaptor for proximity sensor.
Events are received through evdev kernel interface.
Listening clients are notified whenever the state has changed.
Definition at line 43 of file proximityadaptor-evdev.h.
Enumerator | |
---|---|
ProximityStateUnknown | Proximity state unknown. |
ProximityStateOpen | Proximity open (no target detected) |
ProximityStateClosed | Proximity closed (target nearby) |
Definition at line 48 of file proximityadaptor-evdev.h.
|
protected |
Constructor.
id | Identifier for the adaptor. |
|
protected |
|
inlinestatic |
Factory method for gaining a new instance of ProximityAdaptorEvdev class.
id | Identifier for the adaptor. |
Definition at line 58 of file proximityadaptor-evdev.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |