![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QNtfsPermissionCheckGuard class is a RAII class to manage NTFS permission checking. More...
Related Symbols | |
(Note that these are not member symbols.) | |
bool | qEnableNtfsPermissionChecks () |
bool | qDisableNtfsPermissionChecks () |
bool | qAreNtfsPermissionChecksEnabled () |
The QNtfsPermissionCheckGuard class is a RAII class to manage NTFS permission checking.
For performance reasons, QFile, QFileInfo, and related classes do not perform full ownership and permission (ACL) checking on NTFS file systems by default. During the lifetime of any instance of this class, that default is overridden and advanced checking is performed. This provides a safe and easy way to manage enabling and disabling this change to the default behavior.
Example:
This class is available only on Windows.
|
Checks the status of the permission checks on NTFS file systems. Returns true
if the check is enabled.
This function is only available on Windows and makes the direct manipulation of \l qt_ntfs_permission_lookup obsolete.
|
Disables permission checking on NTFS file systems. Returns true
if the check is disabled, meaning that there are no more users.
This function is only available on Windows and makes the direct manipulation of \l qt_ntfs_permission_lookup obsolete.
This is a low-level function and must (only) be called to match one earlier call to qEnableNtfsPermissionChecks(). Please consider the RAII class \l QNtfsPermissionCheckGuard instead.
|
Enables permission checking on NTFS file systems. Returns true
if the check was already enabled before the call to this function, meaning that there are other users.
This function is only available on Windows and makes the direct manipulation of \l qt_ntfs_permission_lookup obsolete.
This is a low-level function, please consider the RAII class \l QNtfsPermissionCheckGuard instead.