public class ChatAlerterActivator extends java.lang.Object implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener, MessageListener, ChatRoomMessageListener, AdHocChatRoomMessageListener, LocalUserChatRoomPresenceListener, LocalUserAdHocChatRoomPresenceListener, java.beans.PropertyChangeListener, CallListener
Constructor and Description |
---|
ChatAlerterActivator() |
Modifier and Type | Method and Description |
---|---|
void |
callEnded(CallEvent event)
Not used
|
UIService |
getUIService()
Returns the UIService obtained from the bundle
context.
|
void |
incomingCallReceived(CallEvent event)
This method is called by a protocol provider whenever an incoming call is
received.
|
void |
localUserAdHocPresenceChanged(LocalUserAdHocChatRoomPresenceChangeEvent ev)
Called to notify interested parties that a change in our presence in
an ad-hoc chat room has occurred.
|
void |
localUserPresenceChanged(LocalUserChatRoomPresenceChangeEvent ev)
Called to notify interested parties that a change in our presence in
a chat room has occurred.
|
void |
messageDelivered(AdHocChatRoomMessageDeliveredEvent evt)
Called when the underlying implementation has received an indication
that a message, sent earlier has been successfully received by the
destination.
|
void |
messageDelivered(ChatRoomMessageDeliveredEvent evt)
Called when the underlying implementation has received an indication
that a message, sent earlier has been successfully received by the
destination.
|
void |
messageDelivered(MessageDeliveredEvent evt)
Called when the underlying implementation has received an indication
that a message, sent earlier has been successfully received by the
destination.
|
void |
messageDeliveryFailed(AdHocChatRoomMessageDeliveryFailedEvent evt)
Called to indicate that delivery of a message sent earlier to the chat
room has failed.
|
void |
messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
Called to indicate that delivery of a message sent earlier to the chat
room has failed.
|
void |
messageDeliveryFailed(MessageDeliveryFailedEvent evt)
Called to indicated that delivery of a message sent earlier has failed.
|
void |
messageReceived(AdHocChatRoomMessageReceivedEvent evt)
Called when a new incoming Message has been received.
|
void |
messageReceived(ChatRoomMessageReceivedEvent evt)
Called when a new incoming Message has been received.
|
void |
messageReceived(MessageReceivedEvent evt)
Called when a new incoming Message has been received.
|
void |
outgoingCallCreated(CallEvent event)
Not used.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Waits for enable/disable property change.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
When new protocol provider is registered we check
does it supports needed Op.
|
void |
start(org.osgi.framework.BundleContext bc)
Starts this bundle.
|
void |
stop(org.osgi.framework.BundleContext bc)
Stops bundle.
|
public void start(org.osgi.framework.BundleContext bc) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bc
- bundle context.java.lang.Exception
public void stop(org.osgi.framework.BundleContext bc) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bc
- context.java.lang.Exception
public void localUserPresenceChanged(LocalUserChatRoomPresenceChangeEvent ev)
localUserPresenceChanged
in interface LocalUserChatRoomPresenceListener
ev
- the LocalUserChatRoomPresenceChangeEvent instance
containing the chat room and the type, and reason of the changepublic void messageReceived(MessageReceivedEvent evt)
MessageListener
messageReceived
in interface MessageListener
evt
- the MessageReceivedEvent containing the newly
received message, its sender and other details.public void messageDelivered(MessageDeliveredEvent evt)
MessageListener
messageDelivered
in interface MessageListener
evt
- the MessageDeliveredEvent containing the id of the message
that has caused the event.public void messageDeliveryFailed(MessageDeliveryFailedEvent evt)
MessageListener
messageDeliveryFailed
in interface MessageListener
evt
- the MessageFailedEvent containing the ID of the
message whose delivery has failed.public void messageReceived(ChatRoomMessageReceivedEvent evt)
ChatRoomMessageListener
messageReceived
in interface ChatRoomMessageListener
evt
- the ChatRoomMessageReceivedEvent containing the newly
received message, its sender and other details.public void messageDelivered(ChatRoomMessageDeliveredEvent evt)
ChatRoomMessageListener
messageDelivered
in interface ChatRoomMessageListener
evt
- the ChatRoomMessageDeliveredEvent containing the id
of the message that has caused the event.public void messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
ChatRoomMessageListener
messageDeliveryFailed
in interface ChatRoomMessageListener
evt
- the ChatroomMessageDeliveryFailedEvent containing
the ID of the message whose delivery has failed.public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
serviceEvent
- ServiceEventpublic void messageDelivered(AdHocChatRoomMessageDeliveredEvent evt)
AdHocChatRoomMessageListener
messageDelivered
in interface AdHocChatRoomMessageListener
evt
- the AdHocChatRoomMessageDeliveredEvent containing the
id of the message that has caused the event.public void messageDeliveryFailed(AdHocChatRoomMessageDeliveryFailedEvent evt)
AdHocChatRoomMessageListener
messageDeliveryFailed
in interface AdHocChatRoomMessageListener
evt
- the AdHocChatroomMessageDeliveryFailedEvent
containing the ID of the message whose delivery has failed.public void messageReceived(AdHocChatRoomMessageReceivedEvent evt)
AdHocChatRoomMessageListener
messageReceived
in interface AdHocChatRoomMessageListener
evt
- the AdHocChatRoomMessageReceivedEvent containing the
newly received message, its sender and other details.public void localUserAdHocPresenceChanged(LocalUserAdHocChatRoomPresenceChangeEvent ev)
localUserAdHocPresenceChanged
in interface LocalUserAdHocChatRoomPresenceListener
ev
- the LocalUserAdHocChatRoomPresenceChangeEvent
instance containing the ad-hoc chat room and the type, and reason of the
changepublic UIService getUIService()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- the event of changepublic void incomingCallReceived(CallEvent event)
incomingCallReceived
in interface CallListener
event
- a CallEvent instance describing the new incoming callpublic void outgoingCallCreated(CallEvent event)
outgoingCallCreated
in interface CallListener
event
- a CalldEvent instance describing the new outgoing call.public void callEnded(CallEvent event)
callEnded
in interface CallListener
event
- the CallEvent containing the source call.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.