/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package net.java.sip.communicator.impl.gui.main.contactlist.contactsource; import java.util.*; import net.java.sip.communicator.service.contactlist.*; /** * The MetaGroupQueryEvent is triggered each time a * MetaContactGroup is received as a result of a * MetaContactQuery. * * @author Yana Stamcheva */ public class MetaGroupQueryEvent extends EventObject { /** * The MetaContactGroup this event is about. */ private final MetaContactGroup metaGroup; /** * Creates an instance of MetaGroupQueryEvent by specifying the * source query this event comes from and the metaGroup * this event is about. * * @param source the MetaContactQuery that triggered this event * @param metaGroup the MetaContactGroup this event is about */ public MetaGroupQueryEvent( MetaContactQuery source, MetaContactGroup metaGroup) { super(source); this.metaGroup = metaGroup; } /** * Returns the MetaContactQuery that triggered this event. * @return the MetaContactQuery that triggered this event */ public MetaContactQuery getQuerySource() { return (MetaContactQuery) source; } /** * Returns the MetaContactGroup this event is about. * @return the MetaContactGroup this event is about */ public MetaContactGroup getMetaGroup() { return metaGroup; } }