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

#ifndef __gen_nsIProxyInfo_h__
#define __gen_nsIProxyInfo_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:    nsIProxyInfo */
#define NS_IPROXYINFO_IID_STR "cefb3b30-e82f-11d8-329c-0004e22243f8"

#define NS_IPROXYINFO_IID \
  {0xcefb3b30, 0xe82f, 0x11d8, \
    { 0x32, 0x9c, 0x00, 0x04, 0xe2, 0x22, 0x43, 0xf8 }}

class NS_NO_VTABLE nsIProxyInfo : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROXYINFO_IID)

  /* [noscript, notxpcom] constCharPtr Host (); */
  NS_IMETHOD_(const char*) Host(void) = 0;

  /* [noscript, notxpcom] PRInt32 Port (); */
  NS_IMETHOD_(PRInt32) Port(void) = 0;

  /* [noscript, notxpcom] constCharPtr Type (); */
  NS_IMETHOD_(const char*) Type(void) = 0;

  /* [noscript, notxpcom] PRUint32 Flags (); */
  NS_IMETHOD_(PRUint32) Flags(void) = 0;

  enum { TRANSPARENT_PROXY_RESOLVES_HOST = 1U };

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROXYINFO \
  NS_IMETHOD_(const char*) Host(void); \
  NS_IMETHOD_(PRInt32) Port(void); \
  NS_IMETHOD_(const char*) Type(void); \
  NS_IMETHOD_(PRUint32) Flags(void); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROXYINFO(_to) \
  NS_IMETHOD_(const char*) Host(void) { return _to Host(); } \
  NS_IMETHOD_(PRInt32) Port(void) { return _to Port(); } \
  NS_IMETHOD_(const char*) Type(void) { return _to Type(); } \
  NS_IMETHOD_(PRUint32) Flags(void) { return _to Flags(); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROXYINFO(_to) \
  NS_IMETHOD_(const char*) Host(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Host(); } \
  NS_IMETHOD_(PRInt32) Port(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Port(); } \
  NS_IMETHOD_(const char*) Type(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Type(); } \
  NS_IMETHOD_(PRUint32) Flags(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Flags(); } \

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

/* Header file */
class nsProxyInfo : public nsIProxyInfo
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPROXYINFO

  nsProxyInfo();

private:
  ~nsProxyInfo();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsProxyInfo, nsIProxyInfo)

nsProxyInfo::nsProxyInfo()
{
  /* member initializers and constructor code */
}

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

/* [noscript, notxpcom] constCharPtr Host (); */
NS_IMETHODIMP_(const char*) nsProxyInfo::Host()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript, notxpcom] PRInt32 Port (); */
NS_IMETHODIMP_(PRInt32) nsProxyInfo::Port()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript, notxpcom] constCharPtr Type (); */
NS_IMETHODIMP_(const char*) nsProxyInfo::Type()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript, notxpcom] PRUint32 Flags (); */
NS_IMETHODIMP_(PRUint32) nsProxyInfo::Flags()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIProxyInfo_h__ */
