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

#ifndef __gen_flockISearchService_h__
#define __gen_flockISearchService_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 flockISearchListener; /* forward declaration */


/* starting interface:    flockISearchService */
#define FLOCKISEARCHSERVICE_IID_STR "ce7d0600-5386-49ab-83fb-4f04ce0a8427"

#define FLOCKISEARCHSERVICE_IID \
  {0xce7d0600, 0x5386, 0x49ab, \
    { 0x83, 0xfb, 0x4f, 0x04, 0xce, 0x0a, 0x84, 0x27 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockISearchService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISEARCHSERVICE_IID)

  /* readonly attribute AString serviceName; */
  NS_SCRIPTABLE NS_IMETHOD GetServiceName(nsAString & aServiceName) = 0;

  /* readonly attribute ACString shortName; */
  NS_SCRIPTABLE NS_IMETHOD GetShortName(nsACString & aShortName) = 0;

  /* readonly attribute AString icon; */
  NS_SCRIPTABLE NS_IMETHOD GetIcon(nsAString & aIcon) = 0;

  /* AString getFullResultsURL (in AString aQuery); */
  NS_SCRIPTABLE NS_IMETHOD GetFullResultsURL(const nsAString & aQuery, nsAString & _retval) = 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;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockISearchService, FLOCKISEARCHSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHSERVICE \
  NS_SCRIPTABLE NS_IMETHOD GetServiceName(nsAString & aServiceName); \
  NS_SCRIPTABLE NS_IMETHOD GetShortName(nsACString & aShortName); \
  NS_SCRIPTABLE NS_IMETHOD GetIcon(nsAString & aIcon); \
  NS_SCRIPTABLE NS_IMETHOD GetFullResultsURL(const nsAString & aQuery, nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISEARCHSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetServiceName(nsAString & aServiceName) { return _to GetServiceName(aServiceName); } \
  NS_SCRIPTABLE NS_IMETHOD GetShortName(nsACString & aShortName) { return _to GetShortName(aShortName); } \
  NS_SCRIPTABLE NS_IMETHOD GetIcon(nsAString & aIcon) { return _to GetIcon(aIcon); } \
  NS_SCRIPTABLE NS_IMETHOD GetFullResultsURL(const nsAString & aQuery, nsAString & _retval) { return _to GetFullResultsURL(aQuery, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener) { return _to Search(aQuery, aNumResults, aSearchListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISEARCHSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetServiceName(nsAString & aServiceName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceName(aServiceName); } \
  NS_SCRIPTABLE NS_IMETHOD GetShortName(nsACString & aShortName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortName(aShortName); } \
  NS_SCRIPTABLE NS_IMETHOD GetIcon(nsAString & aIcon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcon(aIcon); } \
  NS_SCRIPTABLE NS_IMETHOD GetFullResultsURL(const nsAString & aQuery, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullResultsURL(aQuery, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Search(const nsAString & aQuery, PRUint32 aNumResults, flockISearchListener *aSearchListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aQuery, aNumResults, aSearchListener); } 

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

/* Header file */
class _MYCLASS_ : public flockISearchService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISEARCHSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute AString serviceName; */
NS_IMETHODIMP _MYCLASS_::GetServiceName(nsAString & aServiceName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString shortName; */
NS_IMETHODIMP _MYCLASS_::GetShortName(nsACString & aShortName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString icon; */
NS_IMETHODIMP _MYCLASS_::GetIcon(nsAString & aIcon)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getFullResultsURL (in AString aQuery); */
NS_IMETHODIMP _MYCLASS_::GetFullResultsURL(const nsAString & aQuery, nsAString & _retval)
{
    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;
}

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


#endif /* __gen_flockISearchService_h__ */
