MauiKit File Browsing
fileloader.cpp
40void FileLoader::requestPath(const QList<QUrl> &urls, const bool &recursive, const QStringList &nameFilters, const QDir::Filters &filters, const uint &limit)
46void FileLoader::getFiles(QList<QUrl> paths, bool recursive, const QStringList &nameFilters, const QDir::Filters &filters, uint limit)
65 for(const auto &url : Tagging::getInstance()->getTagUrls(path.toString().replace(QStringLiteral("tags:///"), QStringLiteral("")),
static std::function< FMH::MODEL(const QUrl &url)> informer
A callback function which structures the retrieved file URLs, with the required information.
Definition fileloader.h:116
void setBatchCount(const uint &count)
Set the amount of items to be dispatched via the itemReady signal.
Definition fileloader.cpp:30
void finished(FMH::MODEL_LIST items, QList< QUrl > urls)
Emitted once the operation has completely finished retrieving all the existing files or reached the l...
void requestPath(const QList< QUrl > &urls, const bool &recursive, const QStringList &nameFilters={}, const QDir::Filters &filters=QDir::Files, const uint &limit=99999)
Sends the request to start iterating throughout all the given location URLs, and with the given param...
Definition fileloader.cpp:40
void itemReady(FMH::MODEL item, QList< QUrl > urls)
Emitted for every single item that becomes available.
uint batchCount() const
The amount of items which will be dispatched while iterating throughout all the given directories.
Definition fileloader.cpp:35
void itemsReady(FMH::MODEL_LIST items, QList< QUrl > urls)
Emitted when the batch of file items is ready.
static FMStatic::PATHTYPE_KEY getPathType(const QUrl &url)
Given a file URL with a well defined scheme, get the PATHTYPE_KEY.
Definition fmstatic.cpp:646
static const FMH::MODEL getFileInfoModel(const QUrl &path)
getFileInfoModel
Definition fmstatic.cpp:560
Q_SCRIPTABLE Q_NOREPLY void start()
bool fileExists(const QUrl &path)
QHash< MODEL_KEY, QString > MODEL
QString path(const QString &relativePath)
KIOCORE_EXPORT QString dir(const QString &fileClass)
Filters
Subdirectories
bool isDir() const const
void clear()
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
void moveToThread(QThread *targetThread)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
void finished()
void quit()
void start(Priority priority)
bool wait(QDeadlineTimer deadline)
QUrl fromLocalFile(const QString &localFile)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:55:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:55:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.