diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-09-28 14:40:01 +0200 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-09-30 20:29:05 +0200 |
commit | aa29a5c4575f69e567429167e5acaf614c53abd9 (patch) | |
tree | 117f8668a26c7095f3deca17184532d18dda5ad3 /src/net/java | |
parent | 2254995ee3f90ee9042be6d1e2f0504db74841ad (diff) | |
download | jitsi-aa29a5c4575f69e567429167e5acaf614c53abd9.zip jitsi-aa29a5c4575f69e567429167e5acaf614c53abd9.tar.gz jitsi-aa29a5c4575f69e567429167e5acaf614c53abd9.tar.bz2 |
Renamed methods of BasicInstantMessagingTransport.
Diffstat (limited to 'src/net/java')
3 files changed, 7 insertions, 6 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java index 07e4308..fab2e23 100644 --- a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java @@ -213,7 +213,7 @@ public class OperationSetBasicInstantMessagingIrcImpl * complete message. */ @Override - public int maximumMessageSize(final Contact contact) + public int getMaxMessageSize(final Contact contact) { return this.provider.getIrcStack().calculateMaximumMessageSize(contact); } @@ -225,7 +225,7 @@ public class OperationSetBasicInstantMessagingIrcImpl * @return returns number of messages that can be received at maximum */ @Override - public int numberOfMessages(final Contact contact) + public int getMaxNumberOfMessages(final Contact contact) { return OperationSetBasicInstantMessagingTransport.UNLIMITED; } diff --git a/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java b/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java index b7e184a..88668e3 100644 --- a/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java +++ b/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java @@ -30,6 +30,7 @@ import org.osgi.framework.*; * @author Lyubomir Marinov
* @author Pawel Domas
* @author Marin Dzhigarov
+ * @author Danny van Heumen
*/
public class ScOtrEngineImpl
implements ScOtrEngine,
@@ -445,14 +446,14 @@ public class ScOtrEngineImpl }
return null;
}
- int messageSize = transport.maximumMessageSize(otrContact.contact);
+ int messageSize = transport.getMaxMessageSize(otrContact.contact);
if (messageSize
== OperationSetBasicInstantMessagingTransport.UNLIMITED)
{
messageSize = FragmenterInstructions.UNLIMITED;
}
int numberOfMessages =
- transport.numberOfMessages(otrContact.contact);
+ transport.getMaxNumberOfMessages(otrContact.contact);
if (numberOfMessages
== OperationSetBasicInstantMessagingTransport.UNLIMITED)
{
diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessagingTransport.java b/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessagingTransport.java index cb95266..d5d9096 100644 --- a/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessagingTransport.java +++ b/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessagingTransport.java @@ -33,7 +33,7 @@ public interface OperationSetBasicInstantMessagingTransport * @return returns the maximum size of the message or UNLIMITED if there is * no limit */ - int maximumMessageSize(Contact contact); + int getMaxMessageSize(Contact contact); /** * Compute the maximum number of consecutive messages allowed to be sent to @@ -47,5 +47,5 @@ public interface OperationSetBasicInstantMessagingTransport * @param contact the contact to which the messages are sent * @return returns the maximum number of messages to send */ - int numberOfMessages(Contact contact); + int getMaxNumberOfMessages(Contact contact); } |