[PATCH] UDS_TARGET_URL and UDS_DISPLAY_NAME

nf2 nf2 at scheinwelt.at
Fri Feb 22 05:38:48 GMT 2008


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.

Regards,

Norbert

Btw: Just for fun ... 
http://www.scheinwelt.at/~norbertf/devel/stuff/dolphin-gvfs-computer.png ;-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_uds_target_url_display_name.patch
Type: text/x-patch
Size: 3796 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080222/3ba16274/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dolphin_follow_uds_target_url.patch
Type: text/x-patch
Size: 1443 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080222/3ba16274/attachment-0001.bin>


More information about the kde-core-devel mailing list