From f30e07f1da82ff7f89bed87263a276505c37d518 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 6 Dec 2010 06:44:07 +0100 Subject: [PATCH] Add methods to notify core listeners about removed posts and replies. --- .../net/pterodactylus/sone/core/CoreListener.java | 16 +++++++++++++ .../sone/core/CoreListenerManager.java | 26 ++++++++++++++++++++++ .../net/pterodactylus/sone/web/WebInterface.java | 16 +++++++++++++ 3 files changed, 58 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListener.java b/src/main/java/net/pterodactylus/sone/core/CoreListener.java index 595d11a..950e890 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListener.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListener.java @@ -95,4 +95,20 @@ public interface CoreListener extends EventListener { */ public void markReplyKnown(Reply reply); + /** + * Notifies a listener that the given post was removed. + * + * @param post + * The removed post + */ + public void postRemoved(Post post); + + /** + * Notifies a listener that the given reply was removed. + * + * @param reply + * The removed reply + */ + public void replyRemoved(Reply reply); + } diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java index 0fd8b1a..7ba226b 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java @@ -145,4 +145,30 @@ public class CoreListenerManager extends AbstractListenerManager