src/net/java/otr4j/OtrEngineHost.java
author Da Risk <da_risk@beem-project.com>
Wed, 31 Oct 2012 23:11:14 +0100
changeset 1005 4c7edc276676
parent 911 ca323cff3ac9
permissions -rw-r--r--
Switch to Florian Shmauss maintained version of asmack. See doc/asmack-beem/README.txt for more information on how to build the asmack jar. The upstream asmack has a better implementation of XEP-0115 EntityCapabilities. So this commit remove the specific Beem implementation of this XEP and switch to the asmack one.

/*
 * otr4j, the open source java otr library.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.otr4j;

import java.security.KeyPair;

import net.java.otr4j.session.SessionID;

/**
 * 
 * This interface should be implemented by the host application. It is required
 * for otr4j to work properly.
 * 
 * @author George Politis
 * 
 */
public abstract interface OtrEngineHost {
	public abstract void injectMessage(SessionID sessionID, String msg);

	public abstract void showWarning(SessionID sessionID, String warning);

	public abstract void showError(SessionID sessionID, String error);

	public abstract OtrPolicy getSessionPolicy(SessionID sessionID);

	public abstract KeyPair getKeyPair(SessionID sessionID);
}