public class OtrWeakListener<T extends ScOtrEngineListener & ScOtrKeyManagerListener> extends java.lang.Object implements ScOtrEngineListener, ScOtrKeyManagerListener
Constructor and Description |
---|
OtrWeakListener(T listener,
ScOtrEngine engine,
ScOtrKeyManager keyManager)
Initializes a new OtrWeakListener instance which is to allow
a specific T to listener to a specific
ScOtrEngine and a specific ScOtrKeyManager without
being retained by them forever (because they live forever).
|
Modifier and Type | Method and Description |
---|---|
void |
contactPolicyChanged(Contact contact)
Forwards the event/notification to the associated
T if it is still needed by the application.
|
void |
contactVerificationStatusChanged(OtrContactManager.OtrContact contact)
Forwards the event/notification to the associated
T if it is still needed by the application.
|
void |
globalPolicyChanged()
Forwards the event/notification to the associated
T if it is still needed by the application.
|
void |
multipleInstancesDetected(OtrContactManager.OtrContact contact)
Forwards the event/notification to the associated
T if it is still needed by the application.
|
void |
outgoingSessionChanged(OtrContactManager.OtrContact contact)
Forwards the event/notification to the associated
T if it is still needed by the application.
|
void |
sessionStatusChanged(OtrContactManager.OtrContact contact)
Forwards the event/notification to the associated
T if it is still needed by the application.
|
public OtrWeakListener(T listener, ScOtrEngine engine, ScOtrKeyManager keyManager)
listener
- the T which is to listen to the
specified engine and keyManagerengine
- the ScOtrEngine which is to be listened to by
the specified TkeyManager
- the ScOtrKeyManager which is to be
listened to by the specified Tpublic void contactPolicyChanged(Contact contact)
contactPolicyChanged
in interface ScOtrEngineListener
public void contactVerificationStatusChanged(OtrContactManager.OtrContact contact)
contactVerificationStatusChanged
in interface ScOtrKeyManagerListener
public void globalPolicyChanged()
globalPolicyChanged
in interface ScOtrEngineListener
public void sessionStatusChanged(OtrContactManager.OtrContact contact)
sessionStatusChanged
in interface ScOtrEngineListener
public void multipleInstancesDetected(OtrContactManager.OtrContact contact)
multipleInstancesDetected
in interface ScOtrEngineListener
public void outgoingSessionChanged(OtrContactManager.OtrContact contact)
outgoingSessionChanged
in interface ScOtrEngineListener
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.