|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.OperationSetGenericNotificationsJabberImpl
public class OperationSetGenericNotificationsJabberImpl
Provides notification for generic events with name and value, also option to generate such events.
| Constructor Summary | |
|---|---|
OperationSetGenericNotificationsJabberImpl(ProtocolProviderServiceJabberImpl provider)
Creates an instance of this operation set. |
|
| Method Summary | |
|---|---|
void |
addGenericEventListener(String eventName,
GenericEventListener listener)
Registers a GenericEventListener with this operation set so that it gets notifications for new event notifications. |
void |
notifyForEvent(Contact contact,
String eventName,
String eventValue)
Generates new event notification. |
void |
notifyForEvent(String jid,
String eventName,
String eventValue)
Generates new generic event notification and send it to the supplied contact. |
void |
notifyForEvent(String jid,
String eventName,
String eventValue,
String source)
Generates new generic event notification and send it to the supplied contact. |
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Process the next packet sent to this packet listener. |
void |
removeGenericEventListener(String eventName,
GenericEventListener listener)
Unregisters listener so that it won't receive any further notifications upon new event notifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetGenericNotificationsJabberImpl(ProtocolProviderServiceJabberImpl provider)
provider - a reference to the ProtocolProviderServiceImpl
that created us and that we'll use for retrieving the underlying aim
connection.| Method Detail |
|---|
public void notifyForEvent(Contact contact,
String eventName,
String eventValue)
notifyForEvent in interface OperationSetGenericNotificationscontact - the contact to receive the notification.eventName - the event name of the notification.eventValue - the event value of the notification.
public void notifyForEvent(String jid,
String eventName,
String eventValue)
notifyForEvent in interface OperationSetGenericNotificationsjid - the contact jid which will receive the event notification.eventName - the event name of the notification.eventValue - the event value of the notification.
public void notifyForEvent(String jid,
String eventName,
String eventValue,
String source)
notifyForEvent in interface OperationSetGenericNotificationsjid - the contact jid which will receive the event notification.eventName - the event name of the notification.eventValue - the event value of the notification.source - the source that will be reported in the event.
public void addGenericEventListener(String eventName,
GenericEventListener listener)
addGenericEventListener in interface OperationSetGenericNotificationseventName - register the listener for certain event name.listener - the GenericEventListener
to register.
public void removeGenericEventListener(String eventName,
GenericEventListener listener)
removeGenericEventListener in interface OperationSetGenericNotificationseventName - unregister the listener for certain event name.listener - the GenericEventListener
to unregister.public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpacket - the packet to process.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||