KIO
kfileitemlistproperties.cpp
83 m_supportsWriting = m_supportsWriting && KProtocolManager::supportsWriting(url) && item.isWritable();
90 const QString directory = localUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).toLocalFile();
Provides information about the common properties of a group of KFileItem objects.
Definition kfileitemlistproperties.h:39
KFileItemList items() const
List of fileitems passed to the constructor or to setItems().
Definition kfileitemlistproperties.cpp:155
bool supportsMoving() const
Check if moving capability is supported.
Definition kfileitemlistproperties.cpp:145
bool supportsReading() const
Check if reading capability is supported.
Definition kfileitemlistproperties.cpp:130
KFileItemListProperties & operator=(const KFileItemListProperties &other)
Assignment operator.
Definition kfileitemlistproperties.cpp:120
QString mimeGroup() const
Definition kfileitemlistproperties.cpp:183
bool supportsDeleting() const
Check if deleting capability is supported.
Definition kfileitemlistproperties.cpp:135
void setItems(const KFileItemList &items)
Sets the items that are to have their supported capabilities checked.
Definition kfileitemlistproperties.cpp:57
bool isDirectory() const
Definition kfileitemlistproperties.cpp:165
bool supportsWriting() const
Check if writing capability is supported (file managers use this mostly for directories)
Definition kfileitemlistproperties.cpp:140
QList< QUrl > urlList() const
List of urls, gathered from the fileitems.
Definition kfileitemlistproperties.cpp:160
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition kfileitem.h:632
static bool supportsReading(const QUrl &url)
Returns whether the protocol can retrieve data from URLs.
Definition kprotocolmanager.cpp:209
static bool supportsDeleting(const QUrl &url)
Returns whether the protocol can delete files/objects.
Definition kprotocolmanager.cpp:239
static bool supportsMoving(const QUrl &url)
Returns whether the protocol can move files/objects between different locations.
Definition kprotocolmanager.cpp:259
static bool supportsWriting(const QUrl &url)
Returns whether the protocol can store data to URLs.
Definition kprotocolmanager.cpp:219
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString filePath() const const
bool isWritable() const const
void setFile(const QDir &dir, const QString &path)
T & first()
bool isEmpty() const const
void clear()
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
QString left(qsizetype n) const const
QStringView left(qsizetype length) const const
RemoveFilename
QString toLocalFile() const const
QString url(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:56:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:56:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.