public class ConfigurationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALERTER_ENABLED_PROP
The name of the single interface property.
|
static java.lang.String |
CTRL_ENTER_COMMAND
The send message command defined by the Ctrl-Enter key.
|
static java.lang.String |
ENTER_COMMAND
The send message command defined by the Enter key.
|
Constructor and Description |
---|
ConfigurationUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptPhoneNumberWithAlphaChars()
Returns
true if a string with a alphabetical character migth
be considered as a phone number. |
static java.lang.String[] |
getAvailableSslProtocols()
Returns the list of available SSL protocols.
|
static java.awt.Color |
getChatDefaultFontColor()
Returns the default chat font color.
|
static java.lang.String |
getChatDefaultFontFamily()
Returns the default chat font family.
|
static int |
getChatDefaultFontSize()
Returns the default chat font size.
|
static int |
getChatHistorySize()
Returns the number of messages from chat history that would be shown in
the chat window.
|
static java.lang.String |
getChatRoomPrefix(java.lang.String accountID,
java.lang.String chatRoomId)
Returns the chat room prefix saved in ConfigurationService
associated with the accountID and chatRoomID.
|
static java.lang.String |
getChatRoomProperty(ProtocolProviderService protocolProvider,
java.lang.String chatRoomId,
java.lang.String property)
Returns the chat room property, saved through the
ConfigurationService.
|
static java.lang.String |
getChatRoomStatus(ProtocolProviderService protocolProvider,
java.lang.String chatRoomId)
Returns the last chat room status, saved through the
ConfigurationService.
|
static int |
getChatWriteAreaSize()
Returns the preferred height of the chat write area.
|
static int |
getClientPort()
Returns the configured client port.
|
static int |
getClientSecurePort()
Returns the client secure port.
|
static java.util.Locale |
getCurrentLanguage()
Returns the current language configuration.
|
static java.lang.String[] |
getEnabledSslProtocols()
Returns the list of enabled SSL protocols.
|
static java.lang.String |
getFactoryImplPackageName(ProtocolProviderFactory factory)
Returns the package name under which we would store information for the
given factory.
|
static ProtocolProviderService |
getLastCallConferenceProvider()
Returns the call conference provider used for the last conference call.
|
static java.lang.String |
getLastContactParent()
Return the "lastContactParent" property that was saved previously
through the ConfigurationService.
|
static java.lang.String |
getSendFileLastDir()
Returns the last opened directory of the send file file chooser.
|
static java.lang.String |
getSendMessageCommand()
Return the "sendMessageCommand" property that was saved previously
through the ConfigurationService.
|
static int |
getWindowTransparency()
Returns the transparency value for all transparent windows.
|
static boolean |
hasEnabledVideoFormat(ProtocolProviderService protocolProvider)
Returns true if the account associated with
protocolProvider has at least one video format enabled in it's
configuration, false otherwise.
|
static boolean |
isAddContactDisabled()
Returns
true if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false .. |
static boolean |
isAdvancedAccountConfigDisabled()
Returns
true if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false .. |
static boolean |
isAlerterEnabled()
Returns
true if window alerter is enabled (tack bar or
dock icon). |
static boolean |
isApplicationVisible()
Return TRUE if "showApplication" property is true, otherwise - return
FALSE.
|
static boolean |
isAutoAnswerDisableSubmenu()
Whether creation of separate submenu for auto answer is disabled.
|
static boolean |
isAutoPopupNewMessage()
Return TRUE if "autoPopupNewMessage" property is true, otherwise - return
FALSE.
|
static boolean |
isCallPanelShown()
Return TRUE if "showCallPanel" property is true, otherwise - return
FALSE.
|
static boolean |
isChatFontBold()
Returns the default chat font bold.
|
static boolean |
isChatFontItalic()
Returns the default chat font italic.
|
static boolean |
isChatFontUnderline()
Returns the default chat font underline.
|
static boolean |
isChatRoomConfigDisabled()
Indicates if the chat room user configuration functionality is disabled.
|
static boolean |
isChatSimpleThemeEnabled()
Returns
true if the "isChatSimpleTheme" property is
true, otherwise - returns false .. |
static boolean |
isChatStylebarVisible()
Returns
true if the "isChatStylebarVisible" property is
true, otherwise - returns false .. |
static boolean |
isChatToolbarVisible()
Returns
true if the "isChatToolbarVisible" property is
true, otherwise - returns false .. |
static boolean |
isContactListGroupCollapsed(java.lang.String groupID)
Returns true if the group given by groupID is collapsed
or false otherwise.
|
static boolean |
isContactMoveDisabled()
Returns
true if the "CONTACT_MOVE_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isContactRenameDisabled()
Returns
true if the "CONTACT_RENAME_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isCreateGroupDisabled()
Returns
true if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false .. |
static boolean |
isFlattenGroupEnabled()
Returns
true if the "FLATTEN_GROUP_ENABLED" property is
true, otherwise - returns false .. |
static boolean |
isFontSupportEnabled()
Checks whether font support is disabled, checking in default
settings for the default value.
|
static boolean |
isGoToChatroomDisabled()
Returns
true if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns false .. |
static boolean |
isGroupRemoveDisabled()
Returns
true if the "GROUP_REMOVE_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isGroupRenameDisabled()
Returns
true if the "GROUP_RENAME_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isHideAccountSelectionWhenPossibleEnabled()
Whether allow user to select account when only a single
account is available.
|
static boolean |
isHideAccountStatusSelectorsEnabled()
Whether to hide account statuses from global menu.
|
static boolean |
isHideAddressInCallHistoryTooltipEnabled()
Whether addresses will be shown in call history tooltips.
|
static boolean |
isHideDomainInReceivedCallDialogEnabled()
Whether domain will be shown in receive call dialog.
|
static boolean |
isHideExtendedAwayStatus()
Whether to hide extended away status from global menu.
|
static boolean |
isHistoryLoggingEnabled()
Deprecated.
Method will be removed once OTR bundle is updated on Android.
|
static boolean |
isHistoryLoggingEnabled(java.lang.String id)
Deprecated.
Method will be removed once OTR bundle is updated on Android.
|
static boolean |
isHistoryShown()
Returns
true if the "isHistoryShown" property is
true, otherwise - returns false . |
static boolean |
isLeaveChatRoomOnWindowCloseEnabled()
Returns
true if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false . |
static boolean |
isMergeContactDisabled()
Returns
true if the "MERGE_CONTACT_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isMinimizeInsteadOfHide()
Gets whether the application should be minimized and not hidden when
clicking close on the main frame.
|
static boolean |
isMoveContactConfirmationRequested()
Returns TRUE if the "isMoveContactConfirmationRequested" property is true,
otherwise - returns FALSE.
|
static boolean |
isMultiChatWindowEnabled()
Returns
true if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false . |
static boolean |
isNormalizePhoneNumber()
Returns
true if phone numbers should be normalized,
false otherwise. |
static boolean |
isPresetStatusMessagesEnabled()
Returns
true if the "PRESET_STATUS_MESSAGES" property is
true, otherwise - returns false . |
static boolean |
isPrivateMessagingInChatRoomDisabled()
Returns
true if the "isPrivateMessagingInChatRoomDisabled"
property is true, otherwise - returns false . |
static boolean |
isQuitWarningShown()
Return TRUE if "quitWarningShown" property is true, otherwise -
return FALSE.
|
static boolean |
isRecentMessagesShown()
Returns
true if the "isRecentMessagesShown" property is
true, otherwise - returns false . |
static boolean |
isRemoveContactDisabled()
Returns
true if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false . |
static boolean |
isRouteVideoAndDesktopUsingPhoneNumberEnabled()
Whether allow to use additional phone numbers
to route video calls and desktop sharing through it.
|
static boolean |
isSendTypingNotifications()
Return TRUE if "sendTypingNotifications" property is true, otherwise -
return FALSE.
|
static boolean |
isShowAccountConfig()
Indicates if the account configuration is disabled.
|
static boolean |
isShowOffline()
Return TRUE if "showOffline" property is true, otherwise - return
FALSE.
|
static boolean |
isShowSmileys()
Returns
true if the "isShowSmileys" property is
true, otherwise - returns false .. |
static boolean |
isShowStatusChangedInChat()
Returns
true if status changed should be shown in
chat history area, false otherwise. |
static boolean |
isSingleWindowInterfaceEnabled()
Indicates if the single interface is enabled.
|
static boolean |
isSmsNotifyTextDisabled()
Whether to display or not the text notifying that a message is
a incoming or outgoing sms message.
|
static boolean |
isTransparentWindowEnabled()
Returns
true if transparent windows are enabled,
false otherwise. |
static boolean |
isWindowDecorated()
Returns
true if the "isWindowDecorated" property is
true, otherwise - returns false .. |
static void |
loadGuiConfigurations()
Loads all user interface configurations.
|
static void |
saveChatRoom(ProtocolProviderService protocolProvider,
java.lang.String oldChatRoomId,
java.lang.String newChatRoomId,
java.lang.String newChatRoomName)
Saves a chat room through the ConfigurationService.
|
static void |
setAcceptPhoneNumberWithAlphaChars(boolean accept)
Updates the "ACCEPT_PHONE_NUMBER_WITH_CHARS" property.
|
static void |
setAdvancedAccountConfigDisabled(boolean disabled)
Sets the advanced account config disabled property.
|
static void |
setAlerterEnabled(boolean isEnabled)
Updates the "plugin.chatalerter.ENABLED" property.
|
static void |
setApplicationVisible(boolean isVisible)
Updates the "showApplication" property through the
ConfigurationService.
|
static void |
setAutoPopupNewMessage(boolean autoPopup)
Updates the "autoPopupNewMessage" property.
|
static void |
setChatDefaultFontColor(java.awt.Color fontColor)
Sets the default font color.
|
static void |
setChatDefaultFontFamily(java.lang.String fontFamily)
Sets the default font family.
|
static void |
setChatDefaultFontSize(int fontSize)
Sets the default font size.
|
static void |
setChatFontIsBold(boolean isBold)
Sets the default isBold property.
|
static void |
setChatFontIsItalic(boolean isItalic)
Sets the default isItalic property.
|
static void |
setChatFontIsUnderline(boolean isUnderline)
Sets the default isUnderline property.
|
static void |
setChatHistorySize(int historySize)
Updates the "chatHistorySize" property through the
ConfigurationService.
|
static void |
setChatSimpleThemeEnabled(boolean isEnabled)
Updates the "isChatSimpleThemeEnabled" property through the
ConfigurationService.
|
static void |
setChatStylebarVisible(boolean isVisible)
Updates the "isChatStylebarVisible" property through the
ConfigurationService.
|
static void |
setChatToolbarVisible(boolean isVisible)
Updates the "isChatToolbarVisible" property through the
ConfigurationService.
|
static void |
setChatWriteAreaSize(int size)
Updates the "net.java.sip.communicator.impl.gui.CHAT_WRITE_AREA_SIZE"
property through the ConfigurationService.
|
static void |
setClientPort(int port)
Sets the client port.
|
static void |
setClientSecurePort(int port)
Sets the client secure port.
|
static void |
setContactListGroupCollapsed(java.lang.String groupID,
boolean isCollapsed)
Stores the last group status for the given groupID.
|
static void |
setEnabledSslProtocols(java.lang.String[] enabledProtocols)
Sets the enables SSL protocols list.
|
static void |
setHistoryShown(boolean isShown)
Updates the "isHistoryShown" property through the
ConfigurationService.
|
static void |
setIsMinimizeInsteadOfHide(boolean value)
Sets whether the application should be minimized and not hidden when
clicking close on the main frame.
|
static void |
setLanguage(java.util.Locale locale)
Sets the current language configuration.
|
static void |
setLastCallConferenceProvider(ProtocolProviderService protocolProvider)
Sets the call conference provider used for the last conference call.
|
static void |
setLastContactParent(java.lang.String groupName)
Updates the "lastContactParent" property through the
ConfigurationService.
|
static void |
setLeaveChatRoomOnWindowClose(boolean isLeave)
Updates the "isLeaveChatroomOnWindowClose" property through
the ConfigurationService.
|
static void |
setMoveContactConfirmationRequested(boolean isRequested)
Updates the "isMoveContactQuestionEnabled" property through the
ConfigurationService.
|
static void |
setMultiChatWindowEnabled(boolean isEnabled)
Updates the "isMultiChatWindowEnabled" property through the
ConfigurationService.
|
static void |
setNormalizePhoneNumber(boolean isNormalize)
Updates the "NORMALIZE_PHONE_NUMBER" property.
|
static void |
setPopupHandlerConfig(java.lang.String handler)
Saves the popup handler choice made by the user.
|
static void |
setQuitWarningShown(boolean isWarningShown)
Updates the "showAppQuitWarning" property through the
ConfigurationService.
|
static void |
setRecentMessagesShown(boolean isShown)
Updates the "isRecentMessagesShown" property through the
ConfigurationService.
|
static void |
setSendFileLastDir(java.lang.String lastDir)
Updates the "SEND_FILE_LAST_DIR"
property through the ConfigurationService.
|
static void |
setSendMessageCommand(java.lang.String newMessageCommand)
Updates the "sendMessageCommand" property through the
ConfigurationService.
|
static void |
setSendTypingNotifications(boolean isSendTypingNotif)
Updates the "sendTypingNotifications" property through the
ConfigurationService.
|
static void |
setShowCallPanel(boolean isCallPanelShown)
Updates the "showCallPanel" property through the
ConfigurationService.
|
static void |
setShowMasterPasswordWarning(boolean value)
Updates the value of whether to show master password warning.
|
static void |
setShowOffline(boolean isShowOffline)
Updates the "showOffline" property through the
ConfigurationService.
|
static void |
setShowSmileys(boolean isVisible)
Updates the "isShowSmileys" property through the
ConfigurationService.
|
static void |
setSingleWindowInterfaceEnabled(boolean isEnabled)
Updates the "singleWindowInterface" property through the
ConfigurationService.
|
static void |
setTransparentWindowEnabled(boolean isTransparent)
Updates the "isTransparentWindowEnabled" property through the
ConfigurationService.
|
static void |
setWindowTransparency(int transparency)
Sets the transparency value for all transparent windows.
|
static boolean |
showMasterPasswordWarning()
Whether to show or not the master password warning.
|
static void |
updateChatRoomProperty(ProtocolProviderService protocolProvider,
java.lang.String chatRoomId,
java.lang.String property,
java.lang.String value)
Updates the value of a chat room property through the
ConfigurationService.
|
static void |
updateChatRoomStatus(ProtocolProviderService protocolProvider,
java.lang.String chatRoomId,
java.lang.String chatRoomStatus)
Updates the status of the chat room through the
ConfigurationService.
|
public static final java.lang.String ENTER_COMMAND
public static final java.lang.String CTRL_ENTER_COMMAND
public static final java.lang.String ALERTER_ENABLED_PROP
public static void loadGuiConfigurations()
public static boolean isFontSupportEnabled()
public static boolean isAutoPopupNewMessage()
public static void setAutoPopupNewMessage(boolean autoPopup)
autoPopup
- indicates to the user interface whether new
messages should be opened and bring to front.public static boolean isCallPanelShown()
public static boolean isShowOffline()
public static boolean isApplicationVisible()
public static boolean isMinimizeInsteadOfHide()
public static void setIsMinimizeInsteadOfHide(boolean value)
value
- true when the main frame should be minimized,
false otherwisepublic static boolean isQuitWarningShown()
public static boolean isSendTypingNotifications()
public static void setSendTypingNotifications(boolean isSendTypingNotif)
isSendTypingNotif
- true
to indicate that typing
notifications are enabled, false
otherwise.public static boolean isMoveContactConfirmationRequested()
public static boolean isMultiChatWindowEnabled()
true
if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false
. Indicates to the user
interface whether the chat window could contain multiple chats or just
one chat.true
if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false
.public static boolean isPrivateMessagingInChatRoomDisabled()
true
if the "isPrivateMessagingInChatRoomDisabled"
property is true, otherwise - returns false
.
Indicates to the user interface whether the private messaging is disabled
in chat rooms.true
if the "isPrivateMessagingInChatRoomDisabled"
property is true, otherwise - returns false
.public static void setMultiChatWindowEnabled(boolean isEnabled)
isEnabled
- indicates if the chat window could
contain multiple chats or only one chat.public static boolean isLeaveChatRoomOnWindowCloseEnabled()
true
if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false
. Indicates to
the user interface whether when closing the chat window we would leave
the chat room.true
if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false
.public static void setLeaveChatRoomOnWindowClose(boolean isLeave)
isLeave
- indicates whether to leave chat room on window close.@Deprecated public static boolean isHistoryLoggingEnabled()
true
if the "IS_MESSAGE_HISTORY_ENABLED"
property is true, otherwise - returns false
.
Indicates to the user interface whether the history logging is enabled.true
if the "IS_MESSAGE_HISTORY_ENABLED"
property is true, otherwise - returns false
.@Deprecated public static boolean isHistoryLoggingEnabled(java.lang.String id)
true
if messages history is enabled.
Parameter id is ignored as it's an adapter for Android version
that has to work with old OTR bundle.public static boolean isHistoryShown()
true
if the "isHistoryShown" property is
true, otherwise - returns false
. Indicates to the user
whether the history is shown in the chat window.true
if the "isHistoryShown" property is
true, otherwise - returns false
.public static boolean isRecentMessagesShown()
true
if the "isRecentMessagesShown" property is
true, otherwise - returns false
. Indicates to the user
whether the recent messages are shown.true
if the "isRecentMessagesShown" property is
true, otherwise - returns false
.public static void setHistoryShown(boolean isShown)
isShown
- indicates if the message history is shownpublic static void setRecentMessagesShown(boolean isShown)
isShown
- indicates if the recent messages is shownpublic static boolean isWindowDecorated()
true
if the "isWindowDecorated" property is
true, otherwise - returns false
..true
if the "isWindowDecorated" property is
true, otherwise - returns false
.public static boolean isChatToolbarVisible()
true
if the "isChatToolbarVisible" property is
true, otherwise - returns false
..true
if the "isChatToolbarVisible" property is
true, otherwise - returns false
.public static boolean isChatStylebarVisible()
true
if the "isChatStylebarVisible" property is
true, otherwise - returns false
..true
if the "isChatStylebarVisible" property is
true, otherwise - returns false
.public static boolean isShowSmileys()
true
if the "isShowSmileys" property is
true, otherwise - returns false
..true
if the "isShowSmileys" property is
true, otherwise - returns false
.public static boolean isChatSimpleThemeEnabled()
true
if the "isChatSimpleTheme" property is
true, otherwise - returns false
..true
if the "isChatSimpleTheme" property is
true, otherwise - returns false
.public static boolean isAddContactDisabled()
true
if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false
..true
if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false
.public static boolean isMergeContactDisabled()
true
if the "MERGE_CONTACT_DISABLED" property is
true, otherwise - returns false
.true
if the "MERGE_CONTACT_DISABLED" property is
true, otherwise - returns false
.public static boolean isCreateGroupDisabled()
true
if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false
..true
if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false
.public static boolean isFlattenGroupEnabled()
true
if the "FLATTEN_GROUP_ENABLED" property is
true, otherwise - returns false
..true
if the "FLATTEN_GROUP_ENABLED" property is
true, otherwise - returns false
.public static boolean isGoToChatroomDisabled()
true
if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns false
..true
if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns false
.public static boolean isRemoveContactDisabled()
true
if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false
.true
if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false
.public static boolean isContactMoveDisabled()
true
if the "CONTACT_MOVE_DISABLED" property is
true, otherwise - returns false
.true
if the "CONTACT_MOVE_DISABLED" property is
true, otherwise - returns false
.public static boolean isContactRenameDisabled()
true
if the "CONTACT_RENAME_DISABLED" property is
true, otherwise - returns false
.true
if the "CONTACT_RENAME_DISABLED" property is
true, otherwise - returns false
.public static boolean isGroupRemoveDisabled()
true
if the "GROUP_REMOVE_DISABLED" property is
true, otherwise - returns false
.true
if the "GROUP_REMOVE_DISABLED" property is
true, otherwise - returns false
.public static boolean isGroupRenameDisabled()
true
if the "GROUP_RENAME_DISABLED" property is
true, otherwise - returns false
.true
if the "GROUP_RENAME_DISABLED" property is
true, otherwise - returns false
.public static boolean isPresetStatusMessagesEnabled()
true
if the "PRESET_STATUS_MESSAGES" property is
true, otherwise - returns false
.true
if the "PRESET_STATUS_MESSAGES" property is
true, otherwise - returns false
.public static boolean isAdvancedAccountConfigDisabled()
true
if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false
..true
if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false
.public static boolean isChatRoomConfigDisabled()
public static java.lang.String getChatDefaultFontFamily()
public static int getChatDefaultFontSize()
public static java.awt.Color getChatDefaultFontColor()
public static boolean isChatFontBold()
public static boolean isChatFontItalic()
public static boolean isChatFontUnderline()
public static void setAdvancedAccountConfigDisabled(boolean disabled)
disabled
- the new value to setpublic static java.lang.String getSendMessageCommand()
public static void setSendMessageCommand(java.lang.String newMessageCommand)
newMessageCommand
- the command used to send a message ( it could be
ENTER_COMMAND or CTRL_ENTER_COMMAND)public static java.lang.String getLastContactParent()
public static ProtocolProviderService getLastCallConferenceProvider()
public static int getChatHistorySize()
public static void setChatHistorySize(int historySize)
historySize
- indicates if the history logging is
enabled.public static int getChatWriteAreaSize()
public static boolean isTransparentWindowEnabled()
true
if transparent windows are enabled,
false
otherwise.true
if transparent windows are enabled,
false
otherwise.public static int getWindowTransparency()
public static java.lang.String getSendFileLastDir()
public static boolean isNormalizePhoneNumber()
true
if phone numbers should be normalized,
false
otherwise.true
if phone numbers should be normalized,
false
otherwise.public static void setNormalizePhoneNumber(boolean isNormalize)
isNormalize
- indicates to the user interface whether all dialed
phone numbers should be normalizedpublic static boolean isAlerterEnabled()
true
if window alerter is enabled (tack bar or
dock icon).true
if window alerter is enables,
false
otherwise.public static void setAlerterEnabled(boolean isEnabled)
isEnabled
- indicates whether to enable or disable alerter.public static boolean acceptPhoneNumberWithAlphaChars()
true
if a string with a alphabetical character migth
be considered as a phone number. false
otherwise.true
if a string with a alphabetical character migth
be considered as a phone number. false
otherwise.public static void setAcceptPhoneNumberWithAlphaChars(boolean accept)
accept
- indicates to the user interface whether a string with
alphabetical characters might be accepted as a phone number.public static boolean isShowStatusChangedInChat()
true
if status changed should be shown in
chat history area, false
otherwise.true
if status changed should be shown in
chat history area, false
otherwise.public static boolean isRouteVideoAndDesktopUsingPhoneNumberEnabled()
public static boolean isHideAccountSelectionWhenPossibleEnabled()
public static boolean isHideAccountStatusSelectorsEnabled()
public static boolean isHideExtendedAwayStatus()
public static boolean isAutoAnswerDisableSubmenu()
public static boolean isSingleWindowInterfaceEnabled()
public static boolean isHideAddressInCallHistoryTooltipEnabled()
public static boolean isSmsNotifyTextDisabled()
public static boolean isHideDomainInReceivedCallDialogEnabled()
public static boolean showMasterPasswordWarning()
true
to show it, and false
otherwise.public static void setShowMasterPasswordWarning(boolean value)
value
- the new value to set.public static void setSingleWindowInterfaceEnabled(boolean isEnabled)
isEnabled
- true
to indicate that the
single window interface is enabled, false - otherwisepublic static void setWindowTransparency(int transparency)
transparency
- the transparency value for all transparent windows.public static void setShowOffline(boolean isShowOffline)
isShowOffline
- true
to indicate that the
offline users should be shown, false
otherwise.public static void setShowCallPanel(boolean isCallPanelShown)
isCallPanelShown
- true
to indicate that the
call panel should be shown, false
otherwise.public static void setApplicationVisible(boolean isVisible)
isVisible
- true
to indicate that the
application should be shown, false
otherwise.public static void setQuitWarningShown(boolean isWarningShown)
isWarningShown
- indicates if the message warning the user that the
application would not be closed if she clicks the X button would be
shown again.public static void setPopupHandlerConfig(java.lang.String handler)
handler
- the handler which will be usedpublic static void setLastContactParent(java.lang.String groupName)
groupName
- the group name of the selected group when adding
last contactpublic static void setMoveContactConfirmationRequested(boolean isRequested)
isRequested
- indicates if a confirmation would be requested
from user during the move contact process.public static void setTransparentWindowEnabled(boolean isTransparent)
isTransparent
- indicates if the transparency is enabled in the
application.public static void setChatToolbarVisible(boolean isVisible)
isVisible
- indicates if the chat toolbar is visible.public static void setShowSmileys(boolean isVisible)
isVisible
- indicates if the smileys are visiblepublic static void setChatSimpleThemeEnabled(boolean isEnabled)
isEnabled
- indicates if the chat simple theme is enabledpublic static void setChatStylebarVisible(boolean isVisible)
isVisible
- indicates if the chat stylebar is visible.public static void setChatWriteAreaSize(int size)
size
- the new size to setpublic static void setSendFileLastDir(java.lang.String lastDir)
lastDir
- last download directorypublic static void setLastCallConferenceProvider(ProtocolProviderService protocolProvider)
protocolProvider
- the call conference provider used for the last
conference callpublic static void setChatDefaultFontFamily(java.lang.String fontFamily)
fontFamily
- the default font family namepublic static void setChatDefaultFontSize(int fontSize)
fontSize
- the default font sizepublic static void setChatFontIsBold(boolean isBold)
isBold
- indicates if the default chat font is boldpublic static void setChatFontIsItalic(boolean isItalic)
isItalic
- indicates if the default chat font is italicpublic static void setChatFontIsUnderline(boolean isUnderline)
isUnderline
- indicates if the default chat font is underlinepublic static void setChatDefaultFontColor(java.awt.Color fontColor)
fontColor
- the default font colorpublic static java.util.Locale getCurrentLanguage()
public static void setLanguage(java.util.Locale locale)
locale
- the locale to setpublic static void saveChatRoom(ProtocolProviderService protocolProvider, java.lang.String oldChatRoomId, java.lang.String newChatRoomId, java.lang.String newChatRoomName)
protocolProvider
- the protocol provider to which the chat room
belongsoldChatRoomId
- the old identifier of the chat roomnewChatRoomId
- the new identifier of the chat roomnewChatRoomName
- the new chat room namepublic static void updateChatRoomStatus(ProtocolProviderService protocolProvider, java.lang.String chatRoomId, java.lang.String chatRoomStatus)
protocolProvider
- the protocol provider to which the chat room
belongschatRoomId
- the identifier of the chat room to updatechatRoomStatus
- the new status of the chat roompublic static void updateChatRoomProperty(ProtocolProviderService protocolProvider, java.lang.String chatRoomId, java.lang.String property, java.lang.String value)
protocolProvider
- the protocol provider to which the chat room
belongschatRoomId
- the identifier of the chat room to updateproperty
- the name of the property of the chat roomvalue
- the value of the property if null, property will be removedpublic static java.lang.String getChatRoomProperty(ProtocolProviderService protocolProvider, java.lang.String chatRoomId, java.lang.String property)
protocolProvider
- the protocol provider, to which the chat room
belongschatRoomId
- the identifier of the chat roomproperty
- the property name, saved through the
ConfigurationService.public static java.lang.String getChatRoomPrefix(java.lang.String accountID, java.lang.String chatRoomId)
accountID
- the account idchatRoomId
- the chat room idpublic static java.lang.String getChatRoomStatus(ProtocolProviderService protocolProvider, java.lang.String chatRoomId)
protocolProvider
- the protocol provider, to which the chat room
belongschatRoomId
- the identifier of the chat roompublic static void setContactListGroupCollapsed(java.lang.String groupID, boolean isCollapsed)
groupID
- the identifier of the groupisCollapsed
- indicates if the group is collapsed or expandedpublic static boolean isContactListGroupCollapsed(java.lang.String groupID)
groupID
- the identifier of the grouppublic static boolean isShowAccountConfig()
public static java.lang.String getFactoryImplPackageName(ProtocolProviderFactory factory)
factory
- the ProtocolProviderFactory, which package name
we're looking forpublic static int getClientPort()
public static void setClientPort(int port)
port
- the port to setpublic static int getClientSecurePort()
public static void setClientSecurePort(int port)
port
- the port to setpublic static java.lang.String[] getEnabledSslProtocols()
public static java.lang.String[] getAvailableSslProtocols()
public static void setEnabledSslProtocols(java.lang.String[] enabledProtocols)
enabledProtocols
- the list of enabled SSL protocols to setpublic static boolean hasEnabledVideoFormat(ProtocolProviderService protocolProvider)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.