diff options
author | Damian Minkov <damencho@jitsi.org> | 2013-01-30 14:03:34 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2013-01-30 14:03:34 +0000 |
commit | fad7b70203944300bd1ef3cb2011685719760c94 (patch) | |
tree | 23a6e2f0c95e59940fb79cdbf5fa1c7282325946 /src/net/java/sip/communicator/util | |
parent | 1472dc8cc2a5f82e504ba96a5d779abcf94173c1 (diff) | |
download | jitsi-fad7b70203944300bd1ef3cb2011685719760c94.zip jitsi-fad7b70203944300bd1ef3cb2011685719760c94.tar.gz jitsi-fad7b70203944300bd1ef3cb2011685719760c94.tar.bz2 |
Adds option to enable/disable task bar / dock alerts. Alert main window on incoming calls.
Adds recompiled linux binaries for junbound.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r-- | src/net/java/sip/communicator/util/ConfigurationUtils.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java index b8c1a70..67dcfee 100644 --- a/src/net/java/sip/communicator/util/ConfigurationUtils.java +++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java @@ -311,6 +311,17 @@ public class ConfigurationUtils private static boolean acceptPhoneNumberWithAlphaChars; /** + * The name of the single interface property. + */ + public static final String ALERTER_ENABLED_PROP + = "plugin.chatalerter.ENABLED"; + + /** + * Indicates if window (task bar or dock icon) alerter is enabled. + */ + private static boolean alerterEnabled; + + /** * Loads all user interface configurations. */ public static void loadGuiConfigurations() @@ -783,6 +794,9 @@ public class ConfigurationUtils isNormalizePhoneNumber = configService.getBoolean("impl.gui.NORMALIZE_PHONE_NUMBER", true); + alerterEnabled + = configService.getBoolean(ALERTER_ENABLED_PROP, true); + // Load the "ACCEPT_PHONE_NUMBER_WITH_ALPHA_CHARS" property. acceptPhoneNumberWithAlphaChars = configService.getBoolean( @@ -1438,6 +1452,31 @@ public class ConfigurationUtils } /** + * Returns <code>true</code> if window alerter is enabled (tack bar or + * dock icon). + * + * @return <code>true</code> if window alerter is enables, + * <code>false</code> otherwise. + */ + public static boolean isAlerterEnabled() + { + return alerterEnabled; + } + + /** + * Updates the "plugin.chatalerter.ENABLED" property. + * + * @param isEnabled indicates whether to enable or disable alerter. + */ + public static void setAlerterEnabled(boolean isEnabled) + { + alerterEnabled = isEnabled; + + configService.setProperty(ALERTER_ENABLED_PROP, + Boolean.toString(isEnabled)); + } + + /** * Returns <code>true</code> if a string with a alphabetical character migth * be considered as a phone number. <code>false</code> otherwise. * |