#include "nsISupports.idl" interface nsIFile; interface nsIDOMNode; [scriptable, uuid(4b086732-359a-483d-bb5a-84030ce1f540)] interface nsILuceneService : nsISupports { /* * Only set this location when testing outside the browser */ attribute nsIFile installLocation; nsIFile indexLocation(in AString indexName); long long parseDateGMT(in AString date); AString formatDateGMT(in long long time); AString formatDateLocal(in long long time); long long parseIndexDateGMT(in AString date); AString formatIndexDateGMT(in long long time); AString filterHTMLDocument(in nsIDOMNode node); }; %{C++ // {c00f9f02-5d14-4268-bcb9-02253732f9ac} #define XPCLUCENESERVICE_CID \ { 0xc00f9f02, 0x5d14, 0x4268, \ { 0xbc, 0xb9, 0x02, 0x25, 0x37, 0x32, 0xf9, 0xac } } #define XPCLUCENESERVICE_CONTRACTID "@skrul.com/xpclucene-service;1" #define XPCLUCENESERVICE_CLASSNAME "XpcLuceneService" %}