MauiKit File Browsing
fmlist.h
34 * @brief Represents the status of a directory listing, be it non existence location, loading or empty.
36 * The status object is divided into different properties for convenience, such as error label, message, icon, code, etc.
84 * The listing of the contents has failed. For knowing the reason check the other properties, such as `title`, `exists`, etc.
93 }; Q_ENUM(STATUS_CODE)
151 * Whether to auto load the content entries when the path property is modified. Otherwise explicitly call the load method.
159 * There is support for multiple type of location depending on the scheme, for example local file system uses `file://`, while you can browser networks using `ftp://` or `fish://`. Support for those locations depends on KIO and its slaves - to know more about it read the KIO slaves documentation.
179 Q_PROPERTY(bool foldersFirst READ getFoldersFirst WRITE setFoldersFirst NOTIFY foldersFirstChanged)
182 * When the location if a remote cloud directory, this allows to define the depth of the levels for listing the contents.
183 * By default this is set to `1`, which will only lists the entries in the current location, a bigger depth will start listing sub-directories too.
189 * The list of string values to filter the listing. For example to only list PNG and JPG images: `filters: ["*.png", "*.jpg"]`.
192 Q_PROPERTY(QStringList filters READ getFilters WRITE setFilters NOTIFY filtersChanged RESET resetFilters)
198 Q_PROPERTY(FMList::FILTER filterType READ getFilterType WRITE setFilterType NOTIFY filterTypeChanged RESET resetFilterType)
207 * Whether destructive actions or modifications can be done to the current location contents, such as deleting, renaming, pasting, adding, etc.
241 SIZE = FMH::MODEL_KEY::SIZE,
246 MODIFIED = FMH::MODEL_KEY::MODIFIED,
251 DATE = FMH::MODEL_KEY::DATE,
256 LABEL = FMH::MODEL_KEY::LABEL,
261 MIME = FMH::MODEL_KEY::MIME,
267 };
277 AUDIO = FMStatic::FILTER_TYPE::AUDIO,
282 VIDEO = FMStatic::FILTER_TYPE::VIDEO,
287 TEXT = FMStatic::FILTER_TYPE::TEXT,
292 IMAGE = FMStatic::FILTER_TYPE::IMAGE,
297 DOCUMENT = FMStatic::FILTER_TYPE::DOCUMENT,
302 COMPRESSED = FMStatic::FILTER_TYPE::COMPRESSED,
307 FONT = FMStatic::FILTER_TYPE::FONT,
313 };
350 };
519 * This allows to quickly paste into the current location any file URL in the clipboard, and raw image data and text snippets into a new file.
The FMList class Model for listing the file system files and directories and perform relevant actions...
Definition fmlist.h:143
VIEW_TYPE
The possible view types for listing the entries in the FileBrowser visual control.
Definition fmlist.h:340
void warning(QString message)
Emitted when the listing process has any error message that needs to be notified.
The FM class stands for File Management, and exposes methods for file listing, browsing and handling,...
Definition fm.h:104
Q_SCRIPTABLE CaptureState status()
KIOWIDGETS_EXPORT PasteJob * paste(const QMimeData *mimeData, const QUrl &destDir, JobFlags flags=DefaultFlags)
QString path(const QString &relativePath)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QAction * renameFile(const QObject *recvr, const char *slot, QObject *parent)
QAction * moveToTrash(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem remove()
QString & append(QChar ch)
Represents the status of a directory listing, be it non existence location, loading or empty.
Definition fmlist.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.