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

List:       kde-devel
Subject:    Re: Acceptable protocol by KUrl?
From:       Sebastian =?ISO-8859-1?Q?K=FCgler?= <sebas () kde ! org>
Date:       2013-09-06 12:44:16
Message-ID: 1534047.bNTee8oJVK () miro ! vizzzion ! net
[Download RAW message or body]

On Friday, September 06, 2013 11:25:40 Kevin Krammer wrote:
> On Friday, 2013-09-06, Milian Wolff wrote:
> > On Friday 06 September 2013 16:07:12 Franklin Weng wrote:
> > >
> > > 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     ()

Maybe it's also interesting to mention that the protocols are defined by 
plugins, so if you have a KIO slave that understands foobar:/one URLs and you 
install it, that protocol will be supported, so it's quite dynamic.

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

>> 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