Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Attributes
inSearchLoop Class Reference

#include <inSearchLoop.h>

Collaboration diagram for inSearchLoop:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 inSearchLoop (inISearchProcess *aSearchProcess)
virtual ~inSearchLoop ()
nsresult Start ()
nsresult Step ()
nsresult Stop ()

Static Public Member Functions

static void TimerCallback (nsITimer *aTimer, void *aClosure)

Protected Attributes

nsCOMPtr< nsITimermTimer
nsCOMPtr< inISearchProcessmSearchProcess

Detailed Description

Definition at line 45 of file inSearchLoop.h.


Constructor & Destructor Documentation

Definition at line 44 of file inSearchLoop.cpp.

{
  mSearchProcess = aSearchProcess;
  nsresult rv;
  mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
}

Here is the call graph for this function:

Definition at line 51 of file inSearchLoop.cpp.

{
}

Member Function Documentation

Definition at line 59 of file inSearchLoop.cpp.

{
  mTimer->InitWithFuncCallback(inSearchLoop::TimerCallback, (void*)this, 0, nsITimer::TYPE_REPEATING_SLACK);

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 67 of file inSearchLoop.cpp.

{
  PRBool done = PR_FALSE;
  mSearchProcess->SearchStep(&done);

  if (done)
    Stop();

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 79 of file inSearchLoop.cpp.

{
  mTimer->Cancel();
  
  return NS_OK;
}

Here is the caller graph for this function:

void inSearchLoop::TimerCallback ( nsITimer aTimer,
void aClosure 
) [static]

Definition at line 87 of file inSearchLoop.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 58 of file inSearchLoop.h.

Definition at line 57 of file inSearchLoop.h.


The documentation for this class was generated from the following files: