src/net/java/sip/communicator/service/protocol/AbstractOperationSetDesktopSharingClient.java
/**
     * Fires a <tt>RemoteControlGrantedEvent</tt> to all registered listeners.
     *
     * @param peer the <tt>CallPeer</tt>
     */
Fires a RemoteControlGrantedEvent to all registered listeners.
@param peer the CallPeer
Fires a RemoteControlGrantedEvent to all registered listeners . @param peer the CallPeer
public void fireRemoteControlGranted(CallPeer peer)
    {
        RemoteControlListener listener = getListener(peer);
        if(listener != null)
        {
            listener.remoteControlGranted(new RemoteControlGrantedEvent(peer));
        }
        else
        {
            this.removesNullAndRevokedControlPeer(peer.getPeerID());
            synchronized(this.grantedRemoteControlPeers)
            {
                this.grantedRemoteControlPeers.add(peer);
            }
        }
    }
public void fireRemoteControlGranted ( CallPeer peer ) { RemoteControlListener listener = getListener ( peer ) ; if ( listener != null ) { listener . remoteControlGranted ( new RemoteControlGrantedEvent ( peer ) ) ; } else { this . removesNullAndRevokedControlPeer ( peer . getPeerID ( ) ) ; synchronized ( this . grantedRemoteControlPeers ) { this . grantedRemoteControlPeers . add ( peer ) ; } } }
Fires a <tt>RemoteControlGrantedEvent</tt> to all registered listeners.
Fires a <tt > RemoteControlGrantedEvent< / tt > to all registered listeners .
// The UI has not created the listener yet, then we need to store the // information taht this peer has alreayd been granted. // Removes all previous instance of this peer. // Adds the peer to the granted remote control peer list.