/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIProxyAutoConfig.idl
 */

#ifndef __gen_nsIProxyAutoConfig_h__
#define __gen_nsIProxyAutoConfig_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */

class nsIIOService; /* forward declaration */


/* starting interface:    nsIProxyAutoConfig */
#define NS_IPROXYAUTOCONFIG_IID_STR "26fae72a-1dd2-11b2-9dd9-cb3e0c2c79ba"

#define NS_IPROXYAUTOCONFIG_IID \
  {0x26fae72a, 0x1dd2, 0x11b2, \
    { 0x9d, 0xd9, 0xcb, 0x3e, 0x0c, 0x2c, 0x79, 0xba }}

class NS_NO_VTABLE nsIProxyAutoConfig : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROXYAUTOCONFIG_IID)

  /**
    * Get the proxy for the specified host 
    */
  /* void ProxyForURL (in nsIURI uri, out string host, out long port, out string type); */
  NS_IMETHOD ProxyForURL(nsIURI *uri, char **host, PRInt32 *port, char **type) = 0;

  /**
    * Load the PAC file from the specified URI
    */
  /* void LoadPACFromURL (in nsIURI uri, in nsIIOService ioService); */
  NS_IMETHOD LoadPACFromURL(nsIURI *uri, nsIIOService *ioService) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROXYAUTOCONFIG \
  NS_IMETHOD ProxyForURL(nsIURI *uri, char **host, PRInt32 *port, char **type); \
  NS_IMETHOD LoadPACFromURL(nsIURI *uri, nsIIOService *ioService); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROXYAUTOCONFIG(_to) \
  NS_IMETHOD ProxyForURL(nsIURI *uri, char **host, PRInt32 *port, char **type) { return _to ## ProxyForURL(uri, host, port, type); } \
  NS_IMETHOD LoadPACFromURL(nsIURI *uri, nsIIOService *ioService) { return _to ## LoadPACFromURL(uri, ioService); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROXYAUTOCONFIG(_to) \
  NS_IMETHOD ProxyForURL(nsIURI *uri, char **host, PRInt32 *port, char **type) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ProxyForURL(uri, host, port, type); } \
  NS_IMETHOD LoadPACFromURL(nsIURI *uri, nsIIOService *ioService) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> LoadPACFromURL(uri, ioService); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsProxyAutoConfig : public nsIProxyAutoConfig
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPROXYAUTOCONFIG

  nsProxyAutoConfig();
  virtual ~nsProxyAutoConfig();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsProxyAutoConfig, nsIProxyAutoConfig)

nsProxyAutoConfig::nsProxyAutoConfig()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsProxyAutoConfig::~nsProxyAutoConfig()
{
  /* destructor code */
}

/* void ProxyForURL (in nsIURI uri, out string host, out long port, out string type); */
NS_IMETHODIMP nsProxyAutoConfig::ProxyForURL(nsIURI *uri, char **host, PRInt32 *port, char **type)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void LoadPACFromURL (in nsIURI uri, in nsIIOService ioService); */
NS_IMETHODIMP nsProxyAutoConfig::LoadPACFromURL(nsIURI *uri, nsIIOService *ioService)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define NS_PROXY_AUTO_CONFIG_CID                  \
{ /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */         \
    0x63ac8c66,                                      \
    0x1dd2,                                          \
    0x11b2,                                          \
    {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \
}
#define NS_PROXY_AUTO_CONFIG_CONTRACTID \
    "@mozilla.org/network/proxy_autoconfig;1" 

#endif /* __gen_nsIProxyAutoConfig_h__ */
