/*
 * 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 "0614bd47-ca26-46ae-9ee4-e7452e9c6ead"

#define FLOCKILOGGINGSERVICE_IID \
  {0x0614bd47, 0xca26, 0x46ae, \
    { 0x9e, 0xe4, 0xe7, 0x45, 0x2e, 0x9c, 0x6e, 0xad }}

class NS_NO_VTABLE flockILoggingService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKILOGGINGSERVICE_IID)

  enum { LEVEL_ALL = 0U };

  enum { LEVEL_DEBUG = 1U };

  enum { LEVEL_INFO = 2U };

  enum { LEVEL_WARN = 3U };

  enum { LEVEL_ERROR = 4U };

  enum { LEVEL_FATAL = 5U };

  enum { LEVEL_OFF = 6U };

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

  /* void setLevel (in unsigned short aLevel); */
  NS_IMETHOD SetLevel(PRUint16 aLevel) = 0;

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

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

};

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

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

/* 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_IMETHOD Log(PRUint16 aLevel, PRInt16 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->Log(aLevel, aOverrideLevel, aContext, aMessage); } \
  NS_IMETHOD SetLevel(PRUint16 aLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLevel(aLevel); } \
  NS_IMETHOD AddObserver(flockILoggingObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \
  NS_IMETHOD RemoveObserver(flockILoggingObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } 

#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 PRUint16 aLevel, in PRInt16 aOverrideLevel, in AString aContext, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::Log(PRUint16 aLevel, PRInt16 aOverrideLevel, const nsAString & aContext, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setLevel (in unsigned short aLevel); */
NS_IMETHODIMP _MYCLASS_::SetLevel(PRUint16 aLevel)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

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


#endif /* __gen_flockILoggingService_h__ */
