Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
ntfsp.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
6extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
8
10qt_ntfs_permission_lookup++; // turn checking on
11qt_ntfs_permission_lookup--; // turn it off again
13
16{
17 QNtfsPermissionCheckGuard permissionGuard; // check is enabled
18
19 // do complex things here that need permission check enabled
20
21} // as the guard goes out of scope the check is disabled
23
26qEnableNtfsPermissionChecks(); // turn checking on
27qDisableNtfsPermissionChecks(); // turn it off again
The QNtfsPermissionCheckGuard class is a RAII class to manage NTFS permission checking.
qAreNtfsPermissionChecksEnabled()
[raii]
Q_CORE_EXPORT int qt_ntfs_permission_lookup
[0]
Definition ntfsp.cpp:10
void complexFunction()
[1]
Definition ntfsp.cpp:15
qEnableNtfsPermissionChecks()
qDisableNtfsPermissionChecks()