X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=5a80f3154529682e65e85a9e96852ba9461af59b;hb=abe29a1d19532ea1c13024cf78c5faf388287faf;hp=ffdece842ef01b4ca8dc99473f8b14359388a1ce;hpb=34b5be53fce756501b91c4e68658e60bab2e3b73;p=Sone.git 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