Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
5//! [0]
7//! [0]
8
9//! [1]
10qt_ntfs_permission_lookup++; // turn checking on
11qt_ntfs_permission_lookup--; // turn it off again
12//! [1]
13
14//! [raii]
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
22//! [raii]
23
24//! [free-funcs]
26qEnableNtfsPermissionChecks(); // turn checking on
27qDisableNtfsPermissionChecks(); // turn it off again
28//! [free-funcs]
qEnableNtfsPermissionChecks()
Q_CORE_EXPORT int qt_ntfs_permission_lookup
[0]
Definition ntfsp.cpp:10
qDisableNtfsPermissionChecks()
void complexFunction()
[1]
Definition ntfsp.cpp:15
qAreNtfsPermissionChecksEnabled()
[raii]