///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using System.Windows.Forms;
namespace JetBrains.Omea.OpenAPI
{
///
/// Interface for registering URL protocol handlers.
///
/// 2.0
public interface IProtocolHandlerManager
{
///
/// Registers new URL protocol handler.
///
/// URL protocol.
/// Friendly name of URL protocol.
/// Delegate that uses as protocol handler for processing requested urls.
void RegisterProtocolHandler( string protocol, string friendlyName, ProtocolHandlerCallback handler );
///
/// Registers new URL protocol handler.
///
/// URL protocol.
/// Friendly name of URL protocol.
/// Delegate that uses as protocol handler for processing requested urls.
/// Delegate that is invoked when protocol is set as default.
void RegisterProtocolHandler( string protocol, string friendlyName, ProtocolHandlerCallback handler, MethodInvoker makeDefaultHandler );
}
///
/// Delegate for the method which is invoked when an URL is opened through Omea.
///
public delegate void ProtocolHandlerCallback( string url );
}