Connection Monitor Server API: API description

The Connection Monitor Server API is a server-client API, that is, an active object-based implementation encapsulating a client-server session interface. The API is defined in rconnmon.h and the library is connmon.lib.

Use cases

The main use cases of Connection Monitor Server API are:

  1. Connecting and disconnecting.

  2. Getting basic connection level information.

  3. Cancelling a request.

  4. Stopping a connection.

  5. Registering for events.

  6. Catching events.

  7. Using TInt attributes.

  8. Using TUint attributes.

  9. Using TBool attributes.

  10. Using string attributes.

  11. Using packaged attributes.

API class structure

The following diagram shows the Connection Monitor Server interface class structure.

Figure 1: Interface classes

Clients can access Connection Monitor Server by creating an object from the RConnectionMonitor class. This class is derived from RSessionBase and it provides methods for retrieving and setting attribute values from/to Connection Monitor Server.

In order to get notifications from Connection Monitor Server, an application needs to implement the MConnectionMonitorObserver class and its pure virtual EventL method. The Connection Monitor Server API calls this method when an event occurs. Different events are implemented as classes and all of them have a common base class.


Copyright © Nokia Corporation 2001-2008
Back to top