On Friday, 2013-09-06, Milian Wolff wrote: > On Friday 06 September 2013 16:07:12 Franklin Weng wrote: > > Hi, > > > > > > Is there a list of protocols (or schemes) accepted by KUrl? > > > > For example, I know that "desktop:/", "trash:/" are acceptable. But > > where are they defined? I searched source codes of kdelibs, kde-runtime > > and kde-workspaces. I only saw examples, and in kfileplacesmodel.cpp > > defined default places using desktop:/, trash:/, remote:/ ... etc. But > > I couldn't find out how it checked if a scheme or protocol is > > acceptable. How does it check? With a list, or...? > > KUrl itself does not filter the protocol, as you could define your own > domain- specific URL protocols.
For checking which protocols are supported by KIO when handed such URLs, check for .protocol files in directories in $ kde4-config --path services or KProtocolInfo::protocols () Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
