aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/util
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2013-01-23 17:41:08 +0000
committerDamian Minkov <damencho@jitsi.org>2013-01-23 17:41:08 +0000
commit23009ed6e74905b376aad036d654f3a1d30ebf81 (patch)
tree942cde4630c24ec596ef36132b3bd917957aad72 /src/net/java/sip/communicator/util
parent8672123c4f526e239dd3c38b395922155515d934 (diff)
downloadjitsi-23009ed6e74905b376aad036d654f3a1d30ebf81.zip
jitsi-23009ed6e74905b376aad036d654f3a1d30ebf81.tar.gz
jitsi-23009ed6e74905b376aad036d654f3a1d30ebf81.tar.bz2
Adds visualisation of the currently selected status message, and saves custom status messages for later reuse.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r--src/net/java/sip/communicator/util/ConfigurationUtils.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java
index 2089eed..632e6b2 100644
--- a/src/net/java/sip/communicator/util/ConfigurationUtils.java
+++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java
@@ -176,6 +176,11 @@ public class ConfigurationUtils
private static boolean isRemoveContactDisabled;
/**
+ * Indicates if the pre set status messages are enabled.
+ */
+ private static boolean isPresetStatusMessagesEnabled;
+
+ /**
* The last directory used in file transfer.
*/
private static String sendFileLastDir;
@@ -627,6 +632,13 @@ public class ConfigurationUtils
"CONTACT_REMOVE_DISABLED",
false);
+ // Load the "PRESET_STATUS_MESSAGES" property.
+ isPresetStatusMessagesEnabled
+ = configService.getBoolean(
+ "net.java.sip.communicator.impl.gui.main.presence." +
+ "PRESET_STATUS_MESSAGES",
+ true);
+
// Load the "net.java.sip.communicator.impl.gui.main.account
// .ADVANCED_CONFIG_DISABLED" property.
String advancedConfigDisabledDefaultProp
@@ -1136,6 +1148,17 @@ public class ConfigurationUtils
}
/**
+ * Returns <code>true</code> if the "PRESET_STATUS_MESSAGES" property is
+ * true, otherwise - returns <code>false</code>.
+ * @return <code>true</code> if the "PRESET_STATUS_MESSAGES" property is
+ * true, otherwise - returns <code>false</code>.
+ */
+ public static boolean isPresetStatusMessagesEnabled()
+ {
+ return isPresetStatusMessagesEnabled;
+ }
+
+ /**
* Returns <code>true</code> if the "ADVANCED_CONFIG_DISABLED" property is
* true, otherwise - returns <code>false</code>..
* @return <code>true</code> if the "ADVANCED_CONFIG_DISABLED" property is