T
- public abstract class AbstractOperationSetDesktopSharingClient<T extends ProtocolProviderService> extends java.lang.Object implements OperationSetDesktopSharingClient
Modifier and Type | Field and Description |
---|---|
protected T |
parentProvider
The ProtocolProviderService implementation which created this
instance and for which telephony conferencing services are being provided
by this instance.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractOperationSetDesktopSharingClient(T parentProvider)
Initializes a new AbstractOperationSetDesktopSharing instance
which is to be provided by a specific ProtocolProviderService.
|
Modifier and Type | Method and Description |
---|---|
void |
addRemoteControlListener(RemoteControlListener listener)
Adds a RemoteControlListener to be notified when the remote peer
accepts to give us full control of their desktop.
|
void |
fireRemoteControlGranted(CallPeer peer)
Fires a RemoteControlGrantedEvent to all registered listeners.
|
void |
fireRemoteControlRevoked(CallPeer peer)
Fires a RemoteControlGrantedEvent to all registered listeners.
|
protected RemoteControlListener |
getListener(CallPeer callPeer)
Returns the RemoteControlListener corresponding to the given
callPeer, if it exists.
|
protected java.util.List<RemoteControlListener> |
getListeners()
Gets a list of RemoteControlListeners to be notified of remote
control access changes.
|
void |
removeRemoteControlListener(RemoteControlListener listener)
Removes a RemoteControlListener to be notified when remote peer
accept/revoke to give us full control.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendKeyboardEvent, sendMouseEvent, sendMouseEvent
protected final T extends ProtocolProviderService parentProvider
protected AbstractOperationSetDesktopSharingClient(T parentProvider)
parentProvider
- the ProtocolProviderService implementation
which is creating the new instance and for which telephony conferencing
services are being provided by this instancepublic void addRemoteControlListener(RemoteControlListener listener)
The default implementation of AbstractOperationSetDesktopSharingClient adds a WeakReference to the specified RemoteControlListener in order to avoid memory leaks because of code which calls addRemoteControlListener and never calls removeRemoteControlListener.
addRemoteControlListener
in interface OperationSetDesktopSharingClient
listener
- the RemoteControlListener to addpublic void fireRemoteControlGranted(CallPeer peer)
peer
- the CallPeerpublic void fireRemoteControlRevoked(CallPeer peer)
peer
- the CallPeerprotected java.util.List<RemoteControlListener> getListeners()
public void removeRemoteControlListener(RemoteControlListener listener)
removeRemoteControlListener
in interface OperationSetDesktopSharingClient
listener
- RemoteControlListener to removeprotected RemoteControlListener getListener(CallPeer callPeer)
callPeer
- the CallPeer to get the corresponding
RemoteControlListener of
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.