src/net/java/sip/communicator/impl/protocol/jabber/OperationSetDesktopSharingServerJabberImpl.java
/**
     * Tells if the peer provided can be remotely controlled by this peer:
     * - The server is able to grant/revoke remote access to its desktop.
     * - The client (the call peer) is able to send mouse and keyboard events.
     *
     * @param callPeer The call peer which may remotely control the shared
     * desktop.
     *
     * @return True if the server and the client are able to respectively grant
     *  remote access and send mouse/keyboard events. False, if one of the call
     *  participant (server or client) is not able to deal with remote controls.
     */
Tells if the peer provided can be remotely controlled by this peer:
- The server is able to grant/revoke remote access to its desktop.
- The client (the call peer) is able to send mouse and keyboard events.

@param callPeer The call peer which may remotely control the shared
desktop.

@return True if the server and the client are able to respectively grant
remote access and send mouse/keyboard events. False, if one of the call
participant (server or client) is not able to deal with remote controls.
Tells if the peer provided can be remotely controlled by this peer : - The server is able to grant / revoke remote access to its desktop . - The client ( the call peer ) is able to send mouse and keyboard events . @param callPeer The call peer which may remotely control the shared desktop . @return True if the server and the client are able to respectively grant remote access and send mouse / keyboard events . False if one of the call participant ( server or client ) is not able to deal with remote controls .
public boolean isRemoteControlAvailable(CallPeer callPeer)
    {
        DiscoverInfo discoverInfo
            = ((CallPeerJabberImpl) callPeer)
                .getDiscoveryInfo();
        return
            parentProvider.getDiscoveryManager().includesFeature(
                    InputEvtIQ.NAMESPACE_SERVER)
                && (discoverInfo != null)
                && discoverInfo.containsFeature(InputEvtIQ.NAMESPACE_CLIENT);
    }
public boolean isRemoteControlAvailable ( CallPeer callPeer ) { DiscoverInfo discoverInfo = ( ( CallPeerJabberImpl ) callPeer ) . getDiscoveryInfo ( ) ; return parentProvider . getDiscoveryManager ( ) . includesFeature ( InputEvtIQ . NAMESPACE_SERVER ) && ( discoverInfo != null ) && discoverInfo . containsFeature ( InputEvtIQ . NAMESPACE_CLIENT ) ; }
Tells if the peer provided can be remotely controlled by this peer:
 - The server is able to grant/revoke remote access to its desktop.
Tells if the peer provided can be remotely controlled by this peer : - The server is able to grant / revoke remote access to its desktop .