/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIXULBuilderListener.idl
 */

#ifndef __gen_nsIXULBuilderListener_h__
#define __gen_nsIXULBuilderListener_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIXULTemplateBuilder; /* forward declaration */


/* starting interface:    nsIXULBuilderListener */
#define NS_IXULBUILDERLISTENER_IID_STR "ac46be8f-c863-4c23-84a2-d0fcc8dfa9f4"

#define NS_IXULBUILDERLISTENER_IID \
  {0xac46be8f, 0xc863, 0x4c23, \
    { 0x84, 0xa2, 0xd0, 0xfc, 0xc8, 0xdf, 0xa9, 0xf4 }}

class NS_NO_VTABLE nsIXULBuilderListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXULBUILDERLISTENER_IID)

  /* void willRebuild (in nsIXULTemplateBuilder aBuilder); */
  NS_IMETHOD WillRebuild(nsIXULTemplateBuilder *aBuilder) = 0;

  /* void didRebuild (in nsIXULTemplateBuilder aBuilder); */
  NS_IMETHOD DidRebuild(nsIXULTemplateBuilder *aBuilder) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIXULBuilderListener, NS_IXULBUILDERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXULBUILDERLISTENER \
  NS_IMETHOD WillRebuild(nsIXULTemplateBuilder *aBuilder); \
  NS_IMETHOD DidRebuild(nsIXULTemplateBuilder *aBuilder); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXULBUILDERLISTENER(_to) \
  NS_IMETHOD WillRebuild(nsIXULTemplateBuilder *aBuilder) { return _to WillRebuild(aBuilder); } \
  NS_IMETHOD DidRebuild(nsIXULTemplateBuilder *aBuilder) { return _to DidRebuild(aBuilder); } 

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

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

/* Header file */
class nsXULBuilderListener : public nsIXULBuilderListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXULBUILDERLISTENER

  nsXULBuilderListener();

private:
  ~nsXULBuilderListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsXULBuilderListener, nsIXULBuilderListener)

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

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

/* void willRebuild (in nsIXULTemplateBuilder aBuilder); */
NS_IMETHODIMP nsXULBuilderListener::WillRebuild(nsIXULTemplateBuilder *aBuilder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void didRebuild (in nsIXULTemplateBuilder aBuilder); */
NS_IMETHODIMP nsXULBuilderListener::DidRebuild(nsIXULTemplateBuilder *aBuilder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIXULBuilderListener_h__ */
