From abe29a1d19532ea1c13024cf78c5faf388287faf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Nov 2010 15:37:55 +0100 Subject: [PATCH] Add a notification manager to the core. --- src/main/java/net/pterodactylus/sone/core/Core.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.7.4