public class OperationSetDesktopSharingClientJabberImpl extends AbstractOperationSetDesktopSharingClient<ProtocolProviderServiceJabberImpl> implements RegistrationStateChangeListener, org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.filter.PacketFilter
parentProvider
Constructor and Description |
---|
OperationSetDesktopSharingClientJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
Initializes a new OperationSetDesktopSharingClientJabberImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.jivesoftware.smack.packet.Packet packet)
Tests whether or not the specified packet should be handled by this
operation set.
|
protected CallPeer |
getListenerCallPeer(java.lang.String callPeerAddress)
Returns the callPeer corresponding to the given callPeerAddress given in
parameter, if this callPeer exists in the listener list.
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Handles incoming inputevt packets and passes them to the corresponding
method based on their action.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Implementation of method registrationStateChange from
interface RegistrationStateChangeListener for setting up (or down)
our InputEvtManager when an XMPPConnection is available
|
void |
sendKeyboardEvent(CallPeer callPeer,
java.awt.event.KeyEvent event)
Send a keyboard notification.
|
void |
sendMouseEvent(CallPeer callPeer,
java.awt.event.MouseEvent event)
Send a mouse notification.
|
void |
sendMouseEvent(CallPeer callPeer,
java.awt.event.MouseEvent event,
java.awt.Dimension videoPanelSize)
Send a mouse notification for specific "moved" MouseEvent.
|
addRemoteControlListener, fireRemoteControlGranted, fireRemoteControlRevoked, getListener, getListeners, removeRemoteControlListener
public OperationSetDesktopSharingClientJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
parentProvider
- the Jabber ProtocolProviderService
implementation which has requested the creation of the new instance and
for which the new instance is to provide desktop sharing.public void sendKeyboardEvent(CallPeer callPeer, java.awt.event.KeyEvent event)
sendKeyboardEvent
in interface OperationSetDesktopSharingClient
callPeer
- CallPeer that will be notifiedevent
- KeyEvent received and that will be send to remote
peerpublic void sendMouseEvent(CallPeer callPeer, java.awt.event.MouseEvent event)
sendMouseEvent
in interface OperationSetDesktopSharingClient
callPeer
- CallPeer that will be notifiedevent
- MouseEvent received and that will be send to remote
peerpublic void sendMouseEvent(CallPeer callPeer, java.awt.event.MouseEvent event, java.awt.Dimension videoPanelSize)
sendMouseEvent
in interface OperationSetDesktopSharingClient
callPeer
- CallPeer that will be notifiedevent
- MouseEvent received and that will be send to remote
peervideoPanelSize
- size of the panel that contains videopublic void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- the event receivedpublic void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket
in interface org.jivesoftware.smack.PacketListener
packet
- the packet to process.public boolean accept(org.jivesoftware.smack.packet.Packet packet)
accept
in interface org.jivesoftware.smack.filter.PacketFilter
packet
- the packet to test.protected CallPeer getListenerCallPeer(java.lang.String callPeerAddress)
callPeerAddress
- The XMPP address of the call peer to seek.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.