/*
 * 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 "0da79464-f412-4ba3-a9fd-044f3e41b768"

#define FLOCKILOGGINGOBSERVER_IID \
  {0x0da79464, 0xf412, 0x4ba3, \
    { 0xa9, 0xfd, 0x04, 0x4f, 0x3e, 0x41, 0xb7, 0x68 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockILoggingObserver : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKILOGGINGOBSERVER_IID)

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

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockILoggingObserver, FLOCKILOGGINGOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKILOGGINGOBSERVER \
  NS_SCRIPTABLE NS_IMETHOD Emit(PRTime aDate, PRInt32 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_SCRIPTABLE NS_IMETHOD Emit(PRTime aDate, PRInt32 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_SCRIPTABLE NS_IMETHOD Emit(PRTime aDate, PRInt32 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 PRInt32 aLevel, in AString aContext, in AString aMessage); */
NS_IMETHODIMP _MYCLASS_::Emit(PRTime aDate, PRInt32 aLevel, const nsAString & aContext, const nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// 442bdae4-4fdc-4819-8748-c8659e415410
#define FLOCK_LOGGINGCONSOLEWRITER_CID \
{ 0x442bdae4, 0x4fdc, 0x4819, { 0x87, 0x48, 0xc8, 0x65, 0x9e, 0x41, 0x54, 0x10 } }
#define FLOCK_LOGGINGCONSOLEWRITER_CLASSNAME "Flock Logging Console Writer"
#define FLOCK_LOGGINGCONSOLEWRITER_CONTRACTID "@flock.com/logging-console-writer;1"
// b2045e5e-c742-4dbc-8fae-233f428bc9c0
#define FLOCK_LOGGINGFILEWRITER_CID \
{ 0xb2045e5e, 0xc742, 0x4dbc, { 0x8f, 0xae, 0x23, 0x3f, 0x42, 0x8b, 0xc9, 0xc0 } }
#define FLOCK_LOGGINGFILEWRITER_CLASSNAME "Flock Logging File Writer"
#define FLOCK_LOGGINGFILEWRITER_CONTRACTID "@flock.com/logging-file-writer;1"

#endif /* __gen_flockILoggingObserver_h__ */
