//Auto-generated by kalyptus. DO NOT EDIT. package org.trinitydesktop.koala; import org.trinitydesktop.qt.Qt; import org.trinitydesktop.qt.TQMimeSourceInterface; import org.trinitydesktop.qt.QtSupport; import java.util.ArrayList; import org.trinitydesktop.qt.TQMimeSource; import org.trinitydesktop.qt.TQWidget; import org.trinitydesktop.qt.TQUriDrag; /** This class is to be used instead of TQUriDrag when using KURL. The reason is: TQUriDrag (and the XDND/W3C standards) expect URLs to be encoded in UTF-8 (unicode), but KURL uses the current locale by default. The other reasons for using this class are:
urls.
The dragSource
and name
arguments are passed on to TQUriDrag,
and the list of urls is converted to UTF-8 before being passed
to TQUriDrag.
@param urls the list of URLs
@param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
but should be 0 when copying to the clipboard
@param name the name of the TQObject
@short Constructs an object to drag the list of URLs in urls.
*/
public KURLDrag(ArrayList urls, TQWidget dragSource, String name) {
super((Class) null);
newKURLDrag(urls,dragSource,name);
}
private native void newKURLDrag(ArrayList urls, TQWidget dragSource, String name);
public KURLDrag(ArrayList urls, TQWidget dragSource) {
super((Class) null);
newKURLDrag(urls,dragSource);
}
private native void newKURLDrag(ArrayList urls, TQWidget dragSource);
public KURLDrag(ArrayList urls) {
super((Class) null);
newKURLDrag(urls);
}
private native void newKURLDrag(ArrayList urls);
/**
Constructs an object to drag the list of URLs in urls.
This version also includes metadata.
@param urls the list of URLs
@param metaData a map containing meta data
@param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
but should be 0 when copying to the clipboard
@param name the name of the TQObject
@short Constructs an object to drag the list of URLs in urls.
@see #metaData
*/
// KURLDrag* KURLDrag(const KURL::List& arg1,const TQMape
into a list of KURLs. Decoding will fail if at least one decoded value
is not a valid KURL.
@param e the mime source
@param urls the list of urls will be written here
@return true if successful, false otherwise
@short Convenience method that decodes the contents of e
into a list of KURLs.
*/
public static native boolean decode(TQMimeSourceInterface e, ArrayList urls);
/**
Convenience method that decodes the contents of e
into a list of KURLs and a set of metadata. Decoding will fail if
at least one decoded value is not a valid KURL.
You should be using this one, if possible.
@param e the mime source
@param urls the list of urls will be written here
@param metaData the metadata map will be written here
@return true if successful, false otherwise
@short Convenience method that decodes the contents of e
into a list of KURLs and a set of metadata.
*/
// bool decode(const TQMimeSource* arg1,KURL::List& arg2,TQMap