aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2011-04-19 09:29:56 +0000
committerDamian Minkov <damencho@jitsi.org>2011-04-19 09:29:56 +0000
commit01248b564c6f538bf2bfa304ca3300ee24e284a8 (patch)
tree507983d0042d3810a8b803043f70a1e8ea828184 /src/net/java/sip/communicator/service/protocol
parentf7fcd1d03598041044727aa4097dbcbf02bb742e (diff)
downloadjitsi-01248b564c6f538bf2bfa304ca3300ee24e284a8.zip
jitsi-01248b564c6f538bf2bfa304ca3300ee24e284a8.tar.gz
jitsi-01248b564c6f538bf2bfa304ca3300ee24e284a8.tar.bz2
Rename protocol contacts where possible.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol')
-rw-r--r--src/net/java/sip/communicator/service/protocol/AbstractOperationSetPersistentPresence.java14
-rw-r--r--src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java13
2 files changed, 27 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetPersistentPresence.java b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetPersistentPresence.java
index 361321e..b153044 100644
--- a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetPersistentPresence.java
+++ b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetPersistentPresence.java
@@ -500,4 +500,18 @@ public abstract class AbstractOperationSetPersistentPresence<T extends ProtocolP
subscriptionListeners.remove(listener);
}
}
+
+ /**
+ * Sets the display name for <tt>contact</tt> to be <tt>newName</tt>.
+ * <p>
+ * @param contact the <tt>Contact</tt> that we are renaming
+ * @param newName a <tt>String</tt> containing the new display name for
+ * <tt>metaContact</tt>.
+ * @throws IllegalArgumentException if <tt>contact</tt> is not an
+ * instance that belongs to the underlying implementation.
+ */
+ public void setDisplayName(Contact contact, String newName)
+ throws IllegalArgumentException
+ {
+ }
}
diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java b/src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java
index 51a4470..391349c 100644
--- a/src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java
+++ b/src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java
@@ -240,4 +240,17 @@ public interface OperationSetPersistentPresence
*/
public ContactGroup createUnresolvedContactGroup(String groupUID,
String persistentData, ContactGroup parentGroup);
+
+ /**
+ * Sets the display name for <tt>contact</tt> to be <tt>newName</tt>.
+ * <p>
+ * @param contact the <tt>Contact</tt> that we are renaming
+ * @param newName a <tt>String</tt> containing the new display name for
+ * <tt>metaContact</tt>.
+ * @throws IllegalArgumentException if <tt>contact</tt> is not an
+ * instance that belongs to the underlying implementation.
+ */
+ public void setDisplayName(Contact contact, String newName)
+ throws IllegalArgumentException;
+
}