diff options
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java b/src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java index fe3ab1c..0be9b5c 100644 --- a/src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java +++ b/src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java @@ -467,6 +467,28 @@ public class JabberAccountID } /** + * Indicates if message carbons are allowed for this account + * @return <tt>true</tt> if message carbons are allowed for this account, + * otherwise returns <tt>false</tt> + */ + public boolean isCarbonDisabled() + { + return getAccountPropertyBoolean( + ProtocolProviderFactory.IS_CARBON_DISABLED, false); + } + + /** + * Sets the <tt>IS_CARBON_DISABLED</tt> property. + * @param isCarbonEnabled <tt>true</tt> to indicate that message carbons are + * allowed for this account, <tt>false</tt> - otherwise. + */ + public void setDisableCarbon(boolean isCarbonEnabled) + { + putAccountProperty( + ProtocolProviderFactory.IS_CARBON_DISABLED, isCarbonEnabled); + } + + /** * Is resource auto generate enabled. * * @return true if resource is auto generated |