Filer
Public Member Functions | Protected Member Functions | List of all members
MountWatcherThread Class Reference

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>

Inheritance diagram for MountWatcherThread:
Inheritance graph
[legend]
Collaboration diagram for MountWatcherThread:
Collaboration graph
[legend]

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MountWatcherThread()

MountWatcherThread::MountWatcherThread ( const QString &  fullPath,
const QString &  symlinkPath 
)

Constructs a MountWatcherThread object.

Parameters
fullPathThe full path of the mount point.
symlinkPathThe path where the symlink should be created.

The documentation for this class was generated from the following files: