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.
234 * Merge the name filters and mimetype filters together for filtering the requested location contentent's.
235 * The `filters` and `filterType` are the properties to be merged. If this is set to false, then the `filters` property will have priority over the `filterType` one, unless it is empty.
237 Q_PROPERTY(bool mergeFilters READ mergeFilters WRITE setMergeFilters NOTIFY mergeFiltersChanged)
247 SIZE = FMH::MODEL_KEY::SIZE,
252 MODIFIED = FMH::MODEL_KEY::MODIFIED,
257 DATE = FMH::MODEL_KEY::DATE,
262 LABEL = FMH::MODEL_KEY::LABEL,
267 MIME = FMH::MODEL_KEY::MIME,
273 };
283 AUDIO = FMStatic::FILTER_TYPE::AUDIO,
288 VIDEO = FMStatic::FILTER_TYPE::VIDEO,
293 TEXT = FMStatic::FILTER_TYPE::TEXT,
298 IMAGE = FMStatic::FILTER_TYPE::IMAGE,
303 DOCUMENT = FMStatic::FILTER_TYPE::DOCUMENT,
308 COMPRESSED = FMStatic::FILTER_TYPE::COMPRESSED,
313 FONT = FMStatic::FILTER_TYPE::FONT,
319 };
356 };
529 * 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:346
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()
bool remove(const QString &column, const QVariant &value)
QString path(const QString &relativePath)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
const QList< QKeySequence > & paste()
const QList< QKeySequence > & renameFile()
const QList< QKeySequence > & moveToTrash()
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 Sat Dec 21 2024 16:58:02 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:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.