Qt
6.x
The Qt SDK
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
6
extern
Q_CORE_EXPORT
int
qt_ntfs_permission_lookup
;
8
10
qt_ntfs_permission_lookup
++;
// turn checking on
11
qt_ntfs_permission_lookup
--;
// turn it off again
13
15
void
complexFunction
()
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
25
qAreNtfsPermissionChecksEnabled
();
// check status
26
qEnableNtfsPermissionChecks
();
// turn checking on
27
qDisableNtfsPermissionChecks
();
// turn it off again
qAreNtfsPermissionChecksEnabled
qAreNtfsPermissionChecksEnabled()
[raii]
Definition
qfilesystemengine_win.cpp:425
qt_ntfs_permission_lookup
Q_CORE_EXPORT int qt_ntfs_permission_lookup
[0]
Definition
ntfsp.cpp:10
complexFunction
void complexFunction()
[1]
Definition
ntfsp.cpp:15
qEnableNtfsPermissionChecks
qEnableNtfsPermissionChecks()
Definition
qfilesystemengine_win.cpp:399
qDisableNtfsPermissionChecks
qDisableNtfsPermissionChecks()
Definition
qfilesystemengine_win.cpp:412
qtbase
src
corelib
doc
snippets
ntfsp.cpp
Generated by
1.9.7