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 () |