The example demonstrates how to connect to a site and obtain weather information
It is a GUI based application, wherein CSimpleExAppUi forms the UI class and CWeatherInfo class provides necessary weather information.
The CWeatherInfo class is an active object which is designed to collect weather info from network.
The sequence of events to collect the temparature is started by
the GetTemperature() method, by starting a network connection using RSocketServ
and RConnection
objects
and then issueing the host resolve. When that is complete RunL()
is invoked and the next network call in the sequence is called until
temperature is retrieved.
Click on the following link to download the example: S60_weather.zip
Click browse to view the example code.
Rsocket, RSocketServ
, Rconnection, TNameEntry,
RHostResolver
Commands are given to the example through its menu option.