aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2011-10-21 16:35:06 +0000
committerDamian Minkov <damencho@jitsi.org>2011-10-21 16:35:06 +0000
commit99de834020c5304213f1f6858f48e5b87329a0cf (patch)
treeeaf182f1967aa362702826877797f41beeb06fb6 /src/net/java/sip/communicator/service/protocol
parentfd1cce6c9a78da356c51ebeb16e4ae924a605393 (diff)
downloadjitsi-99de834020c5304213f1f6858f48e5b87329a0cf.zip
jitsi-99de834020c5304213f1f6858f48e5b87329a0cf.tar.gz
jitsi-99de834020c5304213f1f6858f48e5b87329a0cf.tar.bz2
Fixes slow sending of jabber messages.
Fixes some messages in history not shown, filtered by history service or exception obtaining display name of offline contacts.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol')
-rw-r--r--src/net/java/sip/communicator/service/protocol/AbstractOperationSetBasicInstantMessaging.java19
-rw-r--r--src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessaging.java11
2 files changed, 30 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetBasicInstantMessaging.java b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetBasicInstantMessaging.java
index 0b42221..2a32ab4 100644
--- a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetBasicInstantMessaging.java
+++ b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetBasicInstantMessaging.java
@@ -302,4 +302,23 @@ public abstract class AbstractOperationSetBasicInstantMessaging
return evt;
}
+
+ /**
+ * Determines whether the protocol supports the supplied content type
+ * for the given contact.
+ *
+ * @param contentType the type we want to check
+ * @param contact contact which is checked for supported contentType
+ * @return <tt>true</tt> if the contact supports it and
+ * <tt>false</tt> otherwise.
+ */
+ public boolean isContentTypeSupported(String contentType, Contact contact)
+ {
+ // by default we support default mime type, for other mime-types
+ // method must be overridden
+ if(contentType.equals(DEFAULT_MIME_TYPE))
+ return true;
+
+ return false;
+ }
}
diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessaging.java b/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessaging.java
index 9fb7831..c961511 100644
--- a/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessaging.java
+++ b/src/net/java/sip/communicator/service/protocol/OperationSetBasicInstantMessaging.java
@@ -109,4 +109,15 @@ public interface OperationSetBasicInstantMessaging
* <tt>false</tt> otherwise.
*/
public boolean isContentTypeSupported(String contentType);
+
+ /**
+ * Determines whether the protocol supports the supplied content type
+ * for the given contact.
+ *
+ * @param contentType the type we want to check
+ * @param contact contact which is checked for supported contentType
+ * @return <tt>true</tt> if the contact supports it and
+ * <tt>false</tt> otherwise.
+ */
+ public boolean isContentTypeSupported(String contentType, Contact contact);
}