/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/mozilla-central-linux-xulrunner/build/dom/indexedDB/nsIIDBErrorEvent.idl
 */

#ifndef __gen_nsIIDBErrorEvent_h__
#define __gen_nsIIDBErrorEvent_h__


#ifndef __gen_nsIIDBEvent_h__
#include "nsIIDBEvent.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:    nsIIDBErrorEvent */
#define NS_IIDBERROREVENT_IID_STR "70420fe2-363a-43fc-a11c-636a809f7598"

#define NS_IIDBERROREVENT_IID \
  {0x70420fe2, 0x363a, 0x43fc, \
    { 0xa1, 0x1c, 0x63, 0x6a, 0x80, 0x9f, 0x75, 0x98 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBErrorEvent : public nsIIDBEvent {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBERROREVENT_IID)

  /**
   * See nsIIDBDatabaseException.idl
   */
  /* attribute unsigned short code; */
  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetCode(PRUint16 aCode) = 0;

  /* attribute DOMString message; */
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessage(const nsAString & aMessage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBErrorEvent, NS_IIDBERROREVENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDBERROREVENT \
  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode); \
  NS_SCRIPTABLE NS_IMETHOD SetCode(PRUint16 aCode); \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage); \
  NS_SCRIPTABLE NS_IMETHOD SetMessage(const nsAString & aMessage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDBERROREVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); } \
  NS_SCRIPTABLE NS_IMETHOD SetCode(PRUint16 aCode) { return _to SetCode(aCode); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) { return _to GetMessage(aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessage(const nsAString & aMessage) { return _to SetMessage(aMessage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDBERROREVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \
  NS_SCRIPTABLE NS_IMETHOD SetCode(PRUint16 aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessage(const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessage(aMessage); } 

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

/* Header file */
class nsIDBErrorEvent : public nsIIDBErrorEvent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIDBERROREVENT

  nsIDBErrorEvent();

private:
  ~nsIDBErrorEvent();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsIDBErrorEvent, nsIIDBErrorEvent)

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

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

/* attribute unsigned short code; */
NS_IMETHODIMP nsIDBErrorEvent::GetCode(PRUint16 *aCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIDBErrorEvent::SetCode(PRUint16 aCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute DOMString message; */
NS_IMETHODIMP nsIDBErrorEvent::GetMessage(nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsIDBErrorEvent::SetMessage(const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIIDBErrorEvent_h__ */
