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

#ifndef __gen_flockISearchManager_h__
#define __gen_flockISearchManager_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
class flockISearchService; /* forward declaration */

class flockISearchListener; /* forward declaration */


/* starting interface:    flockISearchManager */
#define FLOCKISEARCHMANAGER_IID_STR "8a72eb5f-ef48-4931-940c-308dc3268434"

#define FLOCKISEARCHMANAGER_IID \
  {0x8a72eb5f, 0xef48, 0x4931, \
    { 0x94, 0x0c, 0x30, 0x8d, 0xc3, 0x26, 0x84, 0x34 }}

class NS_NO_VTABLE flockISearchManager : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKISEARCHMANAGER_IID)

  /* readonly attribute nsISimpleEnumerator services; */
  NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices) = 0;

  /* readonly attribute nsISimpleEnumerator enabledServices; */
  NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices) = 0;

  /* readonly attribute nsISimpleEnumerator orderedServices; */
  NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices) = 0;

  /* readonly attribute nsISimpleEnumerator searchElsewhereList; */
  NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList) = 0;

  /* void search (in AString aQuery, in PRUint64 aNumResults, in flockISearchListener aListener, in nsIRDFDataSource aDataSource); */
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource) = 0;

  /* boolean isServiceEnabled (in AString aShortName); */
  NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval) = 0;

  /* flockISearchService getServiceFromShortname (in AString aShortName); */
  NS_IMETHOD GetServiceFromShortname(const nsAString & aShortName, flockISearchService **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHMANAGER \
  NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices); \
  NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices); \
  NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices); \
  NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList); \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource); \
  NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval); \
  NS_IMETHOD GetServiceFromShortname(const nsAString & aShortName, flockISearchService **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISEARCHMANAGER(_to) \
  NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices) { return _to GetServices(aServices); } \
  NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices) { return _to GetEnabledServices(aEnabledServices); } \
  NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices) { return _to GetOrderedServices(aOrderedServices); } \
  NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList) { return _to GetSearchElsewhereList(aSearchElsewhereList); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource) { return _to Search(aQuery, aNumResults, aListener, aDataSource); } \
  NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval) { return _to IsServiceEnabled(aShortName, _retval); } \
  NS_IMETHOD GetServiceFromShortname(const nsAString & aShortName, flockISearchService **_retval) { return _to GetServiceFromShortname(aShortName, _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_FLOCKISEARCHMANAGER(_to) \
  NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServices(aServices); } \
  NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabledServices(aEnabledServices); } \
  NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrderedServices(aOrderedServices); } \
  NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchElsewhereList(aSearchElsewhereList); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aQuery, aNumResults, aListener, aDataSource); } \
  NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceEnabled(aShortName, _retval); } \
  NS_IMETHOD GetServiceFromShortname(const nsAString & aShortName, flockISearchService **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceFromShortname(aShortName, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockISearchManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISEARCHMANAGER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute nsISimpleEnumerator services; */
NS_IMETHODIMP _MYCLASS_::GetServices(nsISimpleEnumerator * *aServices)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator enabledServices; */
NS_IMETHODIMP _MYCLASS_::GetEnabledServices(nsISimpleEnumerator * *aEnabledServices)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator orderedServices; */
NS_IMETHODIMP _MYCLASS_::GetOrderedServices(nsISimpleEnumerator * *aOrderedServices)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator searchElsewhereList; */
NS_IMETHODIMP _MYCLASS_::GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void search (in AString aQuery, in PRUint64 aNumResults, in flockISearchListener aListener, in nsIRDFDataSource aDataSource); */
NS_IMETHODIMP _MYCLASS_::Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean isServiceEnabled (in AString aShortName); */
NS_IMETHODIMP _MYCLASS_::IsServiceEnabled(const nsAString & aShortName, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockISearchService getServiceFromShortname (in AString aShortName); */
NS_IMETHODIMP _MYCLASS_::GetServiceFromShortname(const nsAString & aShortName, flockISearchService **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockISearchManager_h__ */
