1 | /* |
2 | This file is part of the KDE project |
3 | SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> |
4 | SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-or-later |
7 | */ |
8 | |
9 | #ifndef _KPARTS_PART_P_H |
10 | #define _KPARTS_PART_P_H |
11 | |
12 | #include "part.h" |
13 | #include "partbase_p.h" |
14 | // KF |
15 | #include <KPluginMetaData> |
16 | // Qt |
17 | #include <QPointer> |
18 | #include <QWidget> |
19 | |
20 | namespace KParts |
21 | { |
22 | class PartPrivate : public PartBasePrivate |
23 | { |
24 | public: |
25 | Q_DECLARE_PUBLIC(Part) |
26 | |
27 | explicit PartPrivate(Part *qq, const KPluginMetaData &data) |
28 | : PartBasePrivate(qq) |
29 | , m_metaData(data) |
30 | , m_autoDeleteWidget(true) |
31 | , m_autoDeletePart(true) |
32 | , m_manager(nullptr) |
33 | { |
34 | } |
35 | |
36 | ~PartPrivate() override |
37 | { |
38 | } |
39 | |
40 | const KPluginMetaData m_metaData; |
41 | bool m_autoDeleteWidget; |
42 | bool m_autoDeletePart; |
43 | PartManager *m_manager; |
44 | QPointer<QWidget> m_widget; |
45 | }; |
46 | |
47 | } // namespace |
48 | |
49 | #endif |
50 | |