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

#ifndef __gen_flockILuceneIndexer_h__
#define __gen_flockILuceneIndexer_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_flockIHistorySearchService_h__
#include "flockIHistorySearchService.h"
#endif

#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

/* starting interface:    flockILuceneIndexer */
#define FLOCKILUCENEINDEXER_IID_STR "5f2e98a5-469e-4841-a668-f87faf62d514"

#define FLOCKILUCENEINDEXER_IID \
  {0x5f2e98a5, 0x469e, 0x4841, \
    { 0xa6, 0x68, 0xf8, 0x7f, 0xaf, 0x62, 0xd5, 0x14 }}

class NS_NO_VTABLE flockILuceneIndexer : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKILUCENEINDEXER_IID)

  /**
     * Add the document with url @aURL.
     */
  /* void AddDocument (in string aURL); */
  NS_IMETHOD AddDocument(const char *aURL) = 0;

  /**
     * Try to delete the document with url @aURL if its no longer a bookmark
     * or in the history.
     */
  /* boolean TryToDelete (in string aURL); */
  NS_IMETHOD TryToDelete(const char *aURL, PRBool *_retval) = 0;

  /** 
	 * Search the index with the query @aQuery and return at most 
	 * @aMaxResults results to @aListener in @aDataSource.
	 */
  /* nsIRDFDataSource Search (in AString aQuery, in long aMaxResults, in flockIHistorySearchListener aListener); */
  NS_IMETHOD Search(const nsAString & aQuery, PRInt32 aMaxResults, flockIHistorySearchListener *aListener, nsIRDFDataSource **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKILUCENEINDEXER \
  NS_IMETHOD AddDocument(const char *aURL); \
  NS_IMETHOD TryToDelete(const char *aURL, PRBool *_retval); \
  NS_IMETHOD Search(const nsAString & aQuery, PRInt32 aMaxResults, flockIHistorySearchListener *aListener, nsIRDFDataSource **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKILUCENEINDEXER(_to) \
  NS_IMETHOD AddDocument(const char *aURL) { return _to AddDocument(aURL); } \
  NS_IMETHOD TryToDelete(const char *aURL, PRBool *_retval) { return _to TryToDelete(aURL, _retval); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRInt32 aMaxResults, flockIHistorySearchListener *aListener, nsIRDFDataSource **_retval) { return _to Search(aQuery, aMaxResults, aListener, _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_FLOCKILUCENEINDEXER(_to) \
  NS_IMETHOD AddDocument(const char *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDocument(aURL); } \
  NS_IMETHOD TryToDelete(const char *aURL, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->TryToDelete(aURL, _retval); } \
  NS_IMETHOD Search(const nsAString & aQuery, PRInt32 aMaxResults, flockIHistorySearchListener *aListener, nsIRDFDataSource **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aQuery, aMaxResults, aListener, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockILuceneIndexer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKILUCENEINDEXER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void AddDocument (in string aURL); */
NS_IMETHODIMP _MYCLASS_::AddDocument(const char *aURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean TryToDelete (in string aURL); */
NS_IMETHODIMP _MYCLASS_::TryToDelete(const char *aURL, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIRDFDataSource Search (in AString aQuery, in long aMaxResults, in flockIHistorySearchListener aListener); */
NS_IMETHODIMP _MYCLASS_::Search(const nsAString & aQuery, PRInt32 aMaxResults, flockIHistorySearchListener *aListener, nsIRDFDataSource **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockILuceneIndexer_h__ */
