KBookmark::List

Search for usage in LXR

#include <kbookmark.h>

Inheritance diagram for KBookmark::List:

Public Member Functions

void populateMimeData (QMimeData *mimeData) const
 
- Public Member Functions inherited from QList< KBookmark >
 QList (const QList< T > &other)
 
 QList (InputIterator first, InputIterator last)
 
 QList (QList< T > &&other)
 
 QList (std::initializer_list< T > args)
 
void append (const QList< T > &value)
 
void append (const T &value)
 
const T & at (int i) const const
 
T & back ()
 
const T & back () const const
 
QList::iterator begin ()
 
QList::const_iterator begin () const const
 
QList::const_iterator cbegin () const const
 
QList::const_iterator cend () const const
 
void clear ()
 
QList::const_iterator constBegin () const const
 
QList::const_iterator constEnd () const const
 
const T & constFirst () const const
 
const T & constLast () const const
 
bool contains (const T &value) const const
 
int count () const const
 
int count (const T &value) const const
 
QList::const_reverse_iterator crbegin () const const
 
QList::const_reverse_iterator crend () const const
 
bool empty () const const
 
QList::iterator end ()
 
QList::const_iterator end () const const
 
bool endsWith (const T &value) const const
 
QList::iterator erase (QList::iterator begin, QList::iterator end)
 
QList::iterator erase (QList::iterator pos)
 
T & first ()
 
const T & first () const const
 
T & front ()
 
const T & front () const const
 
int indexOf (const T &value, int from) const const
 
void insert (int i, const T &value)
 
QList::iterator insert (QList::iterator before, const T &value)
 
bool isEmpty () const const
 
T & last ()
 
const T & last () const const
 
int lastIndexOf (const T &value, int from) const const
 
int length () const const
 
QList< T > mid (int pos, int length) const const
 
void move (int from, int to)
 
bool operator!= (const QList< T > &other) const const
 
QList< T > operator+ (const QList< T > &other) const const
 
QList< T > & operator+= (const QList< T > &other)
 
QList< T > & operator+= (const T &value)
 
bool operator< (const QList< T > &lhs, const QList< T > &rhs)
 
QList< T > & operator<< (const QList< T > &other)
 
QList< T > & operator<< (const T &value)
 
QDataStreamoperator<< (QDataStream &out, const QList< T > &list)
 
bool operator<= (const QList< T > &lhs, const QList< T > &rhs)
 
QList< T > & operator= (const QList< T > &other)
 
QList< T > & operator= (QList< T > &&other)
 
bool operator== (const QList< T > &other) const const
 
bool operator> (const QList< T > &lhs, const QList< T > &rhs)
 
bool operator>= (const QList< T > &lhs, const QList< T > &rhs)
 
QDataStreamoperator>> (QDataStream &in, QList< T > &list)
 
T & operator[] (int i)
 
const T & operator[] (int i) const const
 
void pop_back ()
 
void pop_front ()
 
void prepend (const T &value)
 
void push_back (const T &value)
 
void push_front (const T &value)
 
uint qHash (const QList< T > &key, uint seed)
 
QList::reverse_iterator rbegin ()
 
QList::const_reverse_iterator rbegin () const const
 
int removeAll (const T &value)
 
void removeAt (int i)
 
void removeFirst ()
 
void removeLast ()
 
bool removeOne (const T &value)
 
QList::reverse_iterator rend ()
 
QList::const_reverse_iterator rend () const const
 
void replace (int i, const T &value)
 
void reserve (int alloc)
 
int size () const const
 
bool startsWith (const T &value) const const
 
void swap (int i, int j)
 
void swap (QList< T > &other)
 
void swapItemsAt (int i, int j)
 
takeAt (int i)
 
takeFirst ()
 
takeLast ()
 
QSet< T > toSet () const const
 
std::list< T > toStdList () const const
 
QVector< T > toVector () const const
 
value (int i) const const
 
value (int i, const T &defaultValue) const const
 

Static Public Member Functions

static bool canDecode (const QMimeData *mimeData)
 
static KBookmark::List fromMimeData (const QMimeData *mimeData, QDomDocument &parentDocument)
 
static QStringList mimeDataTypes ()
 
- Static Public Member Functions inherited from QList< KBookmark >
QList< T > fromSet (const QSet< T > &set)
 
QList< T > fromStdList (const std::list< T > &list)
 
QList< T > fromVector (const QVector< T > &vector)
 

Additional Inherited Members

- Public Attributes inherited from QList< KBookmark >
typedef const_pointer
 
typedef const_reference
 
typedef const_reverse_iterator
 
typedef ConstIterator
 
typedef difference_type
 
typedef Iterator
 
typedef pointer
 
typedef reference
 
typedef reverse_iterator
 
typedef size_type
 
typedef value_type
 

Detailed Description

KBookmark::List is a QList that contains bookmarks with a few convenience methods.

See also
KBookmark
QList

Definition at line 42 of file kbookmark.h.

Constructor & Destructor Documentation

◆ List()

KBookmark::List::List ( )

Definition at line 670 of file kbookmark.cpp.

Member Function Documentation

◆ canDecode()

bool KBookmark::List::canDecode ( const QMimeData * mimeData)
static

Return true if mimeData contains bookmarks.

Definition at line 694 of file kbookmark.cpp.

◆ fromMimeData()

KBookmark::List KBookmark::List::fromMimeData ( const QMimeData * mimeData,
QDomDocument & parentDocument )
static

Extract a list of bookmarks from the contents of mimeData.

Decoding will fail if mimeData does not contain any bookmarks.

Parameters
mimeDatathe mime data to extract from; cannot be 0
parentDocumentpass 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
Since
4.3.2

Definition at line 704 of file kbookmark.cpp.

◆ mimeDataTypes()

QStringList KBookmark::List::mimeDataTypes ( )
static

Return the list of mimeTypes that can be decoded by fromMimeData.

Definition at line 699 of file kbookmark.cpp.

◆ populateMimeData()

void KBookmark::List::populateMimeData ( QMimeData * mimeData) const

Adds this list of bookmark into the given QMimeData.

Parameters
mimeDatathe QMimeData instance used to drag or copy this bookmark

Definition at line 675 of file kbookmark.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:40:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.