X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fcore%2FCoreListener.java;h=cef057a7f86d987042f20543b4ae26294703c346;hb=7ccb1fcb746198ee1417bb2f92c846132bf6bc96;hp=b4a25746ea058c5e5f004e54bc5ac3335dca647c;hpb=f7bfc2672693384db5c7a9ee252f6a548e513489;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/core/CoreListener.java b/src/net/pterodactylus/jsite/core/CoreListener.java index b4a2574..cef057a 100644 --- a/src/net/pterodactylus/jsite/core/CoreListener.java +++ b/src/net/pterodactylus/jsite/core/CoreListener.java @@ -21,7 +21,7 @@ package net.pterodactylus.jsite.core; /** * Interface definition for user interfaces. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> * @version $Id$ */ @@ -33,7 +33,7 @@ public interface CoreListener { /** * Notifies a listener that loading the projects finished successfully. - * + * * @param directory * The directory the nodes were loaded from */ @@ -41,7 +41,7 @@ public interface CoreListener { /** * Notifies all listeners that loading the projects has failed. - * + * * @param directory * The directory the projects were tried to load from * @param throwable @@ -52,7 +52,7 @@ public interface CoreListener { /** * Notifies a listener that the projects were successfully saved to the * given directory. - * + * * @param directory * The directory the projects were saved to */ @@ -60,7 +60,7 @@ public interface CoreListener { /** * Notifies a listener that saving the projects has failed. - * + * * @param directory * The directory the projects were to be saved to * @param throwable @@ -74,7 +74,7 @@ public interface CoreListener { /** * Notifies a listener that the nodes were successfully loaded. - * + * * @param directory * The directory the nodes were loaded from */ @@ -82,7 +82,7 @@ public interface CoreListener { /** * Notifies a listener that loading the nodes has failed. - * + * * @param directory * The directory the nodes were loaded from * @param throwable @@ -92,7 +92,7 @@ public interface CoreListener { /** * Notifies a listener that the nodes were successfully saved. - * + * * @param directory * The directory the nodes were saved to */ @@ -100,7 +100,7 @@ public interface CoreListener { /** * Notifies a listener that saving the nodes has failed. - * + * * @param directory * The directory the nodes were saved to * @param throwable @@ -129,7 +129,7 @@ public interface CoreListener { /** * Notifies all listeners that the core started connecting to the given * node. - * + * * @param node * The node that is being connected */ @@ -137,7 +137,7 @@ public interface CoreListener { /** * Notifies all listeners that the core connected to the given node. - * + * * @param node * The node that is connected */ @@ -145,7 +145,7 @@ public interface CoreListener { /** * Notifies all listeners that the core disconnected from the given node. - * + * * @param node * The node that was diconnected * @param throwable @@ -154,4 +154,18 @@ public interface CoreListener { */ public void nodeDisconnected(Node node, Throwable throwable); + // + // request stuff + // + + /** + * Notifies a listener that a request was added to a node. + * + * @param node + * The node the request was added to + * @param request + * The request that was added + */ + public void requestAdded(Node node, Request request); + }