Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qfactorycacheregistration_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QFACTORYCACHEREGISTRATION_P_H
6
#
define
QFACTORYCACHEREGISTRATION_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
qglobal
.
h
>
20
21
#
if
!
defined
(
QT_BOOTSTRAPPED
)
&&
QT_CONFIG
(
cpp_winrt
)
22
#
define
QT_USE_FACTORY_CACHE_REGISTRATION
23
#
endif
24
25
#
ifdef
QT_USE_FACTORY_CACHE_REGISTRATION
26
27
#
include
"qt_winrtbase_p.h"
28
29
QT_BEGIN_NAMESPACE
30
31
namespace
detail {
32
33
class
QWinRTFactoryCacheRegistration
34
{
35
public
:
36
Q_CORE_EXPORT
explicit
QWinRTFactoryCacheRegistration(QFunctionPointer clearFunction);
37
Q_CORE_EXPORT ~QWinRTFactoryCacheRegistration();
38
Q_CORE_EXPORT
static
void
clearAllCaches();
39
40
Q_DISABLE_COPY_MOVE(QWinRTFactoryCacheRegistration)
41
private
:
42
QWinRTFactoryCacheRegistration **m_prevNext =
nullptr
;
43
QWinRTFactoryCacheRegistration *m_next =
nullptr
;
44
QFunctionPointer m_clearFunction;
45
};
46
47
inline
QWinRTFactoryCacheRegistration reg([]()
noexcept
{ winrt::clear_factory_cache(); });
48
}
49
50
QT_END_NAMESPACE
51
52
#
endif
53
#
endif
// QFACTORYCACHEREGISTRATION_P_H
QSqlRelationalDelegate
\inmodule QtSql
qtbase
src
corelib
platform
windows
qfactorycacheregistration_p.h
Generated on
for Qt by
1.18.0