KUriFilter: port away from KServiceTypeTrader
ClosedPublic

Authored by dfaure on Dec 5 2017, 6:40 PM.

Details

Summary

Instead, locate the desktop files and read them, into a memory cache.
This allows to run the KIO unittests without installing KIO.

Test Plan

kurifiltertest and kurifiltersearchprovideractionstest
now pass with empty XDG_DATA_DIRS.

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure created this revision.Dec 5 2017, 6:40 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 5 2017, 6:40 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dfaure requested review of this revision.Dec 5 2017, 6:40 PM
dfaure updated this revision to Diff 23535.Dec 5 2017, 8:18 PM

Drop the use of KService; broke reading of "Keys" without the servicetype available

apol accepted this revision.Dec 10 2017, 11:40 PM

LGTM

src/urifilters/ikws/searchproviderregistry.h
47

Maybe QVector?

This revision is now accepted and ready to land.Dec 10 2017, 11:40 PM
dfaure closed this revision.Dec 11 2017, 8:02 AM
This revision was automatically updated to reflect the committed changes.