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

#ifndef __gen_nsIXPCToolsProfiler_h__
#define __gen_nsIXPCToolsProfiler_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:    nsIXPCToolsProfiler */
#define NS_IXPCTOOLSPROFILER_IID_STR "09ef19b0-e97a-11d3-8f69-0010a4e73d9a"

#define NS_IXPCTOOLSPROFILER_IID \
  {0x09ef19b0, 0xe97a, 0x11d3, \
    { 0x8f, 0x69, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}

class NS_NO_VTABLE nsIXPCToolsProfiler : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCTOOLSPROFILER_IID)

  /* void start (); */
  NS_IMETHOD Start(void) = 0;

  /* void stop (); */
  NS_IMETHOD Stop(void) = 0;

  /* void clear (); */
  NS_IMETHOD Clear(void) = 0;

  /* void writeResults (in nsILocalFile aFile); */
  NS_IMETHOD WriteResults(nsILocalFile *aFile) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCTOOLSPROFILER \
  NS_IMETHOD Start(void); \
  NS_IMETHOD Stop(void); \
  NS_IMETHOD Clear(void); \
  NS_IMETHOD WriteResults(nsILocalFile *aFile); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCTOOLSPROFILER(_to) \
  NS_IMETHOD Start(void) { return _to Start(); } \
  NS_IMETHOD Stop(void) { return _to Stop(); } \
  NS_IMETHOD Clear(void) { return _to Clear(); } \
  NS_IMETHOD WriteResults(nsILocalFile *aFile) { return _to WriteResults(aFile); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCTOOLSPROFILER(_to) \
  NS_IMETHOD Start(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(); } \
  NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
  NS_IMETHOD WriteResults(nsILocalFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteResults(aFile); } 

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

/* Header file */
class nsXPCToolsProfiler : public nsIXPCToolsProfiler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPCTOOLSPROFILER

  nsXPCToolsProfiler();

private:
  ~nsXPCToolsProfiler();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCToolsProfiler, nsIXPCToolsProfiler)

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

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

/* void start (); */
NS_IMETHODIMP nsXPCToolsProfiler::Start()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void stop (); */
NS_IMETHODIMP nsXPCToolsProfiler::Stop()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void clear (); */
NS_IMETHODIMP nsXPCToolsProfiler::Clear()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void writeResults (in nsILocalFile aFile); */
NS_IMETHODIMP nsXPCToolsProfiler::WriteResults(nsILocalFile *aFile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define XPCTOOLS_PROFILER_CONTRACTID "xpctools.profiler.1"

#endif /* __gen_nsIXPCToolsProfiler_h__ */
