File indexing completed on 2024-05-12 03:57:42
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> 0004 SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef _KPARTS_PART_P_H 0010 #define _KPARTS_PART_P_H 0011 0012 #include "part.h" 0013 #include "partbase_p.h" 0014 // KF 0015 #include <KPluginMetaData> 0016 // Qt 0017 #include <QPointer> 0018 #include <QWidget> 0019 0020 namespace KParts 0021 { 0022 class PartPrivate : public PartBasePrivate 0023 { 0024 public: 0025 Q_DECLARE_PUBLIC(Part) 0026 0027 explicit PartPrivate(Part *qq, const KPluginMetaData &data) 0028 : PartBasePrivate(qq) 0029 , m_metaData(data) 0030 , m_autoDeleteWidget(true) 0031 , m_autoDeletePart(true) 0032 , m_manager(nullptr) 0033 { 0034 } 0035 0036 ~PartPrivate() override 0037 { 0038 } 0039 0040 const KPluginMetaData m_metaData; 0041 bool m_autoDeleteWidget; 0042 bool m_autoDeletePart; 0043 PartManager *m_manager; 0044 QPointer<QWidget> m_widget; 0045 }; 0046 0047 } // namespace 0048 0049 #endif