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

#ifndef __gen_xpcexception_h__
#define __gen_xpcexception_h__

#include "nsISupports.h"


/* starting interface:    nsIJSStackFrameLocation */
#define NS_IJSSTACKFRAMELOCATION_IID_STR "4ea09430-30f4-11d3-9885-006008962422"

#define NS_IJSSTACKFRAMELOCATION_IID \
  {0x4ea09430, 0x30f4, 0x11d3, \
    { 0x98, 0x85, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}

class NS_NO_VTABLE nsIJSStackFrameLocation : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJSSTACKFRAMELOCATION_IID)

  /* readonly attribute boolean isJSFrame; */
  NS_IMETHOD GetIsJSFrame(PRBool *aIsJSFrame) = 0;

  /* readonly attribute string filename; */
  NS_IMETHOD GetFilename(char * *aFilename) = 0;

  /* readonly attribute string functionName; */
  NS_IMETHOD GetFunctionName(char * *aFunctionName) = 0;

  /* readonly attribute PRInt32 lineNumber; */
  NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) = 0;

  /* readonly attribute nsIJSStackFrameLocation caller; */
  NS_IMETHOD GetCaller(nsIJSStackFrameLocation * *aCaller) = 0;

  /* string toString (); */
  NS_IMETHOD ToString(char **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJSSTACKFRAMELOCATION \
  NS_IMETHOD GetIsJSFrame(PRBool *aIsJSFrame); \
  NS_IMETHOD GetFilename(char * *aFilename); \
  NS_IMETHOD GetFunctionName(char * *aFunctionName); \
  NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber); \
  NS_IMETHOD GetCaller(nsIJSStackFrameLocation * *aCaller); \
  NS_IMETHOD ToString(char **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJSSTACKFRAMELOCATION(_to) \
  NS_IMETHOD GetIsJSFrame(PRBool *aIsJSFrame) { return _to ## GetIsJSFrame(aIsJSFrame); } \
  NS_IMETHOD GetFilename(char * *aFilename) { return _to ## GetFilename(aFilename); } \
  NS_IMETHOD GetFunctionName(char * *aFunctionName) { return _to ## GetFunctionName(aFunctionName); } \
  NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) { return _to ## GetLineNumber(aLineNumber); } \
  NS_IMETHOD GetCaller(nsIJSStackFrameLocation * *aCaller) { return _to ## GetCaller(aCaller); } \
  NS_IMETHOD ToString(char **_retval) { return _to ## ToString(_retval); } 

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

/* Header file */
class nsJSStackFrameLocation : public nsIJSStackFrameLocation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIJSSTACKFRAMELOCATION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsJSStackFrameLocation, nsIJSStackFrameLocation)

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

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

/* readonly attribute boolean isJSFrame; */
NS_IMETHODIMP nsJSStackFrameLocation::GetIsJSFrame(PRBool *aIsJSFrame)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string filename; */
NS_IMETHODIMP nsJSStackFrameLocation::GetFilename(char * *aFilename)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string functionName; */
NS_IMETHODIMP nsJSStackFrameLocation::GetFunctionName(char * *aFunctionName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRInt32 lineNumber; */
NS_IMETHODIMP nsJSStackFrameLocation::GetLineNumber(PRInt32 *aLineNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIJSStackFrameLocation caller; */
NS_IMETHODIMP nsJSStackFrameLocation::GetCaller(nsIJSStackFrameLocation * *aCaller)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string toString (); */
NS_IMETHODIMP nsJSStackFrameLocation::ToString(char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIXPCException */
#define NS_IXPCEXCEPTION_IID_STR "b2a34010-3983-11d3-9888-006008962422"

#define NS_IXPCEXCEPTION_IID \
  {0xb2a34010, 0x3983, 0x11d3, \
    { 0x98, 0x88, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}

class NS_NO_VTABLE nsIXPCException : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCEXCEPTION_IID)

  /* readonly attribute string message; */
  NS_IMETHOD GetMessage(char * *aMessage) = 0;

  /* readonly attribute nsresult result; */
  NS_IMETHOD GetResult(nsresult *aResult) = 0;

  /* readonly attribute string name; */
  NS_IMETHOD GetName(char * *aName) = 0;

  /* readonly attribute nsIJSStackFrameLocation location; */
  NS_IMETHOD GetLocation(nsIJSStackFrameLocation * *aLocation) = 0;

  /* readonly attribute nsISupports data; */
  NS_IMETHOD GetData(nsISupports * *aData) = 0;

  /* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIJSStackFrameLocation aLocation, in nsISupports aData); */
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIJSStackFrameLocation *aLocation, nsISupports *aData) = 0;

  /* string toString (); */
  NS_IMETHOD ToString(char **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCEXCEPTION \
  NS_IMETHOD GetMessage(char * *aMessage); \
  NS_IMETHOD GetResult(nsresult *aResult); \
  NS_IMETHOD GetName(char * *aName); \
  NS_IMETHOD GetLocation(nsIJSStackFrameLocation * *aLocation); \
  NS_IMETHOD GetData(nsISupports * *aData); \
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIJSStackFrameLocation *aLocation, nsISupports *aData); \
  NS_IMETHOD ToString(char **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCEXCEPTION(_to) \
  NS_IMETHOD GetMessage(char * *aMessage) { return _to ## GetMessage(aMessage); } \
  NS_IMETHOD GetResult(nsresult *aResult) { return _to ## GetResult(aResult); } \
  NS_IMETHOD GetName(char * *aName) { return _to ## GetName(aName); } \
  NS_IMETHOD GetLocation(nsIJSStackFrameLocation * *aLocation) { return _to ## GetLocation(aLocation); } \
  NS_IMETHOD GetData(nsISupports * *aData) { return _to ## GetData(aData); } \
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIJSStackFrameLocation *aLocation, nsISupports *aData) { return _to ## Initialize(aMessage, aResult, aName, aLocation, aData); } \
  NS_IMETHOD ToString(char **_retval) { return _to ## ToString(_retval); } 

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

/* Header file */
class nsXPCException : public nsIXPCException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPCEXCEPTION

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCException, nsIXPCException)

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

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

/* readonly attribute string message; */
NS_IMETHODIMP nsXPCException::GetMessage(char * *aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsresult result; */
NS_IMETHODIMP nsXPCException::GetResult(nsresult *aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string name; */
NS_IMETHODIMP nsXPCException::GetName(char * *aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIJSStackFrameLocation location; */
NS_IMETHODIMP nsXPCException::GetLocation(nsIJSStackFrameLocation * *aLocation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISupports data; */
NS_IMETHODIMP nsXPCException::GetData(nsISupports * *aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIJSStackFrameLocation aLocation, in nsISupports aData); */
NS_IMETHODIMP nsXPCException::Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIJSStackFrameLocation *aLocation, nsISupports *aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string toString (); */
NS_IMETHODIMP nsXPCException::ToString(char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/********************************************************/
// {5632BF70-51EC-11d3-9896-006008962422}
#define NS_XPCEXCEPTION_CID  \
{ 0x5632bf70, 0x51ec, 0x11d3, \
    { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }

#endif /* __gen_xpcexception_h__ */
