1// qextensionmanager.sip generated by MetaSIP
2//
3// This file is part of the QtDesigner Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23class QExtensionManager : QObject, QAbstractExtensionManager
24{
25%TypeHeaderCode
26#include <qextensionmanager.h>
27%End
28
29%ConvertToSubClassCode
30    static struct class_graph {
31        const char *name;
32        sipTypeDef **type;
33        int yes, no;
34    } graph[] = {
35        {sipName_QPyDesignerCustomWidgetPlugin, &sipType_QPyDesignerCustomWidgetPlugin, -1, 1},
36        {sipName_QExtensionFactory, &sipType_QExtensionFactory, -1, 2},
37        {sipName_QPyDesignerMemberSheetExtension, &sipType_QPyDesignerMemberSheetExtension, -1, 3},
38        {sipName_QDesignerFormEditorInterface, &sipType_QDesignerFormEditorInterface, -1, 4},
39        {sipName_QDesignerWidgetBoxInterface, &sipType_QDesignerWidgetBoxInterface, -1, 5},
40        {sipName_QDesignerFormWindowInterface, &sipType_QDesignerFormWindowInterface, -1, 6},
41        {sipName_QDesignerActionEditorInterface, &sipType_QDesignerActionEditorInterface, -1, 7},
42        {sipName_QPyDesignerContainerExtension, &sipType_QPyDesignerContainerExtension, -1, 8},
43        {sipName_QDesignerPropertyEditorInterface, &sipType_QDesignerPropertyEditorInterface, -1, 9},
44        {sipName_QDesignerFormWindowManagerInterface, &sipType_QDesignerFormWindowManagerInterface, -1, 10},
45        {sipName_QPyDesignerTaskMenuExtension, &sipType_QPyDesignerTaskMenuExtension, -1, 11},
46        {sipName_QPyDesignerPropertySheetExtension, &sipType_QPyDesignerPropertySheetExtension, -1, 12},
47        {sipName_QDesignerObjectInspectorInterface, &sipType_QDesignerObjectInspectorInterface, -1, 13},
48        {sipName_QPyDesignerCustomWidgetCollectionPlugin, &sipType_QPyDesignerCustomWidgetCollectionPlugin, -1, 14},
49        {sipName_QExtensionManager, &sipType_QExtensionManager, -1, -1},
50    };
51
52    int i = 0;
53
54    sipType = NULL;
55
56    do
57    {
58        struct class_graph *cg = &graph[i];
59
60        if (cg->name != NULL && sipCpp->inherits(cg->name))
61        {
62            sipType = *cg->type;
63            i = cg->yes;
64        }
65        else
66            i = cg->no;
67    }
68    while (i >= 0);
69%End
70
71public:
72%If (Qt_5_6_1 -)
73    explicit QExtensionManager(QObject *parent /TransferThis/ = 0);
74%End
75%If (- Qt_5_6_1)
76    QExtensionManager(QObject *parent /TransferThis/ = 0);
77%End
78    virtual ~QExtensionManager();
79    virtual void registerExtensions(QAbstractExtensionFactory *factory, const QString &iid = QString());
80    virtual void unregisterExtensions(QAbstractExtensionFactory *factory, const QString &iid = QString());
81    virtual QObject *extension(QObject *object, const QString &iid) const;
82};
83