[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/MessageIcqImpl.java

emcho at dev.java.net emcho at dev.java.net
Mon Apr 23 20:11:49 CEST 2007


User: emcho   
Date: 2007-04-23 18:11:49+0000
Log:
 working on multi chat and a jabber implementation
 
 implemented max msg len handling

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/
=============================================================================

File [changed]: MessageIcqImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/MessageIcqImpl.java?r1=1.1&r2=1.2
Delta lines:  +14 -5
--------------------
--- MessageIcqImpl.java	2006-03-23 22:59:05+0000	1.1
+++ MessageIcqImpl.java	2007-04-23 18:11:47+0000	1.2
@@ -52,21 +52,30 @@
      * @param contentEncoding a MIME String indicating the content encoding of
      * the <tt>content</tt> String.
      * @param subject the subject of the message or null for empty.
+     * @param messageUID an UID in case we'd like to set our own or null for an
+     * automatically generated one.
      */
     public MessageIcqImpl(String content,
                           String contentType,
                           String contentEncoding,
-                          String subject)
+                          String subject,
+                          String messageUID)
     {
         this.textContent = content;
         this.contentType = contentType;
         this.contentEncoding = contentEncoding;
         this.subject = subject;
 
+        if(messageUID == null)
+        {
         //generate the uid
-        this.messageUID = String.valueOf( System.currentTimeMillis())
+            this.messageUID = String.valueOf(System.currentTimeMillis())
                           + String.valueOf(hashCode());
-
+        }
+        else
+        {
+            this.messageUID = messageUID;
+        }
     }
 
     /**




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list