1// qsignalmapper.sip generated by MetaSIP
2//
3// This file is part of the QtCore 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 QWidget /External/;
24
25class QSignalMapper : QObject
26{
27%TypeHintCode
28from PyQt5.QtWidgets import QWidget
29%End
30
31%TypeHeaderCode
32#include <qsignalmapper.h>
33%End
34
35public:
36    explicit QSignalMapper(QObject *parent /TransferThis/ = 0);
37    virtual ~QSignalMapper();
38    void setMapping(QObject *sender, int id);
39    void setMapping(QObject *sender, const QString &text);
40    void setMapping(QObject *sender, QWidget *widget);
41    void setMapping(QObject *sender, QObject *object);
42    void removeMappings(QObject *sender);
43    QObject *mapping(int id) const;
44    QObject *mapping(const QString &text) const;
45    QObject *mapping(QWidget *widget) const;
46    QObject *mapping(QObject *object) const;
47
48signals:
49    void mapped(int);
50    void mapped(const QString &);
51    void mapped(QWidget *);
52    void mapped(QObject *);
53%If (Qt_5_15_0 -)
54    void mappedInt(int);
55%End
56%If (Qt_5_15_0 -)
57    void mappedString(const QString &);
58%End
59%If (Qt_5_15_0 -)
60    void mappedWidget(QWidget *);
61%End
62%If (Qt_5_15_0 -)
63    void mappedObject(QObject *);
64%End
65
66public slots:
67    void map();
68    void map(QObject *sender);
69
70private:
71    QSignalMapper(const QSignalMapper &);
72};
73