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
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
QNtfsPermissionCheckGuard
The QNtfsPermissionCheckGuard class is a RAII class to manage NTFS permission checking.
qAreNtfsPermissionChecksEnabled
qAreNtfsPermissionChecksEnabled()
[raii]
Definition
qfilesystemengine_win.cpp:407
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:393
qDisableNtfsPermissionChecks
qDisableNtfsPermissionChecks()
Definition
qfilesystemengine_win.cpp:400
qtbase
src
corelib
doc
snippets
ntfsp.cpp
Generated by
1.10.0