From 01248b564c6f538bf2bfa304ca3300ee24e284a8 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Tue, 19 Apr 2011 09:29:56 +0000 Subject: Rename protocol contacts where possible. --- .../protocol/AbstractOperationSetPersistentPresence.java | 14 ++++++++++++++ .../service/protocol/OperationSetPersistentPresence.java | 13 +++++++++++++ 2 files changed, 27 insertions(+) (limited to 'src/net/java/sip/communicator/service/protocol') 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 AbstractOperationSetPersistentPresencecontact to be newName. + *

+ * @param contact the Contact that we are renaming + * @param newName a String containing the new display name for + * metaContact. + * @throws IllegalArgumentException if contact 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 contact to be newName. + *

+ * @param contact the Contact that we are renaming + * @param newName a String containing the new display name for + * metaContact. + * @throws IllegalArgumentException if contact is not an + * instance that belongs to the underlying implementation. + */ + public void setDisplayName(Contact contact, String newName) + throws IllegalArgumentException; + } -- cgit v1.1