src/corelib/kernel/qmetaobject_p.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     8 **
     8 **
   122     static int indexOfSignalRelative(const QMetaObject **baseObject, const char* name);
   122     static int indexOfSignalRelative(const QMetaObject **baseObject, const char* name);
   123     static int originalClone(const QMetaObject *obj, int local_method_index);
   123     static int originalClone(const QMetaObject *obj, int local_method_index);
   124 
   124 
   125 #ifndef QT_NO_QOBJECT
   125 #ifndef QT_NO_QOBJECT
   126     //defined in qobject.cpp
   126     //defined in qobject.cpp
       
   127     enum DisconnectType { DisconnectAll, DisconnectOne };
   127     static bool connect(const QObject *sender, int signal_index,
   128     static bool connect(const QObject *sender, int signal_index,
   128                         const QObject *receiver, int method_index,
   129                         const QObject *receiver, int method_index,
   129                         int type = 0, int *types = 0);
   130                         int type = 0, int *types = 0);
   130     static bool disconnect(const QObject *sender, int signal_index,
   131     static bool disconnect(const QObject *sender, int signal_index,
   131                            const QObject *receiver, int method_index);
   132                            const QObject *receiver, int method_index,
       
   133                            DisconnectType = DisconnectAll);
   132     static inline bool disconnectHelper(QObjectPrivate::Connection *c,
   134     static inline bool disconnectHelper(QObjectPrivate::Connection *c,
   133                                         const QObject *receiver, int method_index,
   135                                         const QObject *receiver, int method_index,
   134                                         QMutex *senderMutex);
   136                                         QMutex *senderMutex, DisconnectType);
   135 #endif
   137 #endif
   136 };
   138 };
   137 
   139 
   138 #ifndef UTILS_H
   140 #ifndef UTILS_H
   139 // mirrored in moc's utils.h
   141 // mirrored in moc's utils.h