src/net/java/otr4j/OtrEngineHost.java
changeset 810 0ff0059f2ec3
child 815 ca323cff3ac9
equal deleted inserted replaced
797:fbd3585af53e 810:0ff0059f2ec3
       
     1 /*
       
     2  * otr4j, the open source java otr library.
       
     3  *
       
     4  * Distributable under LGPL license.
       
     5  * See terms of license at gnu.org.
       
     6  */
       
     7 package net.java.otr4j;
       
     8 
       
     9 import java.security.KeyPair;
       
    10 
       
    11 import net.java.otr4j.session.SessionID;
       
    12 
       
    13 /**
       
    14  * 
       
    15  * This interface should be implemented by the host application. It is required
       
    16  * for otr4j to work properly.
       
    17  * 
       
    18  * @author George Politis
       
    19  * 
       
    20  */
       
    21 public abstract interface OtrEngineHost {
       
    22 	public abstract void injectMessage(SessionID sessionID, String msg);
       
    23 
       
    24 	public abstract void showWarning(SessionID sessionID, String warning);
       
    25 
       
    26 	public abstract void showError(SessionID sessionID, String error);
       
    27 
       
    28 	public abstract OtrPolicy getSessionPolicy(SessionID sessionID);
       
    29 	
       
    30 	public abstract KeyPair getKeyPair(SessionID sessionID);
       
    31 }