From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 14:37:55 +0000 (+0100) Subject: Add a notification manager to the core. X-Git-Tag: 0.3-RC1~85 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=abe29a1d19532ea1c13024cf78c5faf388287faf Add a notification manager to the core. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index ffdece8..5a80f31 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -44,6 +44,7 @@ import net.pterodactylus.sone.main.SonePlugin; import net.pterodactylus.util.config.Configuration; import net.pterodactylus.util.config.ConfigurationException; import net.pterodactylus.util.logging.Logging; +import net.pterodactylus.util.notify.NotificationManager; import net.pterodactylus.util.number.Numbers; import freenet.keys.FreenetURI; @@ -89,6 +90,9 @@ public class Core implements IdentityListener { /** Interface to freenet. */ private final FreenetInterface freenetInterface; + /** The notification manager. */ + private final NotificationManager notificationManager = new NotificationManager(); + /** The Sone downloader. */ private final SoneDownloader soneDownloader; @@ -174,6 +178,15 @@ public class Core implements IdentityListener { } /** + * Returns the notification manager. + * + * @return The notification manager + */ + public NotificationManager getNotifications() { + return notificationManager; + } + + /** * Returns the status of the given Sone. * * @param sone