|
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.service.protocol.AbstractProtocolProviderService
net.java.sip.communicator.impl.protocol.icq.ProtocolProviderServiceIcqImpl
public class ProtocolProviderServiceIcqImpl
An implementation of the protocol provider service over the AIM/ICQ protocol
| Nested Class Summary | |
|---|---|
static class |
ProtocolProviderServiceIcqImpl.AimConversationListener
|
static class |
ProtocolProviderServiceIcqImpl.AimIcbmListener
Message listener. |
static class |
ProtocolProviderServiceIcqImpl.ConnectionClosedListener
Fix for late close connection due to multiple logins. |
| Field Summary | |
|---|---|
(package private) boolean |
USING_ICQ
Property whether we are using AIM or ICQ service |
| Fields inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService |
|---|
BIND_RETRIES_DEFAULT_VALUE, BIND_RETRIES_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
ProtocolProviderServiceIcqImpl()
|
|
| Method Summary | |
|---|---|
void |
fireRegistrationStateChanged(RegistrationState oldState,
RegistrationState newState,
int reasonCode,
String reason)
Creates a RegistrationStateChange event corresponding to the specified old and new states and notifies all currently registered listeners. |
AccountID |
getAccountID()
Returns the AccountID that uniquely identifies the account represented by this instance of the ProtocolProviderService. |
protected net.kano.joustsim.oscar.AimConnection |
getAimConnection()
Returns the AimConnectionopened by this provider |
protected net.kano.joustsim.oscar.AimSession |
getAimSession()
Returns the AimSession opened by this provider. |
protected InfoRetreiver |
getInfoRetreiver()
Returns the info retriever that we've initialized for the current session. |
String |
getProtocolDisplayName()
Returns the protocol display name. |
ProtocolIcon |
getProtocolIcon()
Returns the icq/aim protocol icon. |
String |
getProtocolName()
Returns the short name of the protocol that the implementation of this provider is based upon (like SIP, Jabber, ICQ/AIM, or others for example). |
RegistrationState |
getRegistrationState()
Returns the state of the registration of this protocol provider |
TransportProtocol |
getTransportProtocol()
Returns the "transport" protocol of this instance used to carry the control channel for the current protocol service. |
protected void |
initialize(String screenname,
AccountID accountID)
Initialized the service implementation, and puts it in a sate where it could interoperate with other services. |
boolean |
isInitialized()
Returns true if the provider service implementation is initialized and ready for use by other services, and false otherwise. |
boolean |
isSignalingTransportSecure()
Indicate if the signaling transport of this protocol instance uses a secure (e.g. |
(package private) void |
reconnect(int reasonCode)
Reconnects if fails fire connection failed. |
void |
register(SecurityAuthority authority)
Starts the registration process. |
void |
shutdown()
Makes the service implementation close all open sockets and release any resources that it might have taken and prepare for shutdown/garbage collection. |
void |
unregister()
Ends the registration of this protocol provider with the service. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractProtocolProviderService |
|---|
addRegistrationStateChangeListener, addSupportedOperationSet, clearRegistrationStateChangeListener, getOperationSet, getSupportedOperationSets, isRegistered, removeRegistrationStateChangeListener, removeSupportedOperationSet, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService |
|---|
hashCode |
| Field Detail |
|---|
boolean USING_ICQ
| Constructor Detail |
|---|
public ProtocolProviderServiceIcqImpl()
| Method Detail |
|---|
public RegistrationState getRegistrationState()
public void register(SecurityAuthority authority)
throws OperationFailedException
authority - the security authority that will be used for resolving
any security challenges that may be returned during the
registration or at any moment while wer're registered.
OperationFailedException - with the corresponding code it the
registration fails for some reason (e.g. a networking error or an
implementation problem).void reconnect(int reasonCode)
reasonCode - the appropriate SecurityAuthority reasonCode,
which would specify the reason for which we're re-calling the login.public void unregister()
public boolean isSignalingTransportSecure()
ProtocolProviderService
public TransportProtocol getTransportProtocol()
public String getProtocolName()
public String getProtocolDisplayName()
getProtocolDisplayName in interface ProtocolProviderServicegetProtocolDisplayName in class AbstractProtocolProviderService
protected void initialize(String screenname,
AccountID accountID)
screenname - the account id/uin/screenname of the account that
we're about to createaccountID - the identifier of the account that this protocol
provider represents.AccountIDpublic void shutdown()
public boolean isInitialized()
public AccountID getAccountID()
public void fireRegistrationStateChanged(RegistrationState oldState,
RegistrationState newState,
int reasonCode,
String reason)
fireRegistrationStateChanged in class AbstractProtocolProviderServiceoldState - the state that the provider had before the change
occurrednewState - the state that the provider is currently in.reasonCode - a value corresponding to one of the REASON_XXX fields
of the RegistrationStateChangeEvent class, indicating the reason for
this state transition.reason - a String further explaining the reason code or null if
no such explanation is necessary.protected InfoRetreiver getInfoRetreiver()
protected net.kano.joustsim.oscar.AimSession getAimSession()
protected net.kano.joustsim.oscar.AimConnection getAimConnection()
public ProtocolIcon getProtocolIcon()
|
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 | |||||||||