public class ServerStoredGroupEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
GROUP_CREATED_EVENT
Indicates that a contact group has been successfully created.
|
static int |
GROUP_CREATION_FAILED_EVENT
Indicates that we have failed to create a group.
|
static int |
GROUP_REMOVED_EVENT
Indicates that a contact group has been successfully deleted.
|
static int |
GROUP_RENAMED_EVENT
Indicates that a group has been successfully renamed.
|
static int |
GROUP_RESOLVED_EVENT
Indicates that a group has just been resolved against the server.
|
Constructor and Description |
---|
ServerStoredGroupEvent(ContactGroup sourceGroup,
int eventID,
ContactGroup parentGroup,
ProtocolProviderService sourceProvider,
OperationSetPersistentPresence opSet)
Creates a ServerStoredGroupChangeEvent instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventID()
Returns an int describing the cause of this event.
|
ContactGroup |
getParentGroup()
Returns the group containing the event source group
|
ContactGroup |
getSourceGroup()
Returns a reference to the ContactGroup that this event is
pertaining to.
|
OperationSetPersistentPresence |
getSourceOperationSet()
Returns a reference to the operation set that generated the event
|
ProtocolProviderService |
getSourceProvider()
Returns a reference to the provider under which the event is being
generated
|
java.lang.String |
toString()
Returns a String representation of this event.
|
public static final int GROUP_CREATED_EVENT
public static final int GROUP_REMOVED_EVENT
public static final int GROUP_RENAMED_EVENT
public static final int GROUP_RESOLVED_EVENT
public static final int GROUP_CREATION_FAILED_EVENT
public ServerStoredGroupEvent(ContactGroup sourceGroup, int eventID, ContactGroup parentGroup, ProtocolProviderService sourceProvider, OperationSetPersistentPresence opSet)
sourceGroup
- the group that this event is pertaining to.eventID
- an int describing the cause of the eventparentGroup
- the group that the source group is a child of.sourceProvider
- a reference to the protocol provider where this is
happeningopSet
- a reference to the operation set responsible for the eventpublic ContactGroup getSourceGroup()
public int getEventID()
public ProtocolProviderService getSourceProvider()
public OperationSetPersistentPresence getSourceOperationSet()
public ContactGroup getParentGroup()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.