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

#ifndef __gen_nsIProxyAutoConfigUtils_h__
#define __gen_nsIProxyAutoConfigUtils_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

/* starting interface:    nsIProxyAutoConfigUtils */
#define NS_IPROXYAUTOCONFIGUTILS_IID_STR "fe3896e8-1dd1-11b2-821f-83b84e1466f6"

#define NS_IPROXYAUTOCONFIGUTILS_IID \
  {0xfe3896e8, 0x1dd1, 0x11b2, \
    { 0x82, 0x1f, 0x83, 0xb8, 0x4e, 0x14, 0x66, 0xf6 }}

class NS_NO_VTABLE nsIProxyAutoConfigUtils : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROXYAUTOCONFIGUTILS_IID)

  /**
    * Hostname based conditions.
    */
  /* void isResolvable (in string host, out PRBool result); */
  NS_IMETHOD IsResolvable(const char *host, PRBool *result) = 0;

  /* void isInNet (in string host, in string pattern, in string mask, out PRBool result); */
  NS_IMETHOD IsInNet(const char *host, const char *pattern, const char *mask, PRBool *result) = 0;

  /**
    * Utility functions. 
    */
  /* void DNSResolve (in string host, out string ipaddress); */
  NS_IMETHOD DNSResolve(const char *host, char **ipaddress) = 0;

  /* void myIPAddress (out string ipaddress); */
  NS_IMETHOD MyIPAddress(char **ipaddress) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROXYAUTOCONFIGUTILS \
  NS_IMETHOD IsResolvable(const char *host, PRBool *result); \
  NS_IMETHOD IsInNet(const char *host, const char *pattern, const char *mask, PRBool *result); \
  NS_IMETHOD DNSResolve(const char *host, char **ipaddress); \
  NS_IMETHOD MyIPAddress(char **ipaddress); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROXYAUTOCONFIGUTILS(_to) \
  NS_IMETHOD IsResolvable(const char *host, PRBool *result) { return _to IsResolvable(host, result); } \
  NS_IMETHOD IsInNet(const char *host, const char *pattern, const char *mask, PRBool *result) { return _to IsInNet(host, pattern, mask, result); } \
  NS_IMETHOD DNSResolve(const char *host, char **ipaddress) { return _to DNSResolve(host, ipaddress); } \
  NS_IMETHOD MyIPAddress(char **ipaddress) { return _to MyIPAddress(ipaddress); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROXYAUTOCONFIGUTILS(_to) \
  NS_IMETHOD IsResolvable(const char *host, PRBool *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsResolvable(host, result); } \
  NS_IMETHOD IsInNet(const char *host, const char *pattern, const char *mask, PRBool *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsInNet(host, pattern, mask, result); } \
  NS_IMETHOD DNSResolve(const char *host, char **ipaddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->DNSResolve(host, ipaddress); } \
  NS_IMETHOD MyIPAddress(char **ipaddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->MyIPAddress(ipaddress); } 

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

/* Header file */
class nsProxyAutoConfigUtils : public nsIProxyAutoConfigUtils
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPROXYAUTOCONFIGUTILS

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsProxyAutoConfigUtils, nsIProxyAutoConfigUtils)

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

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

/* void isResolvable (in string host, out PRBool result); */
NS_IMETHODIMP nsProxyAutoConfigUtils::IsResolvable(const char *host, PRBool *result)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void isInNet (in string host, in string pattern, in string mask, out PRBool result); */
NS_IMETHODIMP nsProxyAutoConfigUtils::IsInNet(const char *host, const char *pattern, const char *mask, PRBool *result)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void DNSResolve (in string host, out string ipaddress); */
NS_IMETHODIMP nsProxyAutoConfigUtils::DNSResolve(const char *host, char **ipaddress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void myIPAddress (out string ipaddress); */
NS_IMETHODIMP nsProxyAutoConfigUtils::MyIPAddress(char **ipaddress)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIProxyAutoConfigUtils_h__ */
