Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Getting progress information asynchronously

An application can ask to be informed when a change in the state of a dial-up connection occurs.

The request that the application makes is an asynchronous request, i.e. it is one which completes at some later time.

To do this, an application calls the ProgressNotification() member function of RNif. In practice, the class involved is one derived from RNif.

The function takes a TRequestStatus object, as is usual with asynchronous requests, and a package buffer, a TNifProgressBuf, which packages a TNifProgress object.

When the request completes, the iStage data member of the TNifProgress object contains the information defining the current state of the connection.

An outstanding request for notification can be cancelled using the CancelProgressNotification() member function of RNif.

In practice, an application would package this functionality as an active object.