diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-04-19 09:29:56 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-04-19 09:29:56 +0000 |
commit | 01248b564c6f538bf2bfa304ca3300ee24e284a8 (patch) | |
tree | 507983d0042d3810a8b803043f70a1e8ea828184 /src/net/java/sip/communicator/service/protocol | |
parent | f7fcd1d03598041044727aa4097dbcbf02bb742e (diff) | |
download | jitsi-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.java | 14 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/OperationSetPersistentPresence.java | 13 |
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; + } |