MauiKit File Browsing
fmlist.h
38 * @brief Represents the status of a directory listing, be it non existence location, loading or empty.
40 * The status object is divided into different properties for convenience, such as error label, message, icon, code, etc.
88 * The listing of the contents has failed. For knowing the reason check the other properties, such as `title`, `exists`, etc.
97 }; Q_ENUM(STATUS_CODE)
155 * Whether to auto load the content entries when the path property is modified. Otherwise explicitly call the load method.
163 * 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.
183 Q_PROPERTY(bool foldersFirst READ getFoldersFirst WRITE setFoldersFirst NOTIFY foldersFirstChanged)
186 * When the location if a remote cloud directory, this allows to define the depth of the levels for listing the contents.
187 * 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.
193 * The list of string values to filter the listing. For example to only list PNG and JPG images: `filters: ["*.png", "*.jpg"]`.
196 Q_PROPERTY(QStringList filters READ getFilters WRITE setFilters NOTIFY filtersChanged RESET resetFilters)
202 Q_PROPERTY(FMList::FILTER filterType READ getFilterType WRITE setFilterType NOTIFY filterTypeChanged RESET resetFilterType)
211 * Whether destructive actions or modifications can be done to the current location contents, such as deleting, renaming, pasting, adding, etc.
245 SIZE = FMH::MODEL_KEY::SIZE,
250 MODIFIED = FMH::MODEL_KEY::MODIFIED,
255 DATE = FMH::MODEL_KEY::DATE,
260 LABEL = FMH::MODEL_KEY::LABEL,
265 MIME = FMH::MODEL_KEY::MIME,
271 };
281 AUDIO = FMStatic::FILTER_TYPE::AUDIO,
286 VIDEO = FMStatic::FILTER_TYPE::VIDEO,
291 TEXT = FMStatic::FILTER_TYPE::TEXT,
296 IMAGE = FMStatic::FILTER_TYPE::IMAGE,
301 DOCUMENT = FMStatic::FILTER_TYPE::DOCUMENT,
306 COMPRESSED = FMStatic::FILTER_TYPE::COMPRESSED,
311 FONT = FMStatic::FILTER_TYPE::FONT,
317 };
354 };
523 * 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:147
VIEW_TYPE
The possible view types for listing the entries in the FileBrowser visual control.
Definition fmlist.h:344
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:102
Q_SCRIPTABLE CaptureState status()
bool remove(const QString &column, const QVariant &value)
QString path(const QString &relativePath)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QAction * paste(const QObject *recvr, const char *slot, QObject *parent)
QAction * renameFile(const QObject *recvr, const char *slot, QObject *parent)
QAction * moveToTrash(const QObject *recvr, const char *slot, QObject *parent)
QString & append(QChar ch)
Represents the status of a directory listing, be it non existence location, loading or empty.
Definition fmlist.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:51:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:51:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.