/**
* Interface definition for user interfaces.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
* @version $Id$
*/
public interface CoreListener {
+ //
+ // configuration stuff
+ //
+
/**
* Notifies all listeners that loading the projects has failed.
- *
+ *
* @param directory
* The directory the projects were tried to load from
+ * @param throwable
+ * The exception that occured while saving, if any
+ */
+ public void loadingProjectsFailed(String directory, Throwable throwable);
+
+ /**
+ * Notifies a listener that the projects were successfully saved to the
+ * given directory.
+ *
+ * @param directory
+ * The directory the projects were saved to
*/
- public void loadingProjectsFailed(String directory);
+ public void savingProjectsDone(String directory);
+
+ /**
+ * Notifies a listener that saving the projects has failed.
+ *
+ * @param directory
+ * The directory the projects were to be saved to
+ * @param throwable
+ * The exception that occured when saving the projects, if any
+ */
+ public void savingProjectsFailed(String directory, Throwable throwable);
+
+ //
+ // basic core functionality
+ //
/**
* Notifies all listeners that the core has loaded.
public void coreLoaded();
/**
+ * Notifies a listener that the core was stopped.
+ */
+ public void coreStopped();
+
+ //
+ // node stuff
+ //
+
+ /**
* Notifies all listeners that the core started connecting to the given
* node.
- *
+ *
* @param node
* The node that is being connected
*/
/**
* Notifies all listeners that the core connected to the given node.
- *
+ *
* @param node
* The node that is connected
*/
/**
* Notifies all listeners that the core disconnected from the given node.
- *
+ *
* @param node
* The node that was diconnected
*/