wscout::gui::FindThread Class Reference

Thread that effectively perform searching a trace. More...

#include <wscout_gui_find_dialog.hh>

List of all members.

Public Types

enum  { positionUpdateInterval = 4096 }
typedef
pcapxx::descriptor::const_iterator 
const_iterator

Public Slots

void cancel ()

Signals

void positionChanged (int)

Public Member Functions

 FindThread (QObject *parent, const_iterator &current_it, const const_iterator &last_it, const std::string &bytes, size_t first, size_t last)
 ~FindThread ()
void run ()
bool canceled () const


Detailed Description

Thread that effectively perform searching a trace.

Member Enumeration Documentation

anonymous enum

Enumerator:
positionUpdateInterval  Emit positionChanged() each time run() process positionUpdateInterval packets.


Constructor & Destructor Documentation

wscout::gui::FindThread::FindThread ( QObject *  parent,
const_iterator &  current_it,
const const_iterator &  last_it,
const std::string &  bytes,
size_t  first,
size_t  last 
) [inline]

Construct the thread.

wscout::gui::FindThread::~FindThread (  )  [inline]

Standard destructor. Call cancel() if the thread is running.


Member Function Documentation

void wscout::gui::FindThread::run (  ) 

Thread code. Update current_it when a result is found.

bool wscout::gui::FindThread::canceled (  )  const [inline]

Tell whether the thread was canceled using cancel().

void wscout::gui::FindThread::cancel (  )  [inline, slot]

Tell the thread code to end prematurely and wait for termination.

void wscout::gui::FindThread::positionChanged ( int   )  [signal]

Emitted each time positionUpdateInterval packets are processed.


The documentation for this class was generated from the following files:
Generated on Wed Jan 30 19:02:27 2008 for WScout by  doxygen 1.5.4