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

#ifndef __gen_flockIProfiler_h__
#define __gen_flockIProfiler_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

/* starting interface:    flockIProfiler */
#define FLOCKIPROFILER_IID_STR "4b9a3546-f21a-11db-8314-0800200c9a66"

#define FLOCKIPROFILER_IID \
  {0x4b9a3546, 0xf21a, 0x11db, \
    { 0x83, 0x14, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIProfiler : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIPROFILER_IID)

  /**
   * Logs CPU, Memory and elapsed time data for the specified event type.
   * Time lapse is measured since initialization of the logger component.
   *
   * @param aEventName (in) A string identifier for the type of event.
   * @param aMessage (in) Optional message string to provide additional context
   *        for this observation.
   */
  /* void profile (in AString aEventName, in AString aMessage); */
  NS_SCRIPTABLE NS_IMETHOD Profile(const nsAString & aEventName, const nsAString & aMessage) = 0;

  /**
   * Begins a timer for the specified event type.  Returns a unique event ID,
   * which the caller must later use as an argument to profileEventEnd() in
   * order to complete the observation.
   */
  /* long profileEventStart (in AString aEventName); */
  NS_SCRIPTABLE NS_IMETHOD ProfileEventStart(const nsAString & aEventName, PRInt32 *_retval) = 0;

  /**
   * Logs CPU, Memory and elapsed time data, where time lapse is measured since
   * the call to profileEventStart().
   */
  /* void profileEventEnd (in long aEventID, in AString aMessage); */
  NS_SCRIPTABLE NS_IMETHOD ProfileEventEnd(PRInt32 aEventID, const nsAString & aMessage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIProfiler, FLOCKIPROFILER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIPROFILER \
  NS_SCRIPTABLE NS_IMETHOD Profile(const nsAString & aEventName, const nsAString & aMessage); \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventStart(const nsAString & aEventName, PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventEnd(PRInt32 aEventID, const nsAString & aMessage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIPROFILER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Profile(const nsAString & aEventName, const nsAString & aMessage) { return _to Profile(aEventName, aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventStart(const nsAString & aEventName, PRInt32 *_retval) { return _to ProfileEventStart(aEventName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventEnd(PRInt32 aEventID, const nsAString & aMessage) { return _to ProfileEventEnd(aEventID, 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_FLOCKIPROFILER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Profile(const nsAString & aEventName, const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->Profile(aEventName, aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventStart(const nsAString & aEventName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProfileEventStart(aEventName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileEventEnd(PRInt32 aEventID, const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProfileEventEnd(aEventID, aMessage); } 

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

/* Header file */
class _MYCLASS_ : public flockIProfiler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIPROFILER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIProfiler)

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

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

/* void profile (in AString aEventName, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::Profile(const nsAString & aEventName, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long profileEventStart (in AString aEventName); */
NS_IMETHODIMP _MYCLASS_::ProfileEventStart(const nsAString & aEventName, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void profileEventEnd (in long aEventID, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::ProfileEventEnd(PRInt32 aEventID, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIProfiler_h__ */
