Pages
API Documentation
On this page

KFileItemList Class

Network transparent access to files and data. More...

  • Header: #include <KFileItem>
  • CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
    target_link_libraries(mytarget PRIVATE KF6::KIOCore)
  • Inherits: QList

List of all members, including inherited members

Public Functions

Detailed Description

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

Member Function Documentation

KFileItemList::KFileItemList()

Creates an empty list of file items.

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

Creates a new KFileItemList from a QList of file items.

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

Creates a new KFileItemList from an initializer_list of file items.

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())

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())

QList<QUrl> KFileItemList::targetUrlList() const

Returns the list of target URLs that those items represent

QList<QUrl> KFileItemList::urlList() const

Returns the list of URLs that those items represent

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.