pysideslot_p.h 716 B

12345678910111213141516171819202122232425262728
  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_SLOT_P_H
  4. #define PYSIDE_SLOT_P_H
  5. #include <sbkpython.h>
  6. #include <QtCore/qbytearray.h>
  7. #include <QtCore/qlist.h>
  8. namespace PySide::Slot {
  9. struct Data {
  10. QByteArray signature;
  11. QByteArray resultType;
  12. QByteArray tag; // QMetaMethod::tag()
  13. };
  14. // This list is set as an attribute named PySide::PySideMagicName::slot_list_attr()
  15. // by the decorator for usage by MetaObjectBuilder.
  16. using DataList = QList<Data>;
  17. DataList *dataListFromCapsule(PyObject *capsule);
  18. void init(PyObject* module);
  19. } // namespace PySide::Slot
  20. #endif // PYSIDE_SLOT_P_H