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

#ifndef __gen_flockIStopWatch_h__
#define __gen_flockIStopWatch_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:    flockIStopWatch */
#define FLOCKISTOPWATCH_IID_STR "5499e4fd-60ab-4c39-aa6d-badd82e4dd39"

#define FLOCKISTOPWATCH_IID \
  {0x5499e4fd, 0x60ab, 0x4c39, \
    { 0xaa, 0x6d, 0xba, 0xdd, 0x82, 0xe4, 0xdd, 0x39 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIStopWatch : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISTOPWATCH_IID)

  /**
   * Starts the stop watch, prints the current time out to the console and
   * stores both the start time and stopWatchName.
   */
  /* void start (in AString nStopWatchName); */
  NS_SCRIPTABLE NS_IMETHOD Start(const nsAString & nStopWatchName) = 0;

  /**
   * Stops the stop watch, prints the current time and the total stop watch
   * time to the console.
   */
  /* void stop (); */
  NS_SCRIPTABLE NS_IMETHOD Stop(void) = 0;

  /**
   * Marks a point for the stop watch, similar to a Lap.  This will print out
   * the current time and the total from start to now and the total from last
   * Mark point to now.
   */
  /* void mark (in AString nMarkName); */
  NS_SCRIPTABLE NS_IMETHOD Mark(const nsAString & nMarkName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIStopWatch, FLOCKISTOPWATCH_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISTOPWATCH \
  NS_SCRIPTABLE NS_IMETHOD Start(const nsAString & nStopWatchName); \
  NS_SCRIPTABLE NS_IMETHOD Stop(void); \
  NS_SCRIPTABLE NS_IMETHOD Mark(const nsAString & nMarkName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISTOPWATCH(_to) \
  NS_SCRIPTABLE NS_IMETHOD Start(const nsAString & nStopWatchName) { return _to Start(nStopWatchName); } \
  NS_SCRIPTABLE NS_IMETHOD Stop(void) { return _to Stop(); } \
  NS_SCRIPTABLE NS_IMETHOD Mark(const nsAString & nMarkName) { return _to Mark(nMarkName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISTOPWATCH(_to) \
  NS_SCRIPTABLE NS_IMETHOD Start(const nsAString & nStopWatchName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(nStopWatchName); } \
  NS_SCRIPTABLE NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  NS_SCRIPTABLE NS_IMETHOD Mark(const nsAString & nMarkName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Mark(nMarkName); } 

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

/* Header file */
class _MYCLASS_ : public flockIStopWatch
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISTOPWATCH

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void start (in AString nStopWatchName); */
NS_IMETHODIMP _MYCLASS_::Start(const nsAString & nStopWatchName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* void mark (in AString nMarkName); */
NS_IMETHODIMP _MYCLASS_::Mark(const nsAString & nMarkName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIStopWatch_h__ */
