|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILoginService
The client should use this interface if it wants to log in to the Gadu-Gadu server.
Created on 2004-11-27
| Method Summary | |
|---|---|
void |
addLoginListener(LoginListener loginListener)
Adds LoginListener instance to the list that
will be notified of login related events. |
LoginContext |
getLoginContext()
|
boolean |
isLoggedIn()
|
void |
login(LoginContext loginContext)
Invocation of this method tries to log in user to currently connected server. |
void |
logout()
Invocation of this method tries to log out user from the currently connected the server. |
void |
logout(java.lang.String description,
java.util.Date returnTime)
Invocation of this method tries to log out user from the currently connected server. |
void |
removeLoginListener(LoginListener loginListener)
Remove LoginListener instance from the list that
will be notified of login related events. |
| Method Detail |
|---|
void login(LoginContext loginContext)
throws GGException
The uin and password that is used in logging in process
is retrieved from the LoginContext instance.
GGException - if an error occurs while logging in.
GGSessionException - if there is an incorrect session state.
void logout()
throws GGException
It sets user's status to inavailable.
GGException - if error occurs while logging out.
GGSessionException - if there is an incorrect session state.
void logout(java.lang.String description,
java.util.Date returnTime)
throws GGException
It sets user's status to inavailable with description. Note that returnTime can be null.
description - the description that will be set.returnTime - the time the user will be back.
GGException - if error occurs while logging out.
GGSessionException - if there is an incorrect session state.
java.lang.NullPointerException - if the description is null.boolean isLoggedIn()
LoginContext getLoginContext()
void addLoginListener(LoginListener loginListener)
LoginListener instance to the list that
will be notified of login related events.
loginListener - the LoginListener instance to be notified.void removeLoginListener(LoginListener loginListener)
LoginListener instance from the list that
will be notified of login related events.
loginListener - the LoginListener instance that will no longer be notified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||