X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityListener.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityListener.java;h=0000000000000000000000000000000000000000;hp=51e143706c386da04f91c67804ee9c1c534e8fcb;hb=8c1a4ad1d3f11ba0a11a077c47df48425360e0ac;hpb=e3d95929c7ef6c53bf09d9b0ba06e9eb9ce1ffe1 diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityListener.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityListener.java deleted file mode 100644 index 51e1437..0000000 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityListener.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sone - IdentityListener.java - Copyright © 2010–2012 David Roden - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package net.pterodactylus.sone.freenet.wot; - -import java.util.EventListener; - -/** - * Listener interface for {@link IdentityManager} events. - * - * @author David ‘Bombe’ Roden - */ -public interface IdentityListener extends EventListener { - - /** - * Notifies a listener that an {@link OwnIdentity} that was not known on the - * previous check is available. - * - * @param ownIdentity - * The new own identity - */ - public void ownIdentityAdded(OwnIdentity ownIdentity); - - /** - * Notifies a listener that an {@link OwnIdentity} that was available during - * the last check has gone away. - * - * @param ownIdentity - * The disappeared own identity - */ - public void ownIdentityRemoved(OwnIdentity ownIdentity); - - /** - * Notifies a listener that a new identity was discovered. - * - * @param ownIdentity - * The own identity at the root of the trust tree - * @param identity - * The new identity - */ - public void identityAdded(OwnIdentity ownIdentity, Identity identity); - - /** - * Notifies a listener that some properties of the identity have changed. - * - * @param ownIdentity - * The own identity at the root of the trust tree - * @param identity - * The updated identity - */ - public void identityUpdated(OwnIdentity ownIdentity, Identity identity); - - /** - * Notifies a listener that an identity has gone away. - * - * @param ownIdentity - * The own identity at the root of the trust tree - * @param identity - * The disappeared identity - */ - public void identityRemoved(OwnIdentity ownIdentity, Identity identity); - -}