diff options
author | Emil Ivov <emcho@jitsi.org> | 2006-03-08 03:59:53 +0000 |
---|---|---|
committer | Emil Ivov <emcho@jitsi.org> | 2006-03-08 03:59:53 +0000 |
commit | 957ed3fa96427d4735f070c8cc4ae6178c865030 (patch) | |
tree | bb5bb7d1579636fe34b57110fe5443e5b397a6fb /src/net/java/sip/communicator/impl/protocol/icq/ContactGroupIcqImpl.java | |
parent | 2d42ba02c20e931e639826347d24b44d4758d1a3 (diff) | |
download | jitsi-957ed3fa96427d4735f070c8cc4ae6178c865030.zip jitsi-957ed3fa96427d4735f070c8cc4ae6178c865030.tar.gz jitsi-957ed3fa96427d4735f070c8cc4ae6178c865030.tar.bz2 |
Refactoring.
Added a reference to the parent provider.
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.java | 16 |
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. |