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

#ifndef __gen_nsIDOMLocation_h__
#define __gen_nsIDOMLocation_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:    nsIDOMLocation */
#define NS_IDOMLOCATION_IID_STR "a6cf906d-15b3-11d2-932e-00805f8add32"

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

class NS_NO_VTABLE nsIDOMLocation : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLOCATION_IID)

  /* attribute DOMString hash; */
  NS_IMETHOD GetHash(nsAWritableString & aHash) = 0;
  NS_IMETHOD SetHash(const nsAReadableString & aHash) = 0;

  /* attribute DOMString host; */
  NS_IMETHOD GetHost(nsAWritableString & aHost) = 0;
  NS_IMETHOD SetHost(const nsAReadableString & aHost) = 0;

  /* attribute DOMString hostname; */
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) = 0;
  NS_IMETHOD SetHostname(const nsAReadableString & aHostname) = 0;

  /* attribute DOMString href; */
  NS_IMETHOD GetHref(nsAWritableString & aHref) = 0;
  NS_IMETHOD SetHref(const nsAReadableString & aHref) = 0;

  /* attribute DOMString pathname; */
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) = 0;
  NS_IMETHOD SetPathname(const nsAReadableString & aPathname) = 0;

  /* attribute DOMString port; */
  NS_IMETHOD GetPort(nsAWritableString & aPort) = 0;
  NS_IMETHOD SetPort(const nsAReadableString & aPort) = 0;

  /* attribute DOMString protocol; */
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) = 0;
  NS_IMETHOD SetProtocol(const nsAReadableString & aProtocol) = 0;

  /* attribute DOMString search; */
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) = 0;
  NS_IMETHOD SetSearch(const nsAReadableString & aSearch) = 0;

  /* [noscript] void reload (in boolean forceget); */
  NS_IMETHOD Reload(PRBool forceget) = 0;

  /* void replace (in DOMString url); */
  NS_IMETHOD Replace(const nsAReadableString & url) = 0;

  /* void assign (in DOMString url); */
  NS_IMETHOD Assign(const nsAReadableString & url) = 0;

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

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMLOCATION \
  NS_IMETHOD GetHash(nsAWritableString & aHash); \
  NS_IMETHOD SetHash(const nsAReadableString & aHash); \
  NS_IMETHOD GetHost(nsAWritableString & aHost); \
  NS_IMETHOD SetHost(const nsAReadableString & aHost); \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname); \
  NS_IMETHOD SetHostname(const nsAReadableString & aHostname); \
  NS_IMETHOD GetHref(nsAWritableString & aHref); \
  NS_IMETHOD SetHref(const nsAReadableString & aHref); \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname); \
  NS_IMETHOD SetPathname(const nsAReadableString & aPathname); \
  NS_IMETHOD GetPort(nsAWritableString & aPort); \
  NS_IMETHOD SetPort(const nsAReadableString & aPort); \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol); \
  NS_IMETHOD SetProtocol(const nsAReadableString & aProtocol); \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch); \
  NS_IMETHOD SetSearch(const nsAReadableString & aSearch); \
  NS_IMETHOD Reload(PRBool forceget); \
  NS_IMETHOD Replace(const nsAReadableString & url); \
  NS_IMETHOD Assign(const nsAReadableString & url); \
  NS_IMETHOD ToString(nsAWritableString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMLOCATION(_to) \
  NS_IMETHOD GetHash(nsAWritableString & aHash) { return _to ## GetHash(aHash); } \
  NS_IMETHOD SetHash(const nsAReadableString & aHash) { return _to ## SetHash(aHash); } \
  NS_IMETHOD GetHost(nsAWritableString & aHost) { return _to ## GetHost(aHost); } \
  NS_IMETHOD SetHost(const nsAReadableString & aHost) { return _to ## SetHost(aHost); } \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) { return _to ## GetHostname(aHostname); } \
  NS_IMETHOD SetHostname(const nsAReadableString & aHostname) { return _to ## SetHostname(aHostname); } \
  NS_IMETHOD GetHref(nsAWritableString & aHref) { return _to ## GetHref(aHref); } \
  NS_IMETHOD SetHref(const nsAReadableString & aHref) { return _to ## SetHref(aHref); } \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) { return _to ## GetPathname(aPathname); } \
  NS_IMETHOD SetPathname(const nsAReadableString & aPathname) { return _to ## SetPathname(aPathname); } \
  NS_IMETHOD GetPort(nsAWritableString & aPort) { return _to ## GetPort(aPort); } \
  NS_IMETHOD SetPort(const nsAReadableString & aPort) { return _to ## SetPort(aPort); } \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) { return _to ## GetProtocol(aProtocol); } \
  NS_IMETHOD SetProtocol(const nsAReadableString & aProtocol) { return _to ## SetProtocol(aProtocol); } \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) { return _to ## GetSearch(aSearch); } \
  NS_IMETHOD SetSearch(const nsAReadableString & aSearch) { return _to ## SetSearch(aSearch); } \
  NS_IMETHOD Reload(PRBool forceget) { return _to ## Reload(forceget); } \
  NS_IMETHOD Replace(const nsAReadableString & url) { return _to ## Replace(url); } \
  NS_IMETHOD Assign(const nsAReadableString & url) { return _to ## Assign(url); } \
  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_NSIDOMLOCATION(_to) \
  NS_IMETHOD GetHash(nsAWritableString & aHash) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHash(aHash); } \
  NS_IMETHOD SetHash(const nsAReadableString & aHash) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetHash(aHash); } \
  NS_IMETHOD GetHost(nsAWritableString & aHost) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHost(aHost); } \
  NS_IMETHOD SetHost(const nsAReadableString & aHost) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetHost(aHost); } \
  NS_IMETHOD GetHostname(nsAWritableString & aHostname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHostname(aHostname); } \
  NS_IMETHOD SetHostname(const nsAReadableString & aHostname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetHostname(aHostname); } \
  NS_IMETHOD GetHref(nsAWritableString & aHref) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetHref(aHref); } \
  NS_IMETHOD SetHref(const nsAReadableString & aHref) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetHref(aHref); } \
  NS_IMETHOD GetPathname(nsAWritableString & aPathname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetPathname(aPathname); } \
  NS_IMETHOD SetPathname(const nsAReadableString & aPathname) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetPathname(aPathname); } \
  NS_IMETHOD GetPort(nsAWritableString & aPort) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetPort(aPort); } \
  NS_IMETHOD SetPort(const nsAReadableString & aPort) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetPort(aPort); } \
  NS_IMETHOD GetProtocol(nsAWritableString & aProtocol) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetProtocol(aProtocol); } \
  NS_IMETHOD SetProtocol(const nsAReadableString & aProtocol) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetProtocol(aProtocol); } \
  NS_IMETHOD GetSearch(nsAWritableString & aSearch) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetSearch(aSearch); } \
  NS_IMETHOD SetSearch(const nsAReadableString & aSearch) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetSearch(aSearch); } \
  NS_IMETHOD Reload(PRBool forceget) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Reload(forceget); } \
  NS_IMETHOD Replace(const nsAReadableString & url) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Replace(url); } \
  NS_IMETHOD Assign(const nsAReadableString & url) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Assign(url); } \
  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 nsDOMLocation : public nsIDOMLocation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMLOCATION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMLocation, nsIDOMLocation)

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

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

/* attribute DOMString hash; */
NS_IMETHODIMP nsDOMLocation::GetHash(nsAWritableString & aHash)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetHash(const nsAReadableString & aHash)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString host; */
NS_IMETHODIMP nsDOMLocation::GetHost(nsAWritableString & aHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetHost(const nsAReadableString & aHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString hostname; */
NS_IMETHODIMP nsDOMLocation::GetHostname(nsAWritableString & aHostname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetHostname(const nsAReadableString & aHostname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString href; */
NS_IMETHODIMP nsDOMLocation::GetHref(nsAWritableString & aHref)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetHref(const nsAReadableString & aHref)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString pathname; */
NS_IMETHODIMP nsDOMLocation::GetPathname(nsAWritableString & aPathname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetPathname(const nsAReadableString & aPathname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString port; */
NS_IMETHODIMP nsDOMLocation::GetPort(nsAWritableString & aPort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetPort(const nsAReadableString & aPort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString protocol; */
NS_IMETHODIMP nsDOMLocation::GetProtocol(nsAWritableString & aProtocol)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetProtocol(const nsAReadableString & aProtocol)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString search; */
NS_IMETHODIMP nsDOMLocation::GetSearch(nsAWritableString & aSearch)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMLocation::SetSearch(const nsAReadableString & aSearch)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void reload (in boolean forceget); */
NS_IMETHODIMP nsDOMLocation::Reload(PRBool forceget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void replace (in DOMString url); */
NS_IMETHODIMP nsDOMLocation::Replace(const nsAReadableString & url)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void assign (in DOMString url); */
NS_IMETHODIMP nsDOMLocation::Assign(const nsAReadableString & url)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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


#endif /* __gen_nsIDOMLocation_h__ */
