• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions | List of all members
KFileItemList Class Reference

#include <kfileitem.h>

Inheritance diagram for KFileItemList:
QList< KFileItem >

Public Member Functions

 KFileItemList ()
 
 KFileItemList (const QList< KFileItem > &items)
 
KFileItem findByName (const QString &fileName) const
 
KFileItem findByUrl (const KUrl &url) const
 
KUrl::List targetUrlList () const
 
KUrl::List urlList () const
 

Detailed Description

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

Definition at line 674 of file kfileitem.h.

Constructor & Destructor Documentation

◆ KFileItemList() [1/2]

KFileItemList::KFileItemList ( )

Creates an empty list of file items.

Definition at line 1719 of file kfileitem.cpp.

◆ KFileItemList() [2/2]

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

Creates a new KFileItemList from a QList of file items.

Definition at line 1723 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 1728 of file kfileitem.cpp.

◆ findByUrl()

KFileItem KFileItemList::findByUrl ( const KUrl &  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 1740 of file kfileitem.cpp.

◆ targetUrlList()

KUrl::List KFileItemList::targetUrlList ( ) const
Returns
the list of target URLs that those items represent
Since
4.2

Definition at line 1761 of file kfileitem.cpp.

◆ urlList()

KUrl::List KFileItemList::urlList ( ) const
Returns
the list of URLs that those items represent

Definition at line 1751 of file kfileitem.cpp.


The documentation for this class was generated from the following files:
  • kfileitem.h
  • kfileitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal