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

#ifndef __gen_nsIDOMNSHTMLAnchorElement_h__
#define __gen_nsIDOMNSHTMLAnchorElement_h__


#ifndef __gen_domstubs_h__
#include "domstubs.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:    nsIDOMNSHTMLAnchorElement */
#define NS_IDOMNSHTMLANCHORELEMENT_IID_STR "a6cf911c-15b3-11d2-932e-00805f8add32"

#define NS_IDOMNSHTMLANCHORELEMENT_IID \
  {0xa6cf911c, 0x15b3, 0x11d2, \
    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}

class NS_NO_VTABLE nsIDOMNSHTMLAnchorElement : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLANCHORELEMENT_IID)

  /* readonly attribute DOMString protocol; */
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) = 0;

  /* readonly attribute DOMString host; */
  NS_IMETHOD GetHost(nsAWritableString & aHost) = 0;

  /* readonly attribute DOMString hostname; */
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) = 0;

  /* readonly attribute DOMString pathname; */
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) = 0;

  /* readonly attribute DOMString search; */
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) = 0;

  /* readonly attribute DOMString port; */
  NS_IMETHOD GetPort(nsAWritableString & aPort) = 0;

  /* readonly attribute DOMString hash; */
  NS_IMETHOD GetHash(nsAWritableString & aHash) = 0;

  /* readonly attribute DOMString text; */
  NS_IMETHOD GetText(nsAWritableString & aText) = 0;

  /* DOMString toString (); */
  NS_IMETHOD ToString(nsAWritableString & _retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMNSHTMLANCHORELEMENT \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol); \
  NS_IMETHOD GetHost(nsAWritableString & aHost); \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname); \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname); \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch); \
  NS_IMETHOD GetPort(nsAWritableString & aPort); \
  NS_IMETHOD GetHash(nsAWritableString & aHash); \
  NS_IMETHOD GetText(nsAWritableString & aText); \
  NS_IMETHOD ToString(nsAWritableString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMNSHTMLANCHORELEMENT(_to) \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) { return _to ## GetProtocol(aProtocol); } \
  NS_IMETHOD GetHost(nsAWritableString & aHost) { return _to ## GetHost(aHost); } \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) { return _to ## GetHostname(aHostname); } \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) { return _to ## GetPathname(aPathname); } \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) { return _to ## GetSearch(aSearch); } \
  NS_IMETHOD GetPort(nsAWritableString & aPort) { return _to ## GetPort(aPort); } \
  NS_IMETHOD GetHash(nsAWritableString & aHash) { return _to ## GetHash(aHash); } \
  NS_IMETHOD GetText(nsAWritableString & aText) { return _to ## GetText(aText); } \
  NS_IMETHOD ToString(nsAWritableString & _retval) { return _to ## ToString(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMNSHTMLANCHORELEMENT(_to) \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetProtocol(aProtocol); } \
  NS_IMETHOD GetHost(nsAWritableString & aHost) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHost(aHost); } \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHostname(aHostname); } \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetPathname(aPathname); } \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetSearch(aSearch); } \
  NS_IMETHOD GetPort(nsAWritableString & aPort) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetPort(aPort); } \
  NS_IMETHOD GetHash(nsAWritableString & aHash) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHash(aHash); } \
  NS_IMETHOD GetText(nsAWritableString & aText) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetText(aText); } \
  NS_IMETHOD ToString(nsAWritableString & _retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> ToString(_retval); } 

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

/* Header file */
class nsDOMNSHTMLAnchorElement : public nsIDOMNSHTMLAnchorElement
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMNSHTMLANCHORELEMENT

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMNSHTMLAnchorElement, nsIDOMNSHTMLAnchorElement)

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

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

/* readonly attribute DOMString protocol; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetProtocol(nsAWritableString & aProtocol)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString host; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetHost(nsAWritableString & aHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString hostname; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetHostname(nsAWritableString & aHostname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString pathname; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetPathname(nsAWritableString & aPathname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString search; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetSearch(nsAWritableString & aSearch)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString port; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetPort(nsAWritableString & aPort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString hash; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetHash(nsAWritableString & aHash)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString text; */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::GetText(nsAWritableString & aText)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* DOMString toString (); */
NS_IMETHODIMP nsDOMNSHTMLAnchorElement::ToString(nsAWritableString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMNSHTMLAnchorElement_h__ */
