diff options
author | Vincent Lucas <chenzo@jitsi.org> | 2013-01-04 14:59:47 +0000 |
---|---|---|
committer | Vincent Lucas <chenzo@jitsi.org> | 2013-01-04 14:59:47 +0000 |
commit | e1b4deac8001f5fb07cc73857e5e7bccbe74eb7f (patch) | |
tree | 6f595a187ce4a0f303c61dca60f20a17ea0177be /src/net/java/sip/communicator/impl/notification/NotificationActivator.java | |
parent | 0bea2e337d5e11683584936aaf6d034380139e90 (diff) | |
download | jitsi-e1b4deac8001f5fb07cc73857e5e7bccbe74eb7f.zip jitsi-e1b4deac8001f5fb07cc73857e5e7bccbe74eb7f.tar.gz jitsi-e1b4deac8001f5fb07cc73857e5e7bccbe74eb7f.tar.bz2 |
Re-enables sound notification during on-going call by default. This behavior can be overridden by the net.java.sip.communicator.impl.notification.disableNotificationDuringCall property.
Diffstat (limited to 'src/net/java/sip/communicator/impl/notification/NotificationActivator.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/notification/NotificationActivator.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java index 7cd65c3..178758e 100644 --- a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java +++ b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java @@ -12,6 +12,7 @@ import net.java.sip.communicator.service.systray.*; import net.java.sip.communicator.util.*; import org.jitsi.service.audionotifier.*; +import org.jitsi.service.configuration.*; import org.osgi.framework.*; /** @@ -42,6 +43,13 @@ public class NotificationActivator private PopupMessageNotificationHandler popupMessageHandler; private SoundNotificationHandler soundHandler; + /** + * The <tt>ConfigurationService</tt> registered in {@link #bundleContext} + * and used by the <tt>NotificationActivator</tt> instance to read and write + * configuration properties. + */ + private static ConfigurationService configurationService; + public void start(BundleContext bc) throws Exception { bundleContext = bc; @@ -145,4 +153,23 @@ public class NotificationActivator uiService = ServiceUtils.getService(bundleContext, UIService.class); return uiService; } + + /** + * Returns a reference to a ConfigurationService implementation currently + * registered in the bundle context or null if no such implementation was + * found. + * + * @return a currently valid implementation of the ConfigurationService. + */ + public static ConfigurationService getConfigurationService() + { + if (configurationService == null) + { + configurationService + = ServiceUtils.getService( + bundleContext, + ConfigurationService.class); + } + return configurationService; + } } |