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

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

class flockISearchService; /* forward declaration */

class flockISearchListener; /* forward declaration */


/* starting interface:    flockISearchManager */
#define FLOCKISEARCHMANAGER_IID_STR "07368aec-9d34-4d10-a4ba-0788fcca853f"

#define FLOCKISEARCHMANAGER_IID \
  {0x07368aec, 0x9d34, 0x4d10, \
    { 0xa4, 0xba, 0x07, 0x88, 0xfc, 0xca, 0x85, 0x3f }}

class NS_NO_VTABLE NS_SCRIPTABLE flockISearchManager : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISEARCHMANAGER_IID)

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

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

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

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

  /* void search (in AString aQuery, in PRUint32 aNumResults, in flockISearchListener aSearchListener); */
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener) = 0;

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

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

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockISearchManager, FLOCKISEARCHMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHMANAGER \
  NS_SCRIPTABLE NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices); \
  NS_SCRIPTABLE NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices); \
  NS_SCRIPTABLE NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices); \
  NS_SCRIPTABLE NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList); \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener); \
  NS_SCRIPTABLE NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval); \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices) { return _to GetServices(aServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices) { return _to GetEnabledServices(aEnabledServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices) { return _to GetOrderedServices(aOrderedServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList) { return _to GetSearchElsewhereList(aSearchElsewhereList); } \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener) { return _to Search(aQuery, aNumResults, aSearchListener); } \
  NS_SCRIPTABLE NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval) { return _to IsServiceEnabled(aShortName, _retval); } \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetServices(nsISimpleEnumerator * *aServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServices(aServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetEnabledServices(nsISimpleEnumerator * *aEnabledServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabledServices(aEnabledServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetOrderedServices(nsISimpleEnumerator * *aOrderedServices) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrderedServices(aOrderedServices); } \
  NS_SCRIPTABLE NS_IMETHOD GetSearchElsewhereList(nsISimpleEnumerator * *aSearchElsewhereList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchElsewhereList(aSearchElsewhereList); } \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aQuery, aNumResults, aSearchListener); } \
  NS_SCRIPTABLE NS_IMETHOD IsServiceEnabled(const nsAString & aShortName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceEnabled(aShortName, _retval); } \
  NS_SCRIPTABLE 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 PRUint32 aNumResults, in flockISearchListener aSearchListener); */
NS_IMETHODIMP _MYCLASS_::Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener)
{
    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__ */
