class KURLDrag

This class is to be used instead of QUriDrag when using KURL. More...

Definition#include <kurldrag.h>
InheritsQUriDrag (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Static Methods

Protected Methods


Detailed Description

This class is to be used instead of QUriDrag when using KURL. The reason is : QUriDrag (and the XDND/W3C standards) expect URLs to be encoded in UTF-8 (unicode), but KURL uses the current locale by default. The other reason for using this class is that it exports text/plain (for dropping/pasting into lineedits, mails etc.)

To create a drag object, use KURLDrag::newDrag with a list of KURLs. To decode a drop, use KURLDrag::decode or QUriDrag::decodeLocalFiles.

QUriDrag *  newDrag ( const KURL::List &urls, QWidget* dragSource = 0, const char * name = 0 )

newDrag

[static]

Constructs an object to drag the list of URLs in urls. The dragSource and name arguments are passed on to QUriDrag, and the list of urls is converted to UTF-8 before being passed to QUriDrag.

bool  decode ( const QMimeSource *e, KURL::List &urls )

decode

[static]

Convenience method that decodes the contents of e into a list of KURLs.

Reimplemented from QUriDrag.

 KURLDrag ( const QStrList & urls, QWidget * dragSource, const char* name )

KURLDrag

[protected]

Protected constructor - use newDrag

 KURLDrag ()

KURLDrag

[protected]

const char *  format ( int i )

format

[protected const virtual]

QByteArray  encodedData ( const char* mime )

encodedData

[protected const virtual]


Generated by: dfaure on kde.faure.org on Thu Jan 17 22:15:01 2002, using kdoc 2.0a53.