diff --git a/src/net/java/sip/communicator/impl/protocol/icq/ContactIcqImpl.java b/src/net/java/sip/communicator/impl/protocol/icq/ContactIcqImpl.java
index 5f81b054f..43a394ee6 100644
--- a/src/net/java/sip/communicator/impl/protocol/icq/ContactIcqImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/icq/ContactIcqImpl.java
@@ -123,6 +123,18 @@ public String toString()
return buff.toString();
}
+ /**
+ * Changes the buddy encapsulated by this method to be newBuddy.
+ * This method is to be used _only_ when converting a non-persistent buddy
+ * into a normal one.
+ * @param newBuddy the new Buddy reference that this contact will
+ * encapsulate.
+ */
+ void setJoustSimBuddy(Buddy newBuddy)
+ {
+ this.joustSimBuddy = newBuddy;
+ }
+
/**
* Sets the status that this contact is currently in. The method is to
* only be called as a result of a status update received from the AIM
@@ -204,6 +216,19 @@ public boolean isPersistent()
return isPersistent;
}
+ /**
+ * Specifies whether this contact is to be considered persistent or not. The
+ * method is to be used _only_ when a non-persistent contact has been added
+ * to the contact list and its encapsulated VolatileBuddy has been repalced
+ * with a standard joustsim buddy.
+ * @param persistent true if the buddy is to be considered persistent and
+ * false for volatile.
+ */
+ void setPersistent(boolean persistent)
+ {
+ this.isPersistent = persistent;
+ }
+
/**
* Returns null as no persistent data is required and the contact address is
* sufficient for restoring the contact.