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

#ifndef __gen_nsIXPCToolsCompiler_h__
#define __gen_nsIXPCToolsCompiler_h__


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

#ifndef __gen_nsILocalFile_h__
#include "nsILocalFile.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:    nsIXPCToolsCompiler */
#define NS_IXPCTOOLSCOMPILER_IID_STR "71151570-e56f-11d3-8f65-0010a4e73d9a"

#define NS_IXPCTOOLSCOMPILER_IID \
  {0x71151570, 0xe56f, 0x11d3, \
    { 0x8f, 0x65, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}

class NS_NO_VTABLE nsIXPCToolsCompiler : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCTOOLSCOMPILER_IID)

  /** 
    * XXX temporary hack because there does not seem to be another scriptable
    * way to get this info.
    */
  /* readonly attribute nsILocalFile binDir; */
  NS_IMETHOD GetBinDir(nsILocalFile * *aBinDir) = 0;

  /* void CompileFile (in nsILocalFile aFile, in PRBool strict); */
  NS_IMETHOD CompileFile(nsILocalFile *aFile, PRBool strict) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCTOOLSCOMPILER \
  NS_IMETHOD GetBinDir(nsILocalFile * *aBinDir); \
  NS_IMETHOD CompileFile(nsILocalFile *aFile, PRBool strict); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCTOOLSCOMPILER(_to) \
  NS_IMETHOD GetBinDir(nsILocalFile * *aBinDir) { return _to GetBinDir(aBinDir); } \
  NS_IMETHOD CompileFile(nsILocalFile *aFile, PRBool strict) { return _to CompileFile(aFile, strict); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCTOOLSCOMPILER(_to) \
  NS_IMETHOD GetBinDir(nsILocalFile * *aBinDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinDir(aBinDir); } \
  NS_IMETHOD CompileFile(nsILocalFile *aFile, PRBool strict) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompileFile(aFile, strict); } 

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

/* Header file */
class nsXPCToolsCompiler : public nsIXPCToolsCompiler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPCTOOLSCOMPILER

  nsXPCToolsCompiler();

private:
  ~nsXPCToolsCompiler();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCToolsCompiler, nsIXPCToolsCompiler)

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

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

/* readonly attribute nsILocalFile binDir; */
NS_IMETHODIMP nsXPCToolsCompiler::GetBinDir(nsILocalFile * *aBinDir)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void CompileFile (in nsILocalFile aFile, in PRBool strict); */
NS_IMETHODIMP nsXPCToolsCompiler::CompileFile(nsILocalFile *aFile, PRBool strict)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define XPCTOOLS_COMPILER_CONTRACTID "xpctools.compiler.1"

#endif /* __gen_nsIXPCToolsCompiler_h__ */
