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
qctfplugin.cpp
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
4#define BUILD_LIBRARY
5#include <qstring.h>
6#include "qctfplugin_p.h"
7#include "qctflib_p.h"
8
10
12{
13 Q_OBJECT
14 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QCtfLib" FILE "trace.json")
16
17public:
19 {
20
21 }
23 {
24 m_cleanup = true;
25 *m_shutdown = true;
27 }
29 {
31 }
33 {
34 if (m_cleanup)
35 return false;
37 }
39 {
40 if (m_cleanup)
41 return;
43 }
45 {
46 if (m_cleanup)
47 return false;
49 }
56private:
57 bool m_cleanup = false;
58 bool *m_shutdown = nullptr;
59};
60
61QT_END_NAMESPACE
62
63#include "qctfplugin.moc"