← Back to team overview

linuxdcpp-contributors team mailing list archive

Re: [Question #286139]: LinuxDC++ search filter issue.

 

Question #286139 on LinuxDC++ changed:
https://answers.launchpad.net/linuxdcpp/+question/286139

Razzloss proposed the following answer:
I believe the best you can do is send the common parts of your search
strings as simple text separated with spaces to searchManager (see
linux/search.cc around line 483). For example if you want to search for
*.ext you'll just send 'ext' as the text. As you can't really rely (to
my outdated knowledge of the protocol) what you'd get as a response to a
search for *.ext.

After that you'd either filter the responses already in
(linux/search.cc) Search::on(SearchManager:SR...) function before
passing it to the gui part or with the help of searchFilterModel
(Search::searchFilterFunc_gui decides if the result in the model should
be shown in the view or not, if the filter is in use).

(disclaimer, all of this might be complete bs. It has been about 6 years
since I last touched the code).

--RZ

-- 
You received this question notification because your team LinuxDC++
Contributors is an answer contact for LinuxDC++.