|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.login.LoginManager
public class LoginManager
The LoginManager manages the login operation. Here we obtain the ProtocolProviderFactory, we make the account installation and we handle all events related to the registration state.
The LoginManager is the one that opens one or more LoginWindows for each ProtocolProviderFactory. The LoginWindow is where user could enter an identifier and password.
Note that the behavior of this class will be changed when the Configuration Service is ready.
| Constructor Summary | |
|---|---|
LoginManager(MainFrame mainFrame)
Creates an instance of the LoginManager, by specifying the main application window. |
|
| Method Summary | |
|---|---|
void |
handleAccountManagerEvent(AccountManagerEvent event)
Notifies that the loading of the stored accounts of a specific ProtocolProviderFactory has finished. |
boolean |
isManuallyDisconnected()
|
void |
login(ProtocolProviderService protocolProvider)
Registers the given protocol provider. |
void |
logoff(ProtocolProviderService protocolProvider)
Unregisters the given protocol provider. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProvider implementation whenever a change in the registration state of the corresponding provider had occurred. |
void |
runLogin(MainFrame parent)
Shows login window for each registered account. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Implements the ServiceListener method. |
void |
setManuallyDisconnected(boolean manuallyDisconnected)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoginManager(MainFrame mainFrame)
mainFrame - the main application window| Method Detail |
|---|
public void login(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to register.public void logoff(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to unregisterpublic void runLogin(MainFrame parent)
parent - The parent MainFrame window.public void handleAccountManagerEvent(AccountManagerEvent event)
ProtocolProviderFactory has finished.
handleAccountManagerEvent in interface AccountManagerListenerevent - the AccountManagerEvent describing the
AccountManager firing the notification and the
other details of the specific notification.public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - ProviderStatusChangeEvent the event describing the status
change.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - The ServiceEvent object.public boolean isManuallyDisconnected()
public void setManuallyDisconnected(boolean manuallyDisconnected)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||