KIO
kfileplacesmodel.h
42 Q_PROPERTY(QStringList supportedSchemes READ supportedSchemes WRITE setSupportedSchemes NOTIFY supportedSchemesChanged)
49 UrlRole = 0x069CD12B,
52 HiddenRole = 0x0741CAAC,
55 SetupNeededRole = 0x059A935D,
61 FixedDeviceRole = 0x332896C1,
67 CapacityBarRecommendedRole = 0x1548C5C4,
73 GroupRole = 0x0a5b64ee,
80 IconNameRole = 0x00a45c00,
86 GroupHiddenRole = 0x21a4b936,
92 TeardownAllowedRole = 0x02533364,
97 EjectAllowedRole = 0x0A16AC5B,
104 TeardownOverlayRecommendedRole = 0x032EDCCE,
111 DeviceAccessibilityRole = 0x023FFD93,
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;
void teardownDone(const QModelIndex &index, Solid::ErrorType error, const QVariant &errorData)
Emitted after the teardown of a device ends.
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.
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_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
typedef DropActions
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.