aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideqslotobject_p.h
blob: 827f0193c6209630ba5c865acc027ea38a863bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef PYSIDEQSLOTOBJECT_P_H
#define PYSIDEQSLOTOBJECT_P_H

#include "pysidemacros.h"
#include <sbkpython.h>

#include <QtCore/QObject>
#include <QtCore/qobjectdefs.h>

namespace PySide
{

class PySideQSlotObject : public QtPrivate::QSlotObjectBase
{
public:
    explicit PySideQSlotObject(PyObject *callable, const QByteArrayList &parameterTypes,
                               const char *returnType  = nullptr);
    ~PySideQSlotObject();

private:
    static void impl(int which, QSlotObjectBase *this_, QObject *receiver, void **args, bool *ret);
    void call(void **args);

    PyObject *m_callable;
    const QByteArrayList m_parameterTypes;
    const char *m_returnType;
};


} // namespace PySide

#endif // PYSIDEQSLOTOBJECT_P_H