Sensor Class Reference

class Sensor

Interface for Sensor Used for controlling sensors

N/A
Since
S60 3.2
Public Member Functions
~Sensor ()
int AddCondition (void **, int, double, double, int, int)
int CancelDataListening ()
void CloseChannel ()
int OpenChannel ( SensorListener *)
int RemoveCondition (void *)
int StartConditionListening (int)
int StartDataListening ( SensorData **, int, long, bool, bool, bool)
void StartServer ()
int StopConditionListening ()
void StopServer ()

Constructor & Destructor Documentation

~Sensor()

~Sensor ( ) [inline, virtual]

Destructor, to allow deletion through this interface

Member Functions Documentation

AddCondition(void **, int, double, double, int, int)

int AddCondition ( void ** aHandle,
int aChannelId,
double aLowerLimit,
double aUpperLimit,
int aLowerOp,
int aUpperOp
) [pure virtual]

Adds condition and starts condition listening

Parameters

void ** aHandle pointer to created condition object
int aChannelId channel index
double aLowerLimit limit or lower limit of range
double aUpperLimit upper limit or discarded in case of LimitCondition
int aLowerOp operator type for limit or lower limit in range
int aUpperOp upper limit operator or discarded in case of LimitCondition

CancelDataListening()

int CancelDataListening ( ) [pure virtual]

Cancel listening to data

CloseChannel()

void CloseChannel ( ) [pure virtual]

Closes channel to sensor

OpenChannel(SensorListener *)

int OpenChannel ( SensorListener * aListener ) [pure virtual]

Opens channel to sensor, must be called before starting listening, sets listener

Parameters

SensorListener * aListener

RemoveCondition(void *)

int RemoveCondition ( void * aHandle ) [pure virtual]

Removes condition from native side

Parameters

void * aHandle pointer to condition object to remove

StartConditionListening(int)

int StartConditionListening ( int aListeningType ) [pure virtual]

Starts condition listening

Parameters

int aListeningType

StartDataListening(SensorData **, int, long, bool, bool, bool)

int StartDataListening ( SensorData ** aData,
int aBufferSize,
long aBufferingPeriod,
bool aTimestampsIncluded,
bool aValiditiesIncluded,
bool aIsOneShot
) [pure virtual]

Starts listening the data

Parameters

SensorData ** aData
int aBufferSize number of data values listened
long aBufferingPeriod
bool aTimestampsIncluded if true timestamps should be included in returned Data objects
bool aValiditiesIncluded if true validities should be included in returned Data objects
bool aIsOneShot

StartServer()

void StartServer ( ) [pure virtual]

Starts the server for listening the events, does nothing if not needed

StopConditionListening()

int StopConditionListening ( ) [pure virtual]

Starts condition listening

StopServer()

void StopServer ( ) [pure virtual]

Stops server