[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 7:14:52
Message-ID: 200507271014.52857.amantia () kde ! org
[Download RAW message or body]


On Wednesday 27 July 2005 08:19, Kévin Ottens wrote:
> Le Mardi 26 Juillet 2005 22:17, Christian Loose a écrit :
> > Now what is the correct way for the above check? Should I use
> > KIO::NetAccess::mostLocalURL(url, 0).isLocalFile() instead?
>
> Yes, or the mostLocalURL() method or KFileItem if you have such
> objects.

Isn't this a bit overkill? Static a file can be expensive and until now 
we could rely that isLocalFile() is a fast method. Can system:// and 
home:// be not a local file? If it cannot be, I think the check in KURL 
should be modified.

Andras
>
> Regards.

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