aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java b/src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java
index be754c7..613a010 100644
--- a/src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java
@@ -47,6 +47,8 @@ public class ContactGroupIcqImpl
*/
private String nameCopy = null;
+ private ServerStoredContactListIcqImpl ssclCallback = null;
+
/**
* Creates an ICQ group using the specified <tt>joustSimGroup</tt> as
* a source. The newly created group will always return the name of the
@@ -72,6 +74,8 @@ public class ContactGroupIcqImpl
{
this.joustSimSourceGroup = joustSimGroup;
+ this.ssclCallback = ssclCallback;
+
//store a copy of the name now so that we can detect changes in the
//name of the underlying joustSimSourceGroup
initNameCopy();
@@ -247,7 +251,7 @@ public class ContactGroupIcqImpl
* by the root group - <tt>RootContactGroupIcqImpl</tt>.
* @return a 0 int.
*/
- public int countSubGroups()
+ public int countSubgroups()
{
return 0;
}
@@ -301,6 +305,16 @@ public class ContactGroupIcqImpl
}
/**
+ * Returns the protocol provider that this group belongs to.
+ * @return a regerence to the ProtocolProviderService instance that this
+ * ContactGroup belongs to.
+ */
+ public ProtocolProviderService getProtocolProvider()
+ {
+ return this.ssclCallback.getParentProvider();
+ }
+
+ /**
* Returns a string representation of this group, in the form
* IcqGroup.GroupName[size]{ buddy1.toString(), buddy2.toString(), ...}.
* @return a String representation of the object.