Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class OperationSetDesktopSharingClientSipImpl

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractOperationSetDesktopSharingClient<ProtocolProviderServiceSipImpl>
      extended by net.java.sip.communicator.impl.protocol.sip.OperationSetDesktopSharingClientSipImpl
All Implemented Interfaces:
OperationSet, OperationSetDesktopSharingClient

public class OperationSetDesktopSharingClientSipImpl
extends AbstractOperationSetDesktopSharingClient<ProtocolProviderServiceSipImpl>

Implements all desktop sharing client-side related functions for SIP protocol.

Author:
Sebastien Vincent

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetDesktopSharingClient
parentProvider
 
Constructor Summary
OperationSetDesktopSharingClientSipImpl(ProtocolProviderServiceSipImpl parentProvider)
          Initializes a new OperationSetDesktopSharingClientSipImpl.
 
Method Summary
 void sendKeyboardEvent(CallPeer callPeer, KeyEvent event)
          Send a keyboard notification.
 void sendMouseEvent(CallPeer callPeer, MouseEvent event)
          Send a mouse notification.
 void sendMouseEvent(CallPeer callPeer, MouseEvent event, Dimension videoPanelSize)
          Send a mouse notification for specific "moved" MouseEvent.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetDesktopSharingClient
addRemoteControlListener, fireRemoteControlGranted, fireRemoteControlRevoked, getListeners, removeRemoteControlListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetDesktopSharingClientSipImpl

public OperationSetDesktopSharingClientSipImpl(ProtocolProviderServiceSipImpl parentProvider)
Initializes a new OperationSetDesktopSharingClientSipImpl.

Parameters:
parentProvider - the SIP ProtocolProviderService implementation which has requested the creation of the new instance and for which the new instance is to provide desktop sharing.
Method Detail

sendKeyboardEvent

public void sendKeyboardEvent(CallPeer callPeer,
                              KeyEvent event)
Send a keyboard notification.

Parameters:
callPeer - CallPeer that will be notified
event - KeyEvent received and that will be send to remote peer

sendMouseEvent

public void sendMouseEvent(CallPeer callPeer,
                           MouseEvent event,
                           Dimension videoPanelSize)
Send a mouse notification for specific "moved" MouseEvent. As controller computer could have smaller desktop that controlled ones, we should take care to send the percentage of point x and point y.

Parameters:
callPeer - CallPeer that will be notified
event - MouseEvent received and that will be send to remote peer
videoPanelSize - size of the panel that contains video

sendMouseEvent

public void sendMouseEvent(CallPeer callPeer,
                           MouseEvent event)
Send a mouse notification.

Parameters:
callPeer - CallPeer that will be notified
event - MouseEvent received and that will be send to remote peer

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.