org.kde.koala
public class KURLDrag extends QUriDrag
UNKNOWN: This class is to be used instead of QUriDrag when using KURL.
Constructor Summary | |
---|---|
protected | KURLDrag(Class dummy) |
KURLDrag(ArrayList urls, QWidget dragSource, String name)
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. | |
KURLDrag(ArrayList urls, QWidget dragSource) | |
KURLDrag(ArrayList urls) |
Method Summary | |
---|---|
static boolean | decode(QMimeSourceInterface e, ArrayList urls)
Convenience method that decodes the contents of e
into a list of KURLs. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
byte[] | encodedData(String mime) |
protected void | finalize() Deletes the wrapped C++ instance |
String | format(int i)
Meta-data to associate with those URLs.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
void | setExportAsText(boolean exp)
By default, KURLDrag also exports the URLs as plain text, for e.g. dropping onto a text editor.
|
static KURL | stringToUrl(String s)
Converts a string used for dragging to a URL. |
static String | urlToString(KURL url)
Converts a URL to a string representation suitable for dragging. |
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.Parameters: urls the list of URLs dragSource the parent of the QObject. Should be set when doing drag-n-drop, but should be 0 when copying to the clipboard name the name of the QObject
UNKNOWN: Constructs an object to drag the list of URLs in urls.
e
into a list of KURLs. Decoding will fail if at least one decoded value
is not a valid KURL.Parameters: e the mime source urls the list of urls will be written here
Returns: true if successful, false otherwise
UNKNOWN: Convenience method that decodes the contents of e
into a list of KURLs.
See Also: TransferJob
UNKNOWN: Meta-data to associate with those URLs.
UNKNOWN: By default, KURLDrag also exports the URLs as plain text, for e.
UNKNOWN: Converts a string used for dragging to a URL.
UNKNOWN: Converts a URL to a string representation suitable for dragging.