MauiKit File Browsing
fm.h
26 * @private The QDirLister class is a placeholder for the KCoreDirLister for other systems other than GNU Linux.
98 * @brief The FM class stands for File Management, and exposes methods for file listing, browsing and handling, with syncing and tagging integration if such components were enabled with the build flags `COMPONENT_SYNCING` and `COMPONENT_TAGGING`.
100 * @warning File syncing support with webDAV cloud providers, such as NextCloud, is still work in progress.
118 * @brief Given a server URL address retrieve its contents. This only works if the syncing component has been enabled with `COMPONENT_SYNCING`
122 * @param depth how deep in the directory three to go, for example, `1` keeps the retrieval in the first level or current directory.
125 bool getCloudServerContent(const QUrl &server, const QStringList &filters = QStringList(), const int &depth = 0);
128 * @brief Creates a directory in the server. This only works if the syncing component has been enabled `COMPONENT_SYNCING`.
135 * @brief Given a path URL retrieve the contents information packaged as a model. This method is asynchronous and once items become ready the signals will be emitted, such as, `pathContentItemsReady` or `pathContentReady`
140 * @param iteratorFlags the directory iterator flags, for reference check QDirIterator documentation
142 void getPathContent(const QUrl &path, const bool &hidden = false, const bool &onlyDirs = false, const QStringList &filters = QStringList(), const QDirIterator::IteratorFlags &iteratorFlags = QDirIterator::NoIteratorFlags);
145 * @brief Given a remote server address URL, resolve it to the local cache URL. This only works if the syncing component has been enabled `COMPONENT_SYNCING=ON`
152 * @brief Given the server address and the user name, resolve a local path for the cache of the files.
180 * @brief Emitted for every single item that becomes available, from the requested remote server location.
187 * @brief Emitted once the contents of the current location are ready and the listing has finished.
199 * @brief Emitted when the contents of the current location has changed, either by some new entries being added or removed.
206 * @param items the list of pair of entries that have changed, where first is the old version and second is the new version.
229 * @brief Emitted when a directory has been created in the remote server in the current location.
243 * @brief Open a given remote item in an external application. If the item does not exists in the system local cache, then it is downloaded first.
The FileLoader class asynchronously loads batches of files from a given list of local directories or ...
Definition fileloader.h:76
The FMStatic class is a group of static file management methods, this class has a constructor only as...
Definition fmstatic.h:30
The FM class stands for File Management, and exposes methods for file listing, browsing and handling,...
Definition fm.h:104
void cloudItemReady(FMH::MODEL item, QUrl path)
Emitted for every single item that becomes available, from the requested remote server location.
void cloudServerContentReady(FMStatic::PATH_CONTENT list)
Emitted once the requested contents of the server are ready.
void newItem(FMH::MODEL item, QUrl path)
Emitted when a new item is available in the remote server in the current location.
void pathContentItemsRemoved(FMStatic::PATH_CONTENT list)
Emitted when a set of entries in the current location have been removed.
void pathContentReady(QUrl path)
Emitted once the contents of the current location are ready and the listing has finished.
void pathContentItemsChanged(QVector< QPair< FMH::MODEL, FMH::MODEL > > items)
Emitted when the current location entries have changed.
void pathContentItemsReady(FMStatic::PATH_CONTENT list)
Emitted when a set of entries for the current location are ready.
void pathContentChanged(QUrl path)
Emitted when the contents of the current location has changed, either by some new entries being added...
void dirCreated(FMH::MODEL dir)
Emitted when a directory has been created in the remote server in the current location.
MODEL_KEY
IteratorFlags
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.