Public Types | Static Public Member Functions | Protected Member Functions

ProximityAdaptorEvdev Class Reference

Adaptor for proximity sensor. More...

#include <proximityadaptor-evdev.h>

List of all members.

Public Types

enum  ProximityState { ProximityStateUnknown = -1, ProximityStateOpen = 0, ProximityStateClosed = 1 }

Static Public Member Functions

static DeviceAdaptor * factoryMethod (const QString &id)
 Factory method for gaining a new instance of ProximityAdaptorEvdev class.

Protected Member Functions

 ProximityAdaptorEvdev (const QString &id)
 Constructor.
 ~ProximityAdaptorEvdev ()

Detailed Description

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.


Member Enumeration Documentation

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.


Constructor & Destructor Documentation

ProximityAdaptorEvdev::ProximityAdaptorEvdev ( const QString &  id  )  [protected]

Constructor.

Parameters:
id Identifier for the adaptor.
ProximityAdaptorEvdev::~ProximityAdaptorEvdev (  )  [protected]

Member Function Documentation

static DeviceAdaptor* ProximityAdaptorEvdev::factoryMethod ( const QString &  id  )  [inline, static]

Factory method for gaining a new instance of ProximityAdaptorEvdev class.

Parameters:
id Identifier for the adaptor.

Definition at line 58 of file proximityadaptor-evdev.h.


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