From 0830c827254de6cd862619f3ddf8c42bad145f19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Nov 2010 20:44:05 +0100 Subject: [PATCH] Add method that signals when a Sone is marked as known. --- src/main/java/net/pterodactylus/sone/core/CoreListener.java | 8 ++++++++ .../net/pterodactylus/sone/core/CoreListenerManager.java | 13 +++++++++++++ src/main/java/net/pterodactylus/sone/web/WebInterface.java | 11 +++++++++++ 3 files changed, 32 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListener.java b/src/main/java/net/pterodactylus/sone/core/CoreListener.java index 2547e63..f8278ed 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListener.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListener.java @@ -55,4 +55,12 @@ public interface CoreListener extends EventListener { */ public void newReplyFound(Reply reply); + /** + * Notifies a listener that the given Sone is now marked as known. + * + * @param sone + * The known Sone + */ + public void markSoneKnown(Sone sone); + } diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java index 84dc5f0..f226723 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java @@ -82,4 +82,17 @@ public class CoreListenerManager extends AbstractListenerManager