# class List

###

Module | kdecore
Namespace | KUrl
Class | List
Inherits |

\class List kurl.h <KUrl>

KUrl.List is a QList that contains KUrls with a few convenience methods.

See also KUrl

See also QValueList

### methods

- List ( )

  returns ctor

  Creates an empty List.

- List (url)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  url | KUrl |

  Creates a list that contains the given URL as only item.

  url - the url to add.

- List (list)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  list | QStringList |

  Creates a list that contains the URLs from the given list of strings.

  list - the list containing the URLs as strings

- List (list)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  list | QList<KUrl> |

  Creates a list that contains the URLs from the given QList<KUrl>.

  list - the list containing the URLs

- __contains__ (a0)

  returns int
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl |

- __delitem__ (a0)

  returns Nothing
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- __delitem__ (a0)

  returns Nothing
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | SIP_PYSLICE |

- __len__ ( )

  returns int
  before KDE 4.1.0 only

- __setitem__ (a0, a1)

  returns Nothing
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | KUrl |

- __setitem__ (a0, a1)

  returns Nothing
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | SIP_PYSLICE |
  a1 | KUrl.List |

- canDecode (mimeData)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  mimeData | QMimeData |

  Return true if mimeData contains URI data

- fromMimeData (mimeData, metaData)

  returns KUrl.List
  static

  Argument | Type | Default
  --- | --- | ---
  mimeData | QMimeData |
  metaData | KUrl.MetaDataMap | 0

  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

- mimeDataTypes ( )

  returns QStringList
  static

  Return the list of mimeTypes that can be decoded by fromMimeData

- operator != (a0)

  returns bool
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl.List |

- operator * (a0)

  returns KUrl.List
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- operator *= (a0)

  returns KUrl.List
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- operator + (a0)

  returns KUrl.List
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl.List |

- operator += (a0)

  returns KUrl.List
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl.List |

- operator == (a0)

  returns bool
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl.List |

- operator [] (a0)

  returns KUrl
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- operator [] (a0)

  returns KUrl.List
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | SIP_PYSLICE |

- populateMimeData (mimeData, metaData, flags)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  mimeData | QMimeData |
  metaData | KUrl.MetaDataMap | KUrl.MetaDataMap()
  flags | KUrl.MimeDataFlags | KUrl.DefaultMimeDataFlags

  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.

- toStringList ( )

  returns QStringList

  Converts the URLs of this list to a list of strings. Returns the list of strings