/*
 * 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 "da18e5c0-49b3-11db-b0de-0800200c9a66"

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

class NS_NO_VTABLE flockIListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKILISTENER_IID)

  /* void onStart (in nsISupports aSubject, in AString aTopic); */
  NS_IMETHOD OnStart(nsISupports *aSubject, const nsAString & aTopic) = 0;

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

  /* void onError (in nsISupports aSubject, in AString aTopic, in flockIError aError); */
  NS_IMETHOD OnError(nsISupports *aSubject, const nsAString & aTopic, flockIError *aError) = 0;

};

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

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

/* 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_IMETHOD OnStart(nsISupports *aSubject, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStart(aSubject, aTopic); } \
  NS_IMETHOD OnSuccess(nsISupports *aSubject, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSuccess(aSubject, aTopic); } \
  NS_IMETHOD OnError(nsISupports *aSubject, const nsAString & aTopic, flockIError *aError) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSubject, aTopic, aError); } 

#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 onStart (in nsISupports aSubject, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnStart(nsISupports *aSubject, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* 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 nsISupports aSubject, in AString aTopic, in flockIError aError); */
NS_IMETHODIMP _MYCLASS_::OnError(nsISupports *aSubject, const nsAString & aTopic, flockIError *aError)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIListener_h__ */
