pysideclassinfo_p.h 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (C) 2016 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. #ifndef PYSIDE_CLASSINFO_P_H
  4. #define PYSIDE_CLASSINFO_P_H
  5. #include <sbkpython.h>
  6. #include "pysideclassdecorator_p.h"
  7. #include "pysideclassinfo.h"
  8. #include <QtCore/qmetaobject.h>
  9. struct PySideClassInfo;
  10. extern "C"
  11. {
  12. extern PYSIDE_API PyTypeObject *PySideClassInfo_TypeF(void);
  13. } // extern "C"
  14. namespace PySide::ClassInfo {
  15. class ClassInfoPrivate : public PySide::ClassDecorator::DecoratorPrivate
  16. {
  17. public:
  18. PyObject *tp_call(PyObject *self, PyObject *args, PyObject * /* kw */) override;
  19. int tp_init(PyObject *self, PyObject *args, PyObject *kwds) override;
  20. const char *name() const override;
  21. ClassInfoList m_data;
  22. bool m_alreadyWrapped = false;
  23. };
  24. /**
  25. * Init PySide QProperty support system
  26. */
  27. void init(PyObject* module);
  28. } // namespace PySide::ClassInfo
  29. #endif