[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Acceptable protocol by KUrl?
From:       Kevin Krammer <krammer () kde ! org>
Date:       2013-09-06 9:25:40
Message-ID: 201309061125.48751.krammer () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic