aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/globalreceiver.h
diff options
context:
space:
mode:
authorrenato <renato.filho@openbossa.org>2009-12-30 11:45:09 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-01-04 18:59:39 -0200
commit359c973b425db0c27675add1a330734bbd7d8dbd (patch)
treef94fb1b9d80cc2596dc911be006ba0c2584769c9 /libpyside/globalreceiver.h
parent0d6a8f3978188f3e343c364806e0bb6e6ac1e643 (diff)
Implement disconnect function for Python callback.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'libpyside/globalreceiver.h')
-rw-r--r--libpyside/globalreceiver.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpyside/globalreceiver.h b/libpyside/globalreceiver.h
index e1e230b7b..9243f9d3f 100644
--- a/libpyside/globalreceiver.h
+++ b/libpyside/globalreceiver.h
@@ -44,6 +44,8 @@
namespace PySide
{
+class DynamicSlotData;
+
class GlobalReceiver : public QObject
{
public:
@@ -53,10 +55,12 @@ public:
const QMetaObject* metaObject() const;
void addSlot(const char* slot, PyObject* callback);
void removeSlot(int slotId);
+ void connectNotify(int slotId);
+ void disconnectNotify(int slotId);
private:
DynamicQMetaObject m_metaObject;
- QHash<int, PyObject* > m_slotReceivers;
QSet<int> m_shortCircuitSlots;
+ QHash<int, DynamicSlotData* > m_slotReceivers;
};
}