KBookmark::List Class
class KBookmark::ListPublic Functions
List() | |
void | populateMimeData(QMimeData *mimeData) const |
Static Public Members
bool | canDecode(const QMimeData *mimeData) |
(since 4.3.2) KBookmark::List | fromMimeData(const QMimeData *mimeData, QDomDocument &parentDocument) |
QStringList | mimeDataTypes() |
Detailed Description
KBookmark::List is a QList that contains bookmarks with a few convenience methods.
Member Function Documentation
List::List()
[static]
bool List::canDecode(const QMimeData *mimeData)
Return true if mimeData contains bookmarks
[static, since 4.3.2]
KBookmark::List List::fromMimeData(const QMimeData *mimeData, QDomDocument &parentDocument)
Extract a list of bookmarks from the contents of mimeData. Decoding will fail if mimeData does not contain any bookmarks.
mimeData the mime data to extract from; cannot be 0
parentDocument pass an empty QDomDocument here, it will be used as container for the bookmarks. You just need to make sure it stays alive longer (or just as long) as the returned bookmarks.
Returns the list of bookmarks
This function was introduced in 4.3.2.
[static]
QStringList List::mimeDataTypes()
Return the list of mimeTypes that can be decoded by fromMimeData
void List::populateMimeData(QMimeData *mimeData) const
Adds this list of bookmark into the given QMimeData.
mimeData the QMimeData instance used to drag or copy this bookmark