class List |
|
\class List kurl.h KUrl.List is a QList that contains KUrls with a few convenience methods. See also KUrl See also QValueList |
|
Creates an empty List. |
|
Creates a list that contains the given URL as only
item.
url - the url to add. |
|
Creates a list that contains the URLs from the given
list of strings.
list - the list containing the URLs as strings |
|
Creates a list that contains the URLs from the given QList list - the list containing the URLs |
|
|
|
|
|
|
|
Return true if mimeData contains URI data |
|
Extract a list of KUrls from the contents of mimeData.
Decoding will fail if mimeData does not contain any URLs, or if at
least one extracted URL is not valid.
mimeData - the mime data to extract from; cannot be 0 metaData - optional pointer to a map holding the metadata Returns the list of urls |
|
Return the list of mimeTypes that can be decoded by fromMimeData |
|
|
|
|
|
|
|
|
|
Adds URLs data into the given QMimeData.
By default, populateMimeData also exports the URLs as plain text, for e.g. dropping onto a text editor. But in some cases this might not be wanted, e.g. if adding other mime data which provides better plain text data. WARNING: do not call this method multiple times on the same mimedata object, you can add urls only once. But you can add other things, e.g. images, XML... mimeData - the QMimeData instance used to drag or copy this URL metaData - KIO metadata shipped in the mime data, which is used for instance to set a correct HTTP referrer (some websites require it for downloading e.g. an image) flags - set NoTextExport to prevent setting plain/text data into mimeData In such a case, setExportAsText( false ) should be called. |
|
Converts the URLs of this list to a list of strings. Returns the list of strings |