KFileItemList

KFileItemList Class Reference

#include <KFileItem>

Inheritance diagram for KFileItemList:

Public Member Functions

 KFileItemList ()
 
 KFileItemList (const QList< KFileItem > &items)
 
 KFileItemList (std::initializer_list< KFileItem > items)
 
KFileItem findByName (const QString &fileName) const
 
KFileItem findByUrl (const QUrl &url) const
 
QList< QUrltargetUrlList () const
 
QList< QUrlurlList () const
 
- Public Member Functions inherited from QList< KFileItem >
 QList (const QList< KFileItem > &other)
 
 QList (std::initializer_list< KFileItem > args)
 
 QList (InputIterator first, InputIterator last)
 
 QList (QList< KFileItem > &&other)
 
void append (const KFileItem &value)
 
void append (const QList< KFileItem > &value)
 
const KFileItemat (int i) const const
 
KFileItemback ()
 
const KFileItemback () 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 KFileItemconstFirst () const const
 
const KFileItemconstLast () const const
 
bool contains (const KFileItem &value) const const
 
int count (const KFileItem &value) const const
 
int count () 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 KFileItem &value) const const
 
QList::iterator erase (QList::iterator pos)
 
QList::iterator erase (QList::iterator begin, QList::iterator end)
 
const KFileItemfirst () const const
 
KFileItemfirst ()
 
KFileItemfront ()
 
const KFileItemfront () const const
 
int indexOf (const KFileItem &value, int from) const const
 
void insert (int i, const KFileItem &value)
 
QList::iterator insert (QList::iterator before, const KFileItem &value)
 
bool isEmpty () const const
 
KFileItemlast ()
 
const KFileItemlast () const const
 
int lastIndexOf (const KFileItem &value, int from) const const
 
int length () const const
 
QList< KFileItemmid (int pos, int length) const const
 
void move (int from, int to)
 
bool operator!= (const QList< KFileItem > &other) const const
 
QList< KFileItemoperator+ (const QList< KFileItem > &other) const const
 
QList< KFileItem > & operator+= (const QList< KFileItem > &other)
 
QList< KFileItem > & operator+= (const KFileItem &value)
 
bool operator< (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
QDataStreamoperator<< (QDataStream &out, const QList< KFileItem > &list)
 
QList< KFileItem > & operator<< (const QList< KFileItem > &other)
 
QList< KFileItem > & operator<< (const KFileItem &value)
 
bool operator<= (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
QList< KFileItem > & operator= (QList< KFileItem > &&other)
 
QList< KFileItem > & operator= (const QList< KFileItem > &other)
 
bool operator== (const QList< KFileItem > &other) const const
 
bool operator> (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
bool operator>= (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
QDataStreamoperator>> (QDataStream &in, QList< KFileItem > &list)
 
const KFileItemoperator[] (int i) const const
 
KFileItemoperator[] (int i)
 
void pop_back ()
 
void pop_front ()
 
void prepend (const KFileItem &value)
 
void push_back (const KFileItem &value)
 
void push_front (const KFileItem &value)
 
uint qHash (const QList< KFileItem > &key, uint seed)
 
QList::reverse_iterator rbegin ()
 
QList::const_reverse_iterator rbegin () const const
 
int removeAll (const KFileItem &value)
 
void removeAt (int i)
 
void removeFirst ()
 
void removeLast ()
 
bool removeOne (const KFileItem &value)
 
QList::const_reverse_iterator rend () const const
 
QList::reverse_iterator rend ()
 
void replace (int i, const KFileItem &value)
 
void reserve (int alloc)
 
int size () const const
 
bool startsWith (const KFileItem &value) const const
 
void swap (int i, int j)
 
void swap (QList< KFileItem > &other)
 
void swapItemsAt (int i, int j)
 
KFileItem takeAt (int i)
 
KFileItem takeFirst ()
 
KFileItem takeLast ()
 
QSet< KFileItemtoSet () const const
 
std::list< KFileItemtoStdList () const const
 
QVector< KFileItemtoVector () const const
 
KFileItem value (int i) const const
 
KFileItem value (int i, const KFileItem &defaultValue) const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QList< KFileItem >
QList< KFileItemfromSet (const QSet< KFileItem > &set)
 
QList< KFileItemfromStdList (const std::list< KFileItem > &list)
 
QList< KFileItemfromVector (const QVector< KFileItem > &vector)
 
- Public Attributes inherited from QList< KFileItem >
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

List of KFileItems, which adds a few helper methods to QList<KFileItem>.

Definition at line 587 of file kfileitem.h.

Constructor & Destructor Documentation

KFileItemList::KFileItemList ( )

Creates an empty list of file items.

Definition at line 1631 of file kfileitem.cpp.

KFileItemList::KFileItemList ( const QList< KFileItem > &  items)

Creates a new KFileItemList from a QList of file items.

Definition at line 1635 of file kfileitem.cpp.

KFileItemList::KFileItemList ( std::initializer_list< KFileItem items)

Creates a new KFileItemList from an initializer_list of file items.

Since
5.76

Definition at line 1640 of file kfileitem.cpp.

Member Function Documentation

KFileItem KFileItemList::findByName ( const QString fileName) const

Find a KFileItem by name and return it.

Returns
the item with the given name, or a null-item if none was found (see KFileItem::isNull())

Definition at line 1645 of file kfileitem.cpp.

KFileItem KFileItemList::findByUrl ( const QUrl url) const

Find a KFileItem by URL and return it.

Returns
the item with the given URL, or a null-item if none was found (see KFileItem::isNull())

Definition at line 1657 of file kfileitem.cpp.

QList< QUrl > KFileItemList::targetUrlList ( ) const
Returns
the list of target URLs that those items represent
Since
4.2

Definition at line 1680 of file kfileitem.cpp.

QList< QUrl > KFileItemList::urlList ( ) const
Returns
the list of URLs that those items represent

Definition at line 1669 of file kfileitem.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 23:02:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.