Add a notification manager to the core.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index ffdece8..5a80f31 100644 (file)
@@ -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