|
Filer
|
The MountWatcherThread class provides a threaded mechanism for watching and creating symlinks for mounted volumes. This class exists to make waiting for the mounting to happen asynchronous, not blocking everything else. QStorageInfo doesn't provide a built-in mechanism to notify when mounted volumes change; if it did, we would not need this. More...
#include <MountWatcherThread.h>


Public Member Functions | |
| MountWatcherThread (const QString &fullPath, const QString &symlinkPath) | |
| Constructs a MountWatcherThread object. More... | |
Protected Member Functions | |
| void | run () override |
| The overridden run method that performs the async logic for watching and creating symlinks. | |
The MountWatcherThread class provides a threaded mechanism for watching and creating symlinks for mounted volumes. This class exists to make waiting for the mounting to happen asynchronous, not blocking everything else. QStorageInfo doesn't provide a built-in mechanism to notify when mounted volumes change; if it did, we would not need this.
| MountWatcherThread::MountWatcherThread | ( | const QString & | fullPath, |
| const QString & | symlinkPath | ||
| ) |
Constructs a MountWatcherThread object.
| fullPath | The full path of the mount point. |
| symlinkPath | The path where the symlink should be created. |