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

#ifndef __gen_nsIDOMDOMException_h__
#define __gen_nsIDOMDOMException_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:    nsIDOMDOMException */
#define NS_IDOMDOMEXCEPTION_IID_STR "a6cf910a-15b3-11d2-932e-00805f8add32"

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

class NS_NO_VTABLE nsIDOMDOMException : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOMEXCEPTION_IID)

  enum { INDEX_SIZE_ERR = 1U };

  enum { DOMSTRING_SIZE_ERR = 2U };

  enum { HIERARCHY_REQUEST_ERR = 3U };

  enum { WRONG_DOCUMENT_ERR = 4U };

  enum { INVALID_CHARACTER_ERR = 5U };

  enum { NO_DATA_ALLOWED_ERR = 6U };

  enum { NO_MODIFICATION_ALLOWED_ERR = 7U };

  enum { NOT_FOUND_ERR = 8U };

  enum { NOT_SUPPORTED_ERR = 9U };

  enum { INUSE_ATTRIBUTE_ERR = 10U };

  enum { INVALID_STATE_ERR = 11U };

  enum { SYNTAX_ERR = 12U };

  enum { INVALID_MODIFICATION_ERR = 13U };

  enum { NAMESPACE_ERR = 14U };

  enum { INVALID_ACCESS_ERR = 15U };

  /* readonly attribute unsigned long code; */
  NS_IMETHOD GetCode(PRUint32 *aCode) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMDOMEXCEPTION \
  NS_IMETHOD GetCode(PRUint32 *aCode); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
  NS_IMETHOD GetCode(PRUint32 *aCode) { return _to ## GetCode(aCode); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
  NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetCode(aCode); } 

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

/* Header file */
class nsDOMDOMException : public nsIDOMDOMException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMDOMEXCEPTION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException)

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

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

/* readonly attribute unsigned long code; */
NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint32 *aCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIDOMNSDOMException */
#define NS_IDOMNSDOMEXCEPTION_IID_STR "6c88a337-68d3-4409-b0ed-9df34c562cc1"

#define NS_IDOMNSDOMEXCEPTION_IID \
  {0x6c88a337, 0x68d3, 0x4409, \
    { 0xb0, 0xed, 0x9d, 0xf3, 0x4c, 0x56, 0x2c, 0xc1 }}

class NS_NO_VTABLE nsIDOMNSDOMException : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSDOMEXCEPTION_IID)

  /* readonly attribute unsigned long result; */
  NS_IMETHOD GetResult(PRUint32 *aResult) = 0;

  /* readonly attribute DOMString message; */
  NS_IMETHOD GetMessage(nsAWritableString & aMessage) = 0;

  /* readonly attribute DOMString name; */
  NS_IMETHOD GetName(nsAWritableString & aName) = 0;

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

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMNSDOMEXCEPTION \
  NS_IMETHOD GetResult(PRUint32 *aResult); \
  NS_IMETHOD GetMessage(nsAWritableString & aMessage); \
  NS_IMETHOD GetName(nsAWritableString & aName); \
  NS_IMETHOD ToString(nsAWritableString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMNSDOMEXCEPTION(_to) \
  NS_IMETHOD GetResult(PRUint32 *aResult) { return _to ## GetResult(aResult); } \
  NS_IMETHOD GetMessage(nsAWritableString & aMessage) { return _to ## GetMessage(aMessage); } \
  NS_IMETHOD GetName(nsAWritableString & aName) { return _to ## GetName(aName); } \
  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_NSIDOMNSDOMEXCEPTION(_to) \
  NS_IMETHOD GetResult(PRUint32 *aResult) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetResult(aResult); } \
  NS_IMETHOD GetMessage(nsAWritableString & aMessage) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetMessage(aMessage); } \
  NS_IMETHOD GetName(nsAWritableString & aName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetName(aName); } \
  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 nsDOMNSDOMException : public nsIDOMNSDOMException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMNSDOMEXCEPTION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMNSDOMException, nsIDOMNSDOMException)

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

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

/* readonly attribute unsigned long result; */
NS_IMETHODIMP nsDOMNSDOMException::GetResult(PRUint32 *aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString message; */
NS_IMETHODIMP nsDOMNSDOMException::GetMessage(nsAWritableString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString name; */
NS_IMETHODIMP nsDOMNSDOMException::GetName(nsAWritableString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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


#endif /* __gen_nsIDOMDOMException_h__ */
