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

#ifndef __gen_flockISearchEngine_h__
#define __gen_flockISearchEngine_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 nsISearchSubmission; /* forward declaration */


/* starting interface:    flockISearchEngine */
#define FLOCKISEARCHENGINE_IID_STR "fcdbb840-4c1a-4e9d-87da-bab77d92dcc0"

#define FLOCKISEARCHENGINE_IID \
  {0xfcdbb840, 0x4c1a, 0x4e9d, \
    { 0x87, 0xda, 0xba, 0xb7, 0x7d, 0x92, 0xdc, 0xc0 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockISearchEngine : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISEARCHENGINE_IID)

  /* nsISearchSubmission getSubmissionByContext (in AString aData, in AString aResponseType, in AString aContext); */
  NS_SCRIPTABLE NS_IMETHOD GetSubmissionByContext(const nsAString & aData, const nsAString & aResponseType, const nsAString & aContext, nsISearchSubmission **_retval) = 0;

  /* nsISearchSubmission getLiveSubmission (in AString aData, in AString aNumResults, in AString aContext); */
  NS_SCRIPTABLE NS_IMETHOD GetLiveSubmission(const nsAString & aData, const nsAString & aNumResults, const nsAString & aContext, nsISearchSubmission **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockISearchEngine, FLOCKISEARCHENGINE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHENGINE \
  NS_SCRIPTABLE NS_IMETHOD GetSubmissionByContext(const nsAString & aData, const nsAString & aResponseType, const nsAString & aContext, nsISearchSubmission **_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetLiveSubmission(const nsAString & aData, const nsAString & aNumResults, const nsAString & aContext, nsISearchSubmission **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISEARCHENGINE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSubmissionByContext(const nsAString & aData, const nsAString & aResponseType, const nsAString & aContext, nsISearchSubmission **_retval) { return _to GetSubmissionByContext(aData, aResponseType, aContext, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetLiveSubmission(const nsAString & aData, const nsAString & aNumResults, const nsAString & aContext, nsISearchSubmission **_retval) { return _to GetLiveSubmission(aData, aNumResults, aContext, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISEARCHENGINE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSubmissionByContext(const nsAString & aData, const nsAString & aResponseType, const nsAString & aContext, nsISearchSubmission **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubmissionByContext(aData, aResponseType, aContext, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetLiveSubmission(const nsAString & aData, const nsAString & aNumResults, const nsAString & aContext, nsISearchSubmission **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLiveSubmission(aData, aNumResults, aContext, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockISearchEngine
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISEARCHENGINE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* nsISearchSubmission getSubmissionByContext (in AString aData, in AString aResponseType, in AString aContext); */
NS_IMETHODIMP _MYCLASS_::GetSubmissionByContext(const nsAString & aData, const nsAString & aResponseType, const nsAString & aContext, nsISearchSubmission **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISearchSubmission getLiveSubmission (in AString aData, in AString aNumResults, in AString aContext); */
NS_IMETHODIMP _MYCLASS_::GetLiveSubmission(const nsAString & aData, const nsAString & aNumResults, const nsAString & aContext, nsISearchSubmission **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockISearchEngine_h__ */
