From af889888df85a71ae2a7150c591a31b098c937f9 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Fri, 24 Mar 2006 20:26:06 +0000 Subject: [PATCH] added a method for creating volatile contacts --- .../icq/OperationSetPersistentPresenceIcqImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java b/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java index b885d88a8..d8e976061 100644 --- a/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java @@ -379,6 +379,19 @@ public void subscribe(String contactIdentifier) ssContactList.addContact(contactIdentifier); } + /** + * Creates a non persistent contact for the specified address. This would + * also create (if necessary) a group for volatile contacts that would not + * be added to the server stored contact list. + * @param screenname the UIN/Screenname of the contact to create. + * @return the newly created volatile ContactIcqImpl + */ + ContactIcqImpl createVolatileContact(Screenname screenname) + { + return ssContactList.createVolatileContact(screenname); + } + + /** * Persistently adds a subscription for the presence status of the contact * corresponding to the specified contactIdentifier and indicates that it