michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __inSearchLoop_h__ michael@0: #define __inSearchLoop_h__ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsITimer.h" michael@0: #include "inISearchProcess.h" michael@0: michael@0: class inSearchLoop michael@0: { michael@0: public: michael@0: inSearchLoop(inISearchProcess* aSearchProcess); michael@0: virtual ~inSearchLoop(); michael@0: michael@0: nsresult Start(); michael@0: nsresult Step(); michael@0: nsresult Stop(); michael@0: static void TimerCallback(nsITimer *aTimer, void *aClosure); michael@0: michael@0: protected: michael@0: nsCOMPtr mTimer; michael@0: nsCOMPtr mSearchProcess; michael@0: }; michael@0: michael@0: #endif