#include <wscout_gui_find_dialog.hh>
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 ¤t_it, const const_iterator &last_it, const std::string &bytes, size_t first, size_t last) | |
~FindThread () | |
void | run () |
bool | canceled () const |
anonymous enum |
positionUpdateInterval |
Emit positionChanged() each time run() process positionUpdateInterval packets. |
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.
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.