[PATCH] UDS_TARGET_URL and UDS_DISPLAY_NAME
Vlad
vladc6 at yahoo.com
Fri Feb 22 08:07:50 GMT 2008
Hi,
--- nf2 <nf2 at scheinwelt.at> wrote:
> Hi,
>
> This patch adds two new field types to KIO::UDSEntry:
>
> UDS_TARGET_URL: for special file-items pointing to a different
> hierarchy
> (quite useful in remote:// and smb://workgroup,...). The
> filemanegers/-dialogs can open the target-url instantly when you
> click
> on such an item. Therefore you don't need the redirection() trick
> anymore.
>
> UDS_DISPLAY_NAME: this optional field sets m_strText in KFileItem
> (overrides UDS_NAME) to display a label different from the real
> filename.
>
> The first patch also makes KDirOperator switch the Url instantly
> when
> you click on a file-item which has UDS_TARGET_URL set. Therefore
> file-dialogs follow such links appropriately. The second patch
> implements the same feature for Dolphin. Unfortunately I didn't find
> the
> right code in Konqueror yet to add this feature.
I don't think it's wise to implement a URL redirection scheme that
requires every single KDE app to be individually modified in order to
make it aware of the redirection. This introduces a number of
loopholes, such as when a URL is acquired from anywhere except the
file dialog. For example, passing a URL to an application on the
command line will result in that URL remaining untranslated.
Regards,
Vlad
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the kde-core-devel
mailing list