Add type and preference parameter API to ResourceLocatorUrl
Summary:
This is used by the contact editor for example, but right now with
string-based access.
Reviewers: mlaurent
Reviewed By: mlaurent
Subscribers: mlaurent, kde-pim
Tags: KDE PIM
Differential Revision: https://phabricator.kde.org/D20684