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

#ifndef __gen_flockISearchListener_h__
#define __gen_flockISearchListener_h__


#ifndef __gen_nsIRDFDataSource_h__
#include "nsIRDFDataSource.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:    flockISearchListener */
#define FLOCKISEARCHLISTENER_IID_STR "b7166b83-8e65-42e7-9dad-24a0063aeb11"

#define FLOCKISEARCHLISTENER_IID \
  {0xb7166b83, 0x8e65, 0x42e7, \
    { 0x9d, 0xad, 0x24, 0xa0, 0x06, 0x3a, 0xeb, 0x11 }}

class NS_NO_VTABLE flockISearchListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKISEARCHLISTENER_IID)

  /* void foundResults (in PRUint64 aNumResults, in nsIRDFDataSource aDataSource, in AString aServiceNameSource, in AString aQuery); */
  NS_IMETHOD FoundResults(PRUint64 aNumResults, nsIRDFDataSource *aDataSource, const nsAString & aServiceNameSource, const nsAString & aQuery) = 0;

  /* void searchStarted (in AString aServiceNameSource); */
  NS_IMETHOD SearchStarted(const nsAString & aServiceNameSource) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHLISTENER \
  NS_IMETHOD FoundResults(PRUint64 aNumResults, nsIRDFDataSource *aDataSource, const nsAString & aServiceNameSource, const nsAString & aQuery); \
  NS_IMETHOD SearchStarted(const nsAString & aServiceNameSource); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISEARCHLISTENER(_to) \
  NS_IMETHOD FoundResults(PRUint64 aNumResults, nsIRDFDataSource *aDataSource, const nsAString & aServiceNameSource, const nsAString & aQuery) { return _to FoundResults(aNumResults, aDataSource, aServiceNameSource, aQuery); } \
  NS_IMETHOD SearchStarted(const nsAString & aServiceNameSource) { return _to SearchStarted(aServiceNameSource); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISEARCHLISTENER(_to) \
  NS_IMETHOD FoundResults(PRUint64 aNumResults, nsIRDFDataSource *aDataSource, const nsAString & aServiceNameSource, const nsAString & aQuery) { return !_to ? NS_ERROR_NULL_POINTER : _to->FoundResults(aNumResults, aDataSource, aServiceNameSource, aQuery); } \
  NS_IMETHOD SearchStarted(const nsAString & aServiceNameSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchStarted(aServiceNameSource); } 

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

/* Header file */
class _MYCLASS_ : public flockISearchListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISEARCHLISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void foundResults (in PRUint64 aNumResults, in nsIRDFDataSource aDataSource, in AString aServiceNameSource, in AString aQuery); */
NS_IMETHODIMP _MYCLASS_::FoundResults(PRUint64 aNumResults, nsIRDFDataSource *aDataSource, const nsAString & aServiceNameSource, const nsAString & aQuery)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void searchStarted (in AString aServiceNameSource); */
NS_IMETHODIMP _MYCLASS_::SearchStarted(const nsAString & aServiceNameSource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockISearchListener_h__ */
