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

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


/* starting interface:    flockISearchService */
#define FLOCKISEARCHSERVICE_IID_STR "cae52dc1-5a17-4e18-a84d-b52c93a8319a"

#define FLOCKISEARCHSERVICE_IID \
  {0xcae52dc1, 0x5a17, 0x4e18, \
    { 0xa8, 0x4d, 0xb5, 0x2c, 0x93, 0xa8, 0x31, 0x9a }}

class NS_NO_VTABLE flockISearchService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKISEARCHSERVICE_IID)

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

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

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

  /* readonly attribute AString ref; */
  NS_IMETHOD GetRef(nsAString & aRef) = 0;

  /* readonly attribute AString fullResultsUrl; */
  NS_IMETHOD GetFullResultsUrl(nsAString & aFullResultsUrl) = 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;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISEARCHSERVICE \
  NS_IMETHOD GetServiceName(nsAString & aServiceName); \
  NS_IMETHOD GetShortName(nsACString & aShortName); \
  NS_IMETHOD GetIcon(nsAString & aIcon); \
  NS_IMETHOD GetRef(nsAString & aRef); \
  NS_IMETHOD GetFullResultsUrl(nsAString & aFullResultsUrl); \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISEARCHSERVICE(_to) \
  NS_IMETHOD GetServiceName(nsAString & aServiceName) { return _to GetServiceName(aServiceName); } \
  NS_IMETHOD GetShortName(nsACString & aShortName) { return _to GetShortName(aShortName); } \
  NS_IMETHOD GetIcon(nsAString & aIcon) { return _to GetIcon(aIcon); } \
  NS_IMETHOD GetRef(nsAString & aRef) { return _to GetRef(aRef); } \
  NS_IMETHOD GetFullResultsUrl(nsAString & aFullResultsUrl) { return _to GetFullResultsUrl(aFullResultsUrl); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource) { return _to Search(aQuery, aNumResults, aListener, aDataSource); } 

/* 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_IMETHOD GetServiceName(nsAString & aServiceName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceName(aServiceName); } \
  NS_IMETHOD GetShortName(nsACString & aShortName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShortName(aShortName); } \
  NS_IMETHOD GetIcon(nsAString & aIcon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcon(aIcon); } \
  NS_IMETHOD GetRef(nsAString & aRef) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRef(aRef); } \
  NS_IMETHOD GetFullResultsUrl(nsAString & aFullResultsUrl) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullResultsUrl(aFullResultsUrl); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRUint64 aNumResults, flockISearchListener *aListener, nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aQuery, aNumResults, aListener, aDataSource); } 

#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;
}

/* readonly attribute AString ref; */
NS_IMETHODIMP _MYCLASS_::GetRef(nsAString & aRef)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString fullResultsUrl; */
NS_IMETHODIMP _MYCLASS_::GetFullResultsUrl(nsAString & aFullResultsUrl)
{
    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;
}

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


#endif /* __gen_flockISearchService_h__ */
