KIO
kfileplacesmodel.h
42 Q_PROPERTY(QStringList supportedSchemes READ supportedSchemes WRITE setSupportedSchemes NOTIFY supportedSchemesChanged)
182 Q_INVOKABLE KFilePlacesModel::DeviceAccessibility deviceAccessibility(const QModelIndex &index) const;
218 * @return The solid device of the place at index @p index, if it is a device. Otherwise a default Solid::Device() instance is returned.
231 * If the bookmark corresponding to searchUrl is not found, a default KBookmark instance is returned.
250 * @return A QAction with a proper translated label that can be used to trigger the requestTeardown()
257 * @return A QAction with a proper translated label that can be used to trigger the requestEject()
264 * @return A QAction with a proper translated label that can be used to open a partitioning menu for the device. nullptr if not a device.
269 * Unmounts the place at index @p index by triggering the teardown functionality of its Solid device.
291 * @param appName If set as the value of QCoreApplication::applicationName(), will make the place visible only in this application.
293 Q_INVOKABLE void addPlace(const QString &text, const QUrl &url, const QString &iconName = QString(), const QString &appName = QString());
300 * @param appName If set as the value of QCoreApplication::applicationName(), will make the place visible only in this application.
303 Q_INVOKABLE void addPlace(const QString &text, const QUrl &url, const QString &iconName, const QString &appName, const QModelIndex &after);
313 editPlace(const QModelIndex &index, const QString &text, const QUrl &url, const QString &iconName = QString(), const QString &appName = QString());
321 * Changes the visibility of the place with index @p index, but only if the place is not inside an hidden group.
362 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
403 bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Get the children model index for the given row and column.
Definition kfileplacesmodel.cpp:626
void teardownDone(const QModelIndex &index, Solid::ErrorType error, const QVariant &errorData)
Emitted after the teardown of a device ends.
void setSupportedSchemes(const QStringList &schemes)
Set the URL schemes that the file widget should allow navigating to.
Definition kfileplacesmodel.cpp:1530
@ GroupRole
The name of the group, for example "Remote" or "Devices".
Definition kfileplacesmodel.h:73
@ TeardownOverlayRecommendedRole
roleName is "isTeardownOverlayRecommended".
Definition kfileplacesmodel.h:104
@ CapacityBarRecommendedRole
Whether the place should have its free space displayed in a capacity bar.
Definition kfileplacesmodel.h:67
@ FixedDeviceRole
Whether the place is a fixed device (neither hotpluggable nor removable).
Definition kfileplacesmodel.h:61
void setupDone(const QModelIndex &index, bool success)
Emitted after the Solid setup ends.
void supportedSchemesChanged()
Emitted whenever the list of supported schemes has been changed.
void groupHiddenChanged(KFilePlacesModel::GroupType group, bool hidden)
Emitted whenever the visibility of the group group changes.
void errorMessage(const QString &message)
message An error message explaining what went wrong.
QAbstractItemModel(QObject *parent)
virtual int columnCount(const QModelIndex &parent) const const=0
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual Qt::ItemFlags flags(const QModelIndex &index) const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual QMimeData * mimeData(const QModelIndexList &indexes) const const
virtual QStringList mimeTypes() const const
virtual QHash< int, QByteArray > roleNames() const const
virtual int rowCount(const QModelIndex &parent) const const=0
virtual Qt::DropActions supportedDropActions() const const
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
typedef DropActions
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.