|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
*/
|
|
|
|
|
package net.java.sip.communicator.impl.notification;
|
|
|
|
|
|
|
|
|
|
import net.java.sip.communicator.service.gui.*;
|
|
|
|
|
import net.java.sip.communicator.service.notification.*;
|
|
|
|
|
import net.java.sip.communicator.service.systray.*;
|
|
|
|
|
import net.java.sip.communicator.util.*;
|
|
|
|
|
@ -31,6 +32,11 @@ public class NotificationActivator
|
|
|
|
|
private static SystrayService systrayService;
|
|
|
|
|
private static NotificationService notificationService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A reference to the <tt>UIService</tt> currently in use in Jitsi.
|
|
|
|
|
*/
|
|
|
|
|
private static UIService uiService = null;
|
|
|
|
|
|
|
|
|
|
private CommandNotificationHandler commandHandler;
|
|
|
|
|
private LogMessageNotificationHandler logMessageHandler;
|
|
|
|
|
private PopupMessageNotificationHandler popupMessageHandler;
|
|
|
|
|
@ -125,4 +131,18 @@ public static SystrayService getSystray()
|
|
|
|
|
|
|
|
|
|
return systrayService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a reference to an UIService implementation currently registered
|
|
|
|
|
* in the bundle context or null if no such implementation was found.
|
|
|
|
|
*
|
|
|
|
|
* @return a reference to an UIService implementation currently registered
|
|
|
|
|
* in the bundle context or null if no such implementation was found.
|
|
|
|
|
*/
|
|
|
|
|
public static UIService getUIService()
|
|
|
|
|
{
|
|
|
|
|
if(uiService == null)
|
|
|
|
|
uiService = ServiceUtils.getService(bundleContext, UIService.class);
|
|
|
|
|
return uiService;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|