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

emcho at dev.java.net emcho at dev.java.net
Mon May 14 16:11:43 CEST 2007


User: emcho   
Date: 2007-05-14 14:11:43+0000
Log:
 Committing geolocation for Jabber from Guillaume Schreiner - Louis Pasteur University, France
 
 made status conversion methods static so that the geolocation methods could use them.

File Changes:

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

File [changed]: OperationSetPersistentPresenceJabberImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java?r1=1.15&r2=1.16
Delta lines:  +11 -10
---------------------
--- OperationSetPersistentPresenceJabberImpl.java	2007-04-16 06:38:50+0000	1.15
+++ OperationSetPersistentPresenceJabberImpl.java	2007-05-14 14:11:41+0000	1.16
@@ -653,11 +653,11 @@
      * Converts the specified jabber status to one of the status fields of the
      * JabberStatusEnum class.
      *
-     * @param mode the Jabber Status
+     * @param presence the Jabber Status
      * @return a PresenceStatus instance representation of the Jabber Status
      * parameter. The returned result is one of the JabberStatusEnum fields.
      */
-    private JabberStatusEnum jabberStatusToPresenceStatus(Presence presence)
+    public static JabberStatusEnum jabberStatusToPresenceStatus(Presence presence)
     {
         // fixing issue: 336
         // from the smack api : 
@@ -688,7 +688,8 @@
      * @param status the jabberStatus
      * @return a PresenceStatus instance
      */
-    private Presence.Mode presenceStatusToJabberMode(JabberStatusEnum status)
+    public static Presence.Mode presenceStatusToJabberMode(
+                                                       JabberStatusEnum status)
     {
         return (Presence.Mode)scToJabberModesMappings.get(status);
     }




---------------------------------------------------------------------
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