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

#ifndef __gen_flockISearchListener_h__
#define __gen_flockISearchListener_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
class nsIVariant; /* forward declaration */

class flockISearchService; /* forward declaration */


/* starting interface:    flockISearchListener */
#define FLOCKISEARCHLISTENER_IID_STR "f246bc2b-10d1-4a5a-b25c-fa658750fe85"

#define FLOCKISEARCHLISTENER_IID \
  {0xf246bc2b, 0x10d1, 0x4a5a, \
    { 0xb2, 0x5c, 0xfa, 0x65, 0x87, 0x50, 0xfe, 0x85 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockISearchListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISEARCHLISTENER_IID)

  /* void foundResults (in nsIVariant aResults, in AString aServiceNameSource, in AString aQuery); */
  NS_SCRIPTABLE NS_IMETHOD FoundResults(nsIVariant *aResults, const nsAString & aServiceNameSource, const nsAString & aQuery) = 0;

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

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockISearchListener, FLOCKISEARCHLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHLISTENER \
  NS_SCRIPTABLE NS_IMETHOD FoundResults(nsIVariant *aResults, const nsAString & aServiceNameSource, const nsAString & aQuery); \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD FoundResults(nsIVariant *aResults, const nsAString & aServiceNameSource, const nsAString & aQuery) { return _to FoundResults(aResults, aServiceNameSource, aQuery); } \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD FoundResults(nsIVariant *aResults, const nsAString & aServiceNameSource, const nsAString & aQuery) { return !_to ? NS_ERROR_NULL_POINTER : _to->FoundResults(aResults, aServiceNameSource, aQuery); } \
  NS_SCRIPTABLE 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 nsIVariant aResults, in AString aServiceNameSource, in AString aQuery); */
NS_IMETHODIMP _MYCLASS_::FoundResults(nsIVariant *aResults, 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__ */
