API published in: S60 3rd Ed
Required Capabilities
NetworkServices ReadUserData
Exceptions
None
#include <imconnection.h>
The following order of calling the methods is one possibility to use this class: 1. NewL() - instantiate the object 2. RegisterObserverL() - register the observer methods 3. LoginL() - connect to the protocol stack and login to remote IM server 4. CreateImClientL() - get the IM interface
All the error codes are returned using the leave mechanism.
Public Member Functions |
|
virtual | ~CImConnection () |
virtual MImClient * | CreateImClientL ()=0 |
Creates the IM interface to sending and receiving IMs. |
|
virtual void | RegisterObserverL (MImConnectionObserver *aObserver)=0 |
Method for registering the IM Connection observer to the API. |
|
virtual void | UnregisterObserver ()=0 |
Method for unregistering the IM Connection observer. |
|
virtual TImConnectionStatus | ImConnectionStatus ()=0 |
Method for getting the connection status. |
|
virtual void | LoginL (const TDesC &aServer, const TDesC &aUserID, const TDesC &aPassword, const TUint32 aAP)=0 |
Connects the application to the protocol stack and logs in to the remote SAP server using the given login info. |
|
virtual void | CancelLoginL ()=0 |
Cancels the ongoing login operation. |
|
virtual void | LogoutL ()=0 |
Logs out from current session. |
|
Static Public Member Functions |
|
static CImConnection * | NewL (const TDesC &aApplicationId) |
Factory method for creating the class instance. |
|
Protected Member Functions |
|
CImConnection () |
|
|
|
Cancels the ongoing login operation. This method is asynchronous and the completion is signaled by HandleCancelLoginL() observer method.
|
|
Creates the IM interface to sending and receiving IMs.
|
|
Method for getting the connection status. This method is synchronous.
|
|
Connects the application to the protocol stack and logs in to the remote SAP server using the given login info. This method is asynchronous and the completion is signaled by HandleLoginL() observer method.
|
|
Logs out from current session. This method is asynchronous and the completion is signaled by HandleLogoutL() observer method. Possible leave reasons:
|
|
Factory method for creating the class instance.
|
|
Method for registering the IM Connection observer to the API. This method is synchronous.
|
|
Method for unregistering the IM Connection observer. This method is synchronous. |