[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: system kioslave and KURL::isLocalFile()
From: Andras Mantia <amantia () kde ! org>
Date: 2005-07-27 9:08:37
Message-ID: 200507271208.37346.amantia () kde ! org
[Download RAW message or body]
On Wednesday 27 July 2005 12:04, Kévin Ottens wrote:
> Le Mercredi 27 Juillet 2005 10:51, Andras Mantia a écrit :
> > This sounds good. But what if we provied KURL::localPath() or
> > something like that? For example we have an URL like
> > "home://myfile". This points to /home/user/myfile.
> > KURL::isLocalFile() would return true, KURL::path() would return
> > "myfile" and KURL::localPath() would return /home/user/myfile. In
> > case of non-local URL localPath == path. Of course this is for
> > KDE4, otherwise it would break applications depending of
> > isLocalFile and path, just as you said.
>
> Well, there's another problem, only the ioslave knows how to resolved
> the KURL to a local path. =)
> Your KURL::localPath() is almost what KFileItem::mostLocalURL() and
> NetAccess::mostLocalURL() do. The difference being they are in kio.
> Having a KURL::localPath() as you propose would introduce a depend
> from kdecore to kio, which is BAD(tm).
>
> But maybe I missed something. =)
No, I'm not that familiar with how kioslaves work. So you might be
right.
> Regards.
>
> PS: Btw, you didn't replied on list (in case it wasn't intentional).
Oh, that was just a mistake.
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic