KFileItemList

Search for usage in LXR

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 (InputIterator first, InputIterator last)
 
 QList (QList< KFileItem > &&other)
 
 QList (std::initializer_list< KFileItem > args)
 
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 const
 
int count (const KFileItem &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 KFileItem &value) const const
 
QList::iterator erase (QList::iterator begin, QList::iterator end)
 
QList::iterator erase (QList::iterator pos)
 
KFileItemfirst ()
 
const KFileItemfirst () const const
 
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 KFileItem &value)
 
QList< KFileItem > & operator+= (const QList< KFileItem > &other)
 
bool operator< (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
QList< KFileItem > & operator<< (const KFileItem &value)
 
QList< KFileItem > & operator<< (const QList< KFileItem > &other)
 
QDataStreamoperator<< (QDataStream &out, const QList< KFileItem > &list)
 
bool operator<= (const QList< KFileItem > &lhs, const QList< KFileItem > &rhs)
 
QList< KFileItem > & operator= (const QList< KFileItem > &other)
 
QList< KFileItem > & operator= (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)
 
KFileItemoperator[] (int i)
 
const KFileItemoperator[] (int i) const const
 
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::reverse_iterator rend ()
 
QList::const_reverse_iterator rend () const const
 
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 657 of file kfileitem.h.

Constructor & Destructor Documentation

◆ KFileItemList() [1/3]

KFileItemList::KFileItemList ( )

Creates an empty list of file items.

Definition at line 1705 of file kfileitem.cpp.

◆ KFileItemList() [2/3]

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

Creates a new KFileItemList from a QList of file items.

Definition at line 1709 of file kfileitem.cpp.

◆ KFileItemList() [3/3]

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

Creates a new KFileItemList from an initializer_list of file items.

Since
5.76

Definition at line 1714 of file kfileitem.cpp.

Member Function Documentation

◆ findByName()

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 1719 of file kfileitem.cpp.

◆ findByUrl()

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 1728 of file kfileitem.cpp.

◆ targetUrlList()

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

Definition at line 1748 of file kfileitem.cpp.

◆ urlList()

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

Definition at line 1737 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-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:52:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.