Sensor Class Reference
Interface for
Sensor
Used for controlling sensors
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]
|
CloseChannel()
void
|
CloseChannel
|
(
|
)
|
[pure virtual]
|
OpenChannel(SensorListener *)
Opens channel to sensor, must be called before starting listening, sets listener
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
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]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.