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]
6
extern
Q_CORE_EXPORT
int
qt_ntfs_permission_lookup
;
7
//! [0]
8
9
//! [1]
10
qt_ntfs_permission_lookup++;
// turn checking on
11
qt_ntfs_permission_lookup--;
// turn it off again
12
//! [1]
13
14
//! [raii]
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
22
//! [raii]
23
24
//! [free-funcs]
25
qAreNtfsPermissionChecksEnabled
();
// check status
26
qEnableNtfsPermissionChecks
();
// turn checking on
27
qDisableNtfsPermissionChecks
();
// turn it off again
28
//! [free-funcs]
qEnableNtfsPermissionChecks
qEnableNtfsPermissionChecks()
Definition
qfilesystemengine_win.cpp:397
qt_ntfs_permission_lookup
Q_CORE_EXPORT int qt_ntfs_permission_lookup
[0]
Definition
ntfsp.cpp:10
qDisableNtfsPermissionChecks
qDisableNtfsPermissionChecks()
Definition
qfilesystemengine_win.cpp:404
complexFunction
void complexFunction()
[1]
Definition
ntfsp.cpp:15
qAreNtfsPermissionChecksEnabled
qAreNtfsPermissionChecksEnabled()
[raii]
Definition
qfilesystemengine_win.cpp:411
qtbase
src
corelib
doc
snippets
ntfsp.cpp
Generated on
for Qt by
1.14.0