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

#ifndef __gen_flockILoggingService_h__
#define __gen_flockILoggingService_h__


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

#ifndef __gen_flockILoggingObserver_h__
#include "flockILoggingObserver.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:    flockILoggingService */
#define FLOCKILOGGINGSERVICE_IID_STR "29cb8824-7fa7-4926-9931-f1be82816722"

#define FLOCKILOGGINGSERVICE_IID \
  {0x29cb8824, 0x7fa7, 0x4926, \
    { 0x99, 0x31, 0xf1, 0xbe, 0x82, 0x81, 0x67, 0x22 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockILoggingService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKILOGGINGSERVICE_IID)

  enum { LEVEL_ALL = 0 };

  enum { LEVEL_DEBUG = 1 };

  enum { LEVEL_INFO = 2 };

  enum { LEVEL_WARN = 3 };

  enum { LEVEL_ERROR = 4 };

  enum { LEVEL_FATAL = 5 };

  enum { LEVEL_OFF = 6 };

  /* void log (in PRInt32 aLevel, in PRInt32 aOverrideLevel, in AString aContext, in AString aMessage); */
  NS_SCRIPTABLE NS_IMETHOD Log(PRInt32 aLevel, PRInt32 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage) = 0;

  /* PRInt32 setLevel (in PRInt32 aLevel); */
  NS_SCRIPTABLE NS_IMETHOD SetLevel(PRInt32 aLevel, PRInt32 *_retval) = 0;

  /* void addObserver (in flockILoggingObserver aObserver); */
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockILoggingObserver *aObserver) = 0;

  /* void removeObserver (in flockILoggingObserver aObserver); */
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockILoggingObserver *aObserver) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockILoggingService, FLOCKILOGGINGSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKILOGGINGSERVICE \
  NS_SCRIPTABLE NS_IMETHOD Log(PRInt32 aLevel, PRInt32 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage); \
  NS_SCRIPTABLE NS_IMETHOD SetLevel(PRInt32 aLevel, PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockILoggingObserver *aObserver); \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockILoggingObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKILOGGINGSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Log(PRInt32 aLevel, PRInt32 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage) { return _to Log(aLevel, aOverrideLevel, aContext, aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetLevel(PRInt32 aLevel, PRInt32 *_retval) { return _to SetLevel(aLevel, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockILoggingObserver *aObserver) { return _to AddObserver(aObserver); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockILoggingObserver *aObserver) { return _to RemoveObserver(aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKILOGGINGSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Log(PRInt32 aLevel, PRInt32 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->Log(aLevel, aOverrideLevel, aContext, aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetLevel(PRInt32 aLevel, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLevel(aLevel, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockILoggingObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockILoggingObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } 

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

/* Header file */
class _MYCLASS_ : public flockILoggingService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKILOGGINGSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void log (in PRInt32 aLevel, in PRInt32 aOverrideLevel, in AString aContext, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::Log(PRInt32 aLevel, PRInt32 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* PRInt32 setLevel (in PRInt32 aLevel); */
NS_IMETHODIMP _MYCLASS_::SetLevel(PRInt32 aLevel, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addObserver (in flockILoggingObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::AddObserver(flockILoggingObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in flockILoggingObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(flockILoggingObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// e8c889a6-f832-4b09-a216-66a7e6178896
#define FLOCK_LOGGINGSERVICE_CID \
{ 0xe8c889a6, 0xf832, 0x4b09, { 0xa2, 0x16, 0x66, 0xa7, 0xe6, 0x17, 0x88, 0x96 } }
#define FLOCK_LOGGINGSERVICE_CLASSNAME "Flock Logging Service"
#define FLOCK_LOGGINGSERVICE_CONTRACTID "@flock.com/logging-service;1"

#endif /* __gen_flockILoggingService_h__ */
