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

#ifndef __gen_flockIListener_h__
#define __gen_flockIListener_h__


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

#ifndef __gen_flockIError_h__
#include "flockIError.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:    flockIListener */
#define FLOCKILISTENER_IID_STR "4567e5c0-6789-11db-b0de-0800200c9a66"

#define FLOCKILISTENER_IID \
  {0x4567e5c0, 0x6789, 0x11db, \
    { 0xb0, 0xde, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKILISTENER_IID)

  /* void onSuccess (in nsISupports aSubject, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD OnSuccess(nsISupports *aSubject, const nsAString & aTopic) = 0;

  /* void onError (in flockIError aFlockError, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD OnError(flockIError *aFlockError, const nsAString & aTopic) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIListener, FLOCKILISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKILISTENER \
  NS_SCRIPTABLE NS_IMETHOD OnSuccess(nsISupports *aSubject, const nsAString & aTopic); \
  NS_SCRIPTABLE NS_IMETHOD OnError(flockIError *aFlockError, const nsAString & aTopic); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKILISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSuccess(nsISupports *aSubject, const nsAString & aTopic) { return _to OnSuccess(aSubject, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnError(flockIError *aFlockError, const nsAString & aTopic) { return _to OnError(aFlockError, aTopic); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKILISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSuccess(nsISupports *aSubject, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSuccess(aSubject, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnError(flockIError *aFlockError, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aFlockError, aTopic); } 

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

/* Header file */
class _MYCLASS_ : public flockIListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKILISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onSuccess (in nsISupports aSubject, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnSuccess(nsISupports *aSubject, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in flockIError aFlockError, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnError(flockIError *aFlockError, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIListener_h__ */
