|
|
@ -169,8 +169,8 @@ static const HitFlavorInfo hitflavorinfos[] =
|
|
|
|
{ 0, 0, 0, 0}
|
|
|
|
{ 0, 0, 0, 0}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
BeagleSearch::BeagleSearch(int id, TQObject *tqparent, TQString term)
|
|
|
|
BeagleSearch::BeagleSearch(int id, TQObject *parent, TQString term)
|
|
|
|
: id (id), kill_me (false), tqparent (tqparent)
|
|
|
|
: id (id), kill_me (false), parent (parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
query = beagle_query_new ();
|
|
|
|
query = beagle_query_new ();
|
|
|
|
beagle_query_set_max_hits(query, 100);
|
|
|
|
beagle_query_set_max_hits(query, 100);
|
|
|
@ -212,7 +212,7 @@ void BeagleSearch::run()
|
|
|
|
|
|
|
|
|
|
|
|
TQCustomEvent *ev;
|
|
|
|
TQCustomEvent *ev;
|
|
|
|
ev = new TQCustomEvent (KILLME, this);
|
|
|
|
ev = new TQCustomEvent (KILLME, this);
|
|
|
|
tqApp->postEvent(tqparent, ev);
|
|
|
|
tqApp->postEvent(parent, ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BeagleSearch::stopClient()
|
|
|
|
void BeagleSearch::stopClient()
|
|
|
@ -402,7 +402,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
|
|
|
|
client->client_mutex->unlock ();
|
|
|
|
client->client_mutex->unlock ();
|
|
|
|
|
|
|
|
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results);
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results);
|
|
|
|
tqApp->postEvent (client->tqparent, ev);
|
|
|
|
tqApp->postEvent (client->parent, ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client)
|
|
|
|
void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client)
|
|
|
@ -435,7 +435,7 @@ void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtrac
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
|
|
|
|
tqApp->postEvent (client->tqparent, ev);
|
|
|
|
tqApp->postEvent (client->parent, ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BeagleSearch::finished_cb (BeagleQuery */*query*/,
|
|
|
|
void BeagleSearch::finished_cb (BeagleQuery */*query*/,
|
|
|
@ -456,5 +456,5 @@ void BeagleSearch::finished_cb (BeagleQuery */*query*/,
|
|
|
|
g_main_loop_quit (client->main_loop);
|
|
|
|
g_main_loop_quit (client->main_loop);
|
|
|
|
|
|
|
|
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
|
|
|
|
TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
|
|
|
|
tqApp->postEvent (client->tqparent, ev);
|
|
|
|
tqApp->postEvent (client->parent, ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|