public class OtrMetaContactButton extends AbstractPluginComponent implements ScOtrEngineListener, ScOtrKeyManagerListener
AbstractPluginComponent
that registers the Off-the-Record button in
the main chat toolbar.Constructor and Description |
---|
OtrMetaContactButton(Container container,
PluginComponentFactory parentFactory) |
Modifier and Type | Method and Description |
---|---|
void |
contactPolicyChanged(Contact contact) |
void |
contactVerificationStatusChanged(OtrContactManager.OtrContact otrContact) |
java.lang.Object |
getComponent()
Returns the component that should be added.
|
java.lang.String |
getName()
Returns the name of this plugin component.
|
void |
globalPolicyChanged() |
void |
multipleInstancesDetected(OtrContactManager.OtrContact contact) |
void |
outgoingSessionChanged(OtrContactManager.OtrContact otrContact) |
void |
sessionStatusChanged(OtrContactManager.OtrContact otrContact) |
void |
setCurrentContact(Contact contact)
Sets the current contact.
|
void |
setCurrentContact(Contact contact,
java.lang.String resourceName)
Sets the current contact.
|
void |
setCurrentContact(MetaContact metaContact)
Sets the current meta contact.
|
getConstraints, getContainer, getParentFactory, getPositionIndex, isNativeComponent, setCurrentAccountID, setCurrentContactGroup
public OtrMetaContactButton(Container container, PluginComponentFactory parentFactory)
public void sessionStatusChanged(OtrContactManager.OtrContact otrContact)
sessionStatusChanged
in interface ScOtrEngineListener
public void contactPolicyChanged(Contact contact)
contactPolicyChanged
in interface ScOtrEngineListener
public void globalPolicyChanged()
globalPolicyChanged
in interface ScOtrEngineListener
public void contactVerificationStatusChanged(OtrContactManager.OtrContact otrContact)
contactVerificationStatusChanged
in interface ScOtrKeyManagerListener
public java.lang.Object getComponent()
PluginComponent
getComponent
in interface PluginComponent
public java.lang.String getName()
PluginComponent
getName
in interface PluginComponent
public void setCurrentContact(Contact contact)
PluginComponent
setCurrentContact
in interface PluginComponent
setCurrentContact
in class AbstractPluginComponent
contact
- the current contactpublic void setCurrentContact(Contact contact, java.lang.String resourceName)
PluginComponent
setCurrentContact
in interface PluginComponent
setCurrentContact
in class AbstractPluginComponent
contact
- the current contactresourceName
- the ContactResource name. Some components
may be interested in a particular ContactResource of a contact.public void setCurrentContact(MetaContact metaContact)
PluginComponent
setCurrentContact
in interface PluginComponent
setCurrentContact
in class AbstractPluginComponent
metaContact
- the current meta contactpublic void multipleInstancesDetected(OtrContactManager.OtrContact contact)
multipleInstancesDetected
in interface ScOtrEngineListener
public void outgoingSessionChanged(OtrContactManager.OtrContact otrContact)
outgoingSessionChanged
in interface ScOtrEngineListener
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.