|
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.plugin.otr.ScOtrEngineImpl
public class ScOtrEngineImpl
| Nested Class Summary | |
|---|---|
(package private) class |
ScOtrEngineImpl.ScOtrEngineHost
|
| Constructor Summary | |
|---|---|
ScOtrEngineImpl()
|
|
| Method Summary | |
|---|---|
void |
addListener(ScOtrEngineListener l)
Registers an ScOtrEngineListener. |
void |
chatLinkClicked(URI url)
Callback that is executed when a link was clicked. |
void |
endSession(Contact contact)
Ends the Off-the-Record session for the given Contact, if it is
not already started. |
static Contact |
getContact(net.java.otr4j.session.SessionID sessionID)
|
net.java.otr4j.OtrPolicy |
getContactPolicy(Contact contact)
Gets a Contact specific policy. |
net.java.otr4j.OtrPolicy |
getGlobalPolicy()
Gets the global OtrPolicy. |
static net.java.otr4j.session.SessionID |
getSessionID(Contact contact)
|
net.java.otr4j.session.SessionStatus |
getSessionStatus(Contact contact)
Gets the SessionStatus for the given Contact. |
boolean |
isMessageUIDInjected(String mUID)
Gets weather the passed in messageUID is injected by the engine or not. |
void |
launchHelp()
Launches the help page. |
void |
refreshSession(Contact contact)
Refreshes the Off-the-Record session for the given Contact. |
void |
removeListener(ScOtrEngineListener l)
Unregisters an ScOtrEngineListener. |
void |
setContactPolicy(Contact contact,
net.java.otr4j.OtrPolicy policy)
Sets the contact specific policy |
void |
setGlobalPolicy(net.java.otr4j.OtrPolicy policy)
Sets the global policy. |
void |
showError(net.java.otr4j.session.SessionID sessionID,
String err)
|
void |
startSession(Contact contact)
Starts the Off-the-Record session for the given Contact, if it's
not already started. |
String |
transformReceiving(Contact contact,
String msgText)
Transforms an incoming message. |
String |
transformSending(Contact contact,
String msgText)
Transforms an outgoing message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScOtrEngineImpl()
| Method Detail |
|---|
public void addListener(ScOtrEngineListener l)
ScOtrEngineScOtrEngineListener.
addListener in interface ScOtrEnginel - the ScOtrEngineListener to register.public void removeListener(ScOtrEngineListener l)
ScOtrEngineScOtrEngineListener.
removeListener in interface ScOtrEnginel - the ScOtrEngineListener to unregister.public boolean isMessageUIDInjected(String mUID)
ScOtrEngine
isMessageUIDInjected in interface ScOtrEnginemUID - the messageUID which is to be determined whether it is
injected by the engine or not
public void showError(net.java.otr4j.session.SessionID sessionID,
String err)
public static net.java.otr4j.session.SessionID getSessionID(Contact contact)
public static Contact getContact(net.java.otr4j.session.SessionID sessionID)
public void endSession(Contact contact)
ScOtrEngineContact, if it is
not already started.
endSession in interface ScOtrEnginecontact - the Contact with whom we want to end the OTR
session.public net.java.otr4j.session.SessionStatus getSessionStatus(Contact contact)
ScOtrEngineSessionStatus for the given Contact.
getSessionStatus in interface ScOtrEnginecontact - the Contact whose SessionStatus we are
interested in.
SessionStatus.
public String transformReceiving(Contact contact,
String msgText)
ScOtrEngine
transformReceiving in interface ScOtrEnginecontact - the source Contact.msgText - the original message content.
public String transformSending(Contact contact,
String msgText)
ScOtrEngine
transformSending in interface ScOtrEnginecontact - the destination Contact.msgText - the original message content.
public void refreshSession(Contact contact)
ScOtrEngineContact. If
the session does not exist, a new session is established.
refreshSession in interface ScOtrEnginecontact - the Contact with whom we want to refresh the OTR
session.public void startSession(Contact contact)
ScOtrEngineContact, if it's
not already started.
startSession in interface ScOtrEnginecontact - the Contact with whom we want to start an OTR
session.public net.java.otr4j.OtrPolicy getGlobalPolicy()
ScOtrEngineOtrPolicy.
getGlobalPolicy in interface ScOtrEngineOtrPolicypublic void setGlobalPolicy(net.java.otr4j.OtrPolicy policy)
ScOtrEngine
setGlobalPolicy in interface ScOtrEnginepolicy - the global policypublic void launchHelp()
ScOtrEngine
launchHelp in interface ScOtrEnginepublic net.java.otr4j.OtrPolicy getContactPolicy(Contact contact)
ScOtrEngineContact specific policy.
getContactPolicy in interface ScOtrEnginecontact - the Contact whose policy we want.
Contact specific OTR policy. If the specified
Contact has no policy, the global policy is returned.
public void setContactPolicy(Contact contact,
net.java.otr4j.OtrPolicy policy)
ScOtrEngine
setContactPolicy in interface ScOtrEnginecontact - the Contact whose policy we want to setpolicy - the OtrPolicypublic void chatLinkClicked(URI url)
ChatLinkClickedListener
chatLinkClicked in interface ChatLinkClickedListenerurl - The URI of the link that was clicked.
|
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 | |||||||||