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 (qsizetype size)
 
 QList (qsizetype size, parameter_type value)
 
 QList (std::initializer_list< KFileItem > args)
 
void append (const QList< KFileItem > &value)
 
void append (parameter_type value)
 
void append (QList< KFileItem > &&value)
 
void append (rvalue_ref value)
 
const_reference at (qsizetype i) const const
 
reference back ()
 
const_reference back () const const
 
iterator begin ()
 
const_iterator begin () const const
 
qsizetype capacity () const const
 
const_iterator cbegin () const const
 
const_iterator cend () const const
 
void clear ()
 
const_iterator constBegin () const const
 
const_pointer constData () const const
 
const_iterator constEnd () const const
 
const KFileItemconstFirst () const const
 
const KFileItemconstLast () const const
 
bool contains (const AT &value) const const
 
qsizetype count () const const
 
qsizetype count (const AT &value) const const
 
const_reverse_iterator crbegin () const const
 
const_reverse_iterator crend () const const
 
pointer data ()
 
const_pointer data () const const
 
iterator emplace (const_iterator before, Args &&... args)
 
iterator emplace (qsizetype i, Args &&... args)
 
reference emplace_back (Args &&... args)
 
reference emplaceBack (Args &&... args)
 
bool empty () const const
 
iterator end ()
 
const_iterator end () const const
 
bool endsWith (parameter_type value) const const
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator pos)
 
qsizetype erase (QList< KFileItem > &list, const AT &t)
 
qsizetype erase_if (QList< KFileItem > &list, Predicate pred)
 
QList< KFileItem > & fill (parameter_type value, qsizetype size)
 
KFileItemfirst ()
 
const KFileItemfirst () const const
 
QList< KFileItemfirst (qsizetype n) const const
 
reference front ()
 
const_reference front () const const
 
qsizetype indexOf (const AT &value, qsizetype from) const const
 
iterator insert (const_iterator before, parameter_type value)
 
iterator insert (const_iterator before, qsizetype count, parameter_type value)
 
iterator insert (const_iterator before, rvalue_ref value)
 
iterator insert (qsizetype i, parameter_type value)
 
iterator insert (qsizetype i, qsizetype count, parameter_type value)
 
iterator insert (qsizetype i, rvalue_ref value)
 
bool isEmpty () const const
 
KFileItemlast ()
 
const KFileItemlast () const const
 
QList< KFileItemlast (qsizetype n) const const
 
qsizetype lastIndexOf (const AT &value, qsizetype from) const const
 
qsizetype length () const const
 
QList< KFileItemmid (qsizetype pos, qsizetype length) const const
 
void move (qsizetype from, qsizetype to)
 
bool operator!= (const QList< KFileItem > &other) const const
 
QList< KFileItemoperator+ (const QList< KFileItem > &other) &&
 
QList< KFileItemoperator+ (const QList< KFileItem > &other) const &const
 
QList< KFileItemoperator+ (QList< KFileItem > &&other) &&
 
QList< KFileItemoperator+ (QList< KFileItem > &&other) const &const
 
QList< KFileItem > & operator+= (const QList< KFileItem > &other)
 
QList< KFileItem > & operator+= (parameter_type value)
 
QList< KFileItem > & operator+= (QList< KFileItem > &&other)
 
QList< KFileItem > & operator+= (rvalue_ref value)
 
bool operator< (const QList< KFileItem > &other) const const
 
QList< KFileItem > & operator<< (const QList< KFileItem > &other)
 
QList< KFileItem > & operator<< (parameter_type value)
 
QDataStreamoperator<< (QDataStream &out, const QList< KFileItem > &list)
 
QList< KFileItem > & operator<< (QList< KFileItem > &&other)
 
QList< KFileItem > & operator<< (rvalue_ref value)
 
bool operator<= (const QList< KFileItem > &other) const const
 
QList< KFileItem > & operator= (const QList< KFileItem > &other)
 
QList< KFileItem > & operator= (QList< KFileItem > &&other)
 
QList< KFileItem > & operator= (std::initializer_list< KFileItem > args)
 
bool operator== (const QList< KFileItem > &other) const const
 
bool operator> (const QList< KFileItem > &other) const const
 
bool operator>= (const QList< KFileItem > &other) const const
 
QDataStreamoperator>> (QDataStream &in, QList< KFileItem > &list)
 
reference operator[] (qsizetype i)
 
const_reference operator[] (qsizetype i) const const
 
void pop_back ()
 
void pop_front ()
 
void prepend (parameter_type value)
 
void prepend (rvalue_ref value)
 
void push_back (parameter_type value)
 
void push_back (rvalue_ref value)
 
void push_front (parameter_type value)
 
void push_front (rvalue_ref value)
 
size_t qHash (const QList< KFileItem > &key, size_t seed)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const const
 
void remove (qsizetype i, qsizetype n)
 
qsizetype removeAll (const AT &t)
 
void removeAt (qsizetype i)
 
void removeFirst ()
 
qsizetype removeIf (Predicate pred)
 
void removeLast ()
 
bool removeOne (const AT &t)
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const const
 
void replace (qsizetype i, parameter_type value)
 
void replace (qsizetype i, rvalue_ref value)
 
void reserve (qsizetype size)
 
void resize (qsizetype size)
 
void resize (qsizetype size, parameter_type c)
 
void shrink_to_fit ()
 
qsizetype size () const const
 
QList< KFileItemsliced (qsizetype pos) const const
 
QList< KFileItemsliced (qsizetype pos, qsizetype n) const const
 
void squeeze ()
 
bool startsWith (parameter_type value) const const
 
void swap (QList< KFileItem > &other)
 
void swapItemsAt (qsizetype i, qsizetype j)
 
KFileItem takeAt (qsizetype i)
 
value_type takeFirst ()
 
value_type takeLast ()
 
QList< KFileItemtoList () const const
 
QList< KFileItemtoVector () const const
 
KFileItem value (qsizetype i) const const
 
KFileItem value (qsizetype i, parameter_type defaultValue) const const
 

Additional Inherited Members

- Public Types inherited from QList< KFileItem >
typedef  const_pointer
 
typedef  const_reference
 
typedef  const_reverse_iterator
 
typedef  ConstIterator
 
typedef  difference_type
 
typedef  Iterator
 
typedef  parameter_type
 
typedef  pointer
 
typedef  reference
 
typedef  reverse_iterator
 
typedef  rvalue_ref
 
typedef  size_type
 
typedef  value_type
 
- Static Public Member Functions inherited from QList< KFileItem >
QList< KFileItemfromList (const QList< KFileItem > &list)
 
QList< KFileItemfromVector (const QList< KFileItem > &list)
 

Detailed Description

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

Definition at line 631 of file kfileitem.h.

Constructor & Destructor Documentation

◆ KFileItemList() [1/3]

KFileItemList::KFileItemList ( )

Creates an empty list of file items.

Definition at line 1862 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 1866 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 1871 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 1876 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 1885 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 1905 of file kfileitem.cpp.

◆ urlList()

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

Definition at line 1894 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.