Sensor Scol plugin
Multi platform sensors for handled devices
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
SSensorManager Class Referenceabstract
Inheritance diagram for SSensorManager:
SQSensorManager

Public Member Functions

SSensorGetSensorByType (SSensorType sensorType)
 
std::set< SSensor * > GetSensorList ()
 
bool IsAvailable (SSensorType sensorType)
 
bool IsEnabled (SSensorType sensorType)
 
SSensorCbAddSensorCallBack (SSensorType sensorType)
 
void RemoveSensorCallBack (SSensorCb *sensorCb)
 
virtual int SetSensorEnable (SSensorType sensorType, bool state)=0
 
virtual void Vibrate (long millis)=0
 
virtual void StartVibration ()=0
 
virtual void StopVibration ()=0
 
virtual void VibratePattern (std::vector< int > pattern, bool loop)=0
 
virtual void StartLocationService ()=0
 
virtual void StopLocationService ()=0
 
virtual bool GetLocation (float &longitude, float &latitude, float &altitude)=0
 
void PauseSensorManager ()
 
void ResumeSensorManager ()
 
OrientationTrackerGetOrientationTracker ()
 
Quaternion GetDeviceOrientation (double timeOffsetInSeconds)
 

Static Public Member Functions

static SSensorManagerGetInstance ()
 
static void Kill ()
 

Protected Attributes

std::set< SSensor * > mSensorList
 
OrientationTrackermOrientationTracker
 

Static Protected Attributes

static SSensorManagermSingletonInstance
 

Detailed Description

Definition at line 104 of file SSensor.h.

Constructor & Destructor Documentation

◆ SSensorManager()

Definition at line 179 of file SSensor.cpp.

◆ ~SSensorManager()

~SSensorManager ( )
virtual

Definition at line 184 of file SSensor.cpp.

Member Function Documentation

◆ AddSensorCallBack()

SSensorCb * AddSensorCallBack ( SSensorType  sensorType)

Definition at line 274 of file SSensor.cpp.

◆ GetDeviceOrientation()

Quaternion GetDeviceOrientation ( double  timeOffsetInSeconds)

Definition at line 260 of file SSensor.cpp.

◆ GetInstance()

SSensorManager * GetInstance ( )
static

Definition at line 44 of file SSensor.cpp.

◆ GetOrientationTracker()

OrientationTracker * GetOrientationTracker ( )

Definition at line 255 of file SSensor.cpp.

◆ GetSensorByType()

SSensor * GetSensorByType ( SSensorType  sensorType)

Definition at line 210 of file SSensor.cpp.

◆ GetSensorList()

std::set< SSensor * > GetSensorList ( )

Definition at line 250 of file SSensor.cpp.

◆ IsAvailable()

bool IsAvailable ( SSensorType  sensorType)

Definition at line 189 of file SSensor.cpp.

◆ IsEnabled()

bool IsEnabled ( SSensorType  sensorType)

Definition at line 197 of file SSensor.cpp.

◆ Kill()

void Kill ( )
static

Definition at line 59 of file SSensor.cpp.

◆ PauseSensorManager()

void PauseSensorManager ( )

Definition at line 222 of file SSensor.cpp.

◆ RemoveSensorCallBack()

void RemoveSensorCallBack ( SSensorCb sensorCb)

Definition at line 283 of file SSensor.cpp.

◆ ResumeSensorManager()

void ResumeSensorManager ( )

Definition at line 236 of file SSensor.cpp.

Field Documentation

◆ mOrientationTracker

OrientationTracker* mOrientationTracker
protected

Definition at line 112 of file SSensor.h.

◆ mSensorList

std::set<SSensor*> mSensorList
protected

Definition at line 111 of file SSensor.h.

◆ mSingletonInstance

SSensorManager * mSingletonInstance
staticprotected

Definition at line 113 of file SSensor.h.


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