dropping content onto Plasma

Marco Martin notmart at gmail.com
Tue Mar 24 16:52:17 CET 2009


On Tuesday 24 March 2009, Sebastian Kügler wrote:
> On Tuesday 24 March 2009 14:30:41 Aaron J. Seigo wrote:
> > On Tuesday 24 March 2009, Marco Martin wrote:
> > > > The above procedure works nicely for local content, such as files.
> > > > URL's are a special kind of draggable content though. As far as I
> > > > understand, a URL doesn't have a mimetype attached, it's either data
> > > > + mimetype (+ other metainformation) or simply a URL.
> > >
> > > hmm i don't see any ways beside on dropevent on the containment trying
> > > to download the url and see what it does contain (for http the header
> > > of the response would suffice, for other urls like akonadi: i have no
> > > idea)
> >
> > for urls like akonadi and other similar special protocols we could offer
> > a "protocol interpreter" that would decide what the content is by looking
> > at the url. obviously, this is pretty hard with something like http, but
> > i hope and imagine that akonadi urls are well formed and can be deduced
> > as to their content by just looking at the url. we don't want to build
> > these into plasma, obviously, so something in kdelibs (KMimeType?) or
> > piggybacking on the applet plugin system might be workable ...
>
> Ow, btw ... where's that code in plasma? I couldn't find it yet...

containment::dropEvent


More information about the Plasma-devel mailing list