Loading...
Searching...
No Matches
score::RecursiveWatch Class Reference
Classes | |
| struct | AsyncCallbacks |
| struct | AsyncScan |
| struct | Callbacks |
| struct | Watched |
Public Member Functions | |
| void | setWatchedFolder (std::string root) |
| void | registerWatch (std::string extension, Callbacks callbacks) |
| void | registerWatch (std::string extension, AsyncCallbacks callbacks) |
| void | scan () const |
| Synchronous scan: calls Callbacks::added on the calling thread. | |
| void | scanAsync (QObject *context) |
| void | cancelAsync () noexcept |
| void | reset () |
| RecursiveWatch (const RecursiveWatch &)=delete | |
| RecursiveWatch & | operator= (const RecursiveWatch &)=delete |
Static Public Member Functions | |
| static void | cancelAll () noexcept |
Member Function Documentation
◆ cancelAll()
|
staticnoexcept |
Cancels the asynchronous scans of every live RecursiveWatch. Called before the application's plug-ins and interfaces are destroyed, since the scan filters call into them.
◆ cancelAsync()
|
noexcept |
Stops the running asynchronous scan, if any: waits for a filter call in progress to return, after which no filter runs again and commit actions already queued to the GUI thread are dropped.
◆ scanAsync()
| void score::RecursiveWatch::scanAsync | ( | QObject * | context | ) |
Asynchronous scan: runs directory traversal + AsyncCallbacks::filter on a worker thread, then batch-delivers the returned commit actions on the GUI thread via context's event loop.
The documentation for this class was generated from the following files:
- RecursiveWatch.hpp
- RecursiveWatch.cpp