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

#ifndef __gen_flockILoggingObserver_h__
#define __gen_flockILoggingObserver_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:    flockILoggingObserver */
#define FLOCKILOGGINGOBSERVER_IID_STR "18dd5194-6030-4e4d-9da1-c036eb75a0a7"

#define FLOCKILOGGINGOBSERVER_IID \
  {0x18dd5194, 0x6030, 0x4e4d, \
    { 0x9d, 0xa1, 0xc0, 0x36, 0xeb, 0x75, 0xa0, 0xa7 }}

class NS_NO_VTABLE flockILoggingObserver : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKILOGGINGOBSERVER_IID)

  /* void emit (in PRTime aDate, in PRUint16 aLevel, in AString aContext, in AString aMessage); */
  NS_IMETHOD Emit(PRTime aDate, PRUint16 aLevel, const nsAString & aContext, const nsAString & aMessage) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKILOGGINGOBSERVER \
  NS_IMETHOD Emit(PRTime aDate, PRUint16 aLevel, const nsAString & aContext, const nsAString & aMessage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKILOGGINGOBSERVER(_to) \
  NS_IMETHOD Emit(PRTime aDate, PRUint16 aLevel, const nsAString & aContext, const nsAString & aMessage) { return _to Emit(aDate, aLevel, aContext, 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_FLOCKILOGGINGOBSERVER(_to) \
  NS_IMETHOD Emit(PRTime aDate, PRUint16 aLevel, const nsAString & aContext, const nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->Emit(aDate, aLevel, aContext, aMessage); } 

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

/* Header file */
class _MYCLASS_ : public flockILoggingObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKILOGGINGOBSERVER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void emit (in PRTime aDate, in PRUint16 aLevel, in AString aContext, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::Emit(PRTime aDate, PRUint16 aLevel, const nsAString & aContext, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockILoggingObserver_h__ */
