/*
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.util.launchutils;

/**
 * The <code>UriDelegationPeer</code> is used as a mechanism to pass arguments from
 * the UriArgManager which resides in "launcher space" to our argument
 * delegation service implementation that lives as an osgi bundle. An instance
 * of this peer is created from within the argument delegation service impl
 * and is registered with the UriArgManager.
 *
 * @author Emil Ivov
 */
public interface ArgDelegationPeer
{
    /**
     * Handles <code>uriArg</code> in whatever way it finds fit.
     *
     * @param uriArg the uri argument that this delegate has to handle.
     */
    public void handleUri(String uriArg);

    /**
     * Called when the user has tried to launch a second instance of
     * SIP Communicator while a first one was already running. A typical
     * implementation of this method would simply bring the application on
     * focus but it may also show an error/information message to the user
     * notifying them that a second instance is not to be launched.
     */
    public void handleConcurrentInvocationRequest();
}
