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

List:       kfm-devel
Subject:    Re: Setting http-referer for drag&drop.
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-10-01 21:36:37
[Download RAW message or body]

On Lundi 1 Octobre 2001 23:04, Waldo Bastian wrote:
> On Monday 01 October 2001 06:45 am, David Faure wrote:
> > All you need to do, is to set the referrer into the args, it will get used.
> >
> > But this doesn't fix DnD nor "save as" (copyJob doesn't care about
> > urlargs). For DnD: what about a similar QMap (metadata) in a drag object
> > (not necessarily KURLDrag itself... most app don't care about metadata, do
> > they ?). 
> 
> They should if they want to get this stuff right.

Hmm, ok, let me rephrase & rethink that.
There are two kind of "users" of KURLDrag.
The apps that start a drag, and those that get a drop.
When starting a drag, 99% of the applications will NOT be able to set
a referrer (think of a URL in a mail, in a newsgroup, in a kword document, etc.
Those won't have a HTTP referrer to set, nor any other kind of additional information
about the URL). Ok, this simply means KURLDrag::newDrag must allow to
set or not to set the metadata.

But you're right that those that receive a drop should use any information
in the dragobject, to get the download right. That's where KURLDrag has
to provide the appropriate stuff, and it must be easy to pass it off to KIO.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

Configure | About | News | Add a list | Sponsored by KoreLogic