Thread that effectively perform searching a trace. More...
#include <wscout_gui_find_dialog.hh>
Public Types | |
enum | { positionUpdateInterval = 4096 } |
typedef wpl::pcap::indexed_file::const_iterator | const_iterator |
Public Slots | |
void | cancel () |
Signals | |
void | positionChanged (int) |
Public Member Functions | |
FindThread (QObject *parent, const_iterator ¤t_it, const const_iterator &last_it, const std::string &bytes, size_t first, size_t last) | |
~FindThread () | |
void | run () |
bool | canceled () const |
Thread that effectively perform searching a trace.
anonymous enum |
positionUpdateInterval |
Emit |
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] |
void wscout::gui::FindThread::cancel | ( | ) | [inline, slot] |
Tell the thread code to end prematurely and wait for termination.
Referenced by ~FindThread().
bool wscout::gui::FindThread::canceled | ( | ) | const [inline] |
Tell whether the thread was canceled using cancel().
void wscout::gui::FindThread::positionChanged | ( | int | _t1 | ) | [signal] |
Emitted each time positionUpdateInterval
packets are processed.
Referenced by run().
void wscout::gui::FindThread::run | ( | ) |
Thread code. Update current_it
when a result is found.
References positionChanged(), and positionUpdateInterval.