|
Nokia N97 SDK Example Applications Guide |
1. About this Example
2. Architecture
3. Design and Implementation
Behavior of sensor channels in emulator environment is configured to SsyReferenceConfig.xml file.
1. The framework completes the construction of the AppUI object by calling its ConstructL method (CSensorExampleAppUi::ConstructL).
2. AppUI object tries to open three sensor channels (accelerometer, double tapping and orientation). Channels are opened by
calling three times CSensorExampleAppUi::OpenChannelL method.
3. A channel finder object is created.
4. A channel is searched by calling FindChannelsL method with a channel type id as a parameter.
5. If a searched channel is found a sensor channel object is created.
6. A Found channel is opened.
7. Channel data listening is started.
1. The sensor channel calls DataReceived call-back method when new data is available.
2. Data listener object reads new data with GetData method.
3. Received data is passed to AppView object.
4. AppView object draws screen showing the current sensor data. A smiley is drawn to the screen as shown in screenshot below.
Sensor data affects to smiley in three different ways:
1. Whenever the user selects a menu option, CSensorExampleAppUi::HandleCommandL is called by the framework. Available property related commands are shown in figure below.
|
© Nokia 2009 |