MauiKit File Browsing
placeslist.h
35 * @brief The list model of the system locations, such as bookmarks, standard places, networks and devices.
37 * A graphical interface for this controller functionality is available for quick usage as PlacesListBrowser.
50 * list.groups: [FMList.BOOKMARKS_PATH, FMList.REMOTE_PATH, FMList.CLOUD_PATH, FMList.DRIVES_PATH]
76 * @brief Removes a place from the model and if the data at the given index is a file URL bookmark then it gets removed from the bookmarks.
129 * @param The section type to be toggle. The possible values are defined in FMStatic::PATHTYPE_KEY.
The FMStatic class is a group of static file management methods, this class has a constructor only as...
Definition fmstatic.h:30
MauiList(QObject *parent=nullptr)
static void addBookmark(const QUrl &url)
Add a location to the bookmarks sections.
Definition placeslist.cpp:325
bool setupNeeded(const int &index)
Check if a device type entry needs to be setup, as in mounted.
Definition placeslist.cpp:281
bool isDevice(const int &index)
Check if a entry at the given index is a device.
Definition placeslist.cpp:268
void requestEject(const int &index)
Request to eject a removable device type at the given index.
Definition placeslist.cpp:297
bool contains(const QUrl &path)
Checks of a file URL exists in the places model.
Definition placeslist.cpp:263
int indexOfPath(const QUrl &url) const
Given an URL path, if it exists in the places list return its index position.
Definition placeslist.cpp:344
void removePlace(const int &index)
Removes a place from the model and if the data at the given index is a file URL bookmark then it gets...
Definition placeslist.cpp:245
void requestSetup(const int &index)
Request to setup or mount the device type entry at the given index.
Definition placeslist.cpp:311
bool containsGroup(const int &group)
Whether the current listing contains a group type.
Definition placeslist.cpp:362
void bookmarksChanged()
Emitted when a new bookmark entry has been added.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:45 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:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.