java.lang.Object
io.qt.core.QMetaObject.AbstractSignal
io.qt.core.QMetaObject.AbstractPrivateSignal2<A,B>
- Type Parameters:
A- The type of the first parameter of the signal.B- The type of the second parameter of the signal.
- All Implemented Interfaces:
QMetaObject.Signal
- Direct Known Subclasses:
QInstanceMemberSignals.PrivateSignal2,QMetaObject.AbstractPublicSignal2,QObject.PrivateSignal2,QStaticMemberSignals.PrivateSignal2
- Enclosing class:
QMetaObject
public abstract static class QMetaObject.AbstractPrivateSignal2<A,B>
extends QMetaObject.AbstractSignal
Supertype for all signals with two parameters.
-
Method Summary
Modifier and TypeMethodDescriptionfinal <Receiver> QMetaObject.Connectionconnect(Receiver receiver, QMetaObject.Slot1<Receiver> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final <Receiver> QMetaObject.Connectionconnect(Receiver receiver, QMetaObject.Slot2<Receiver, ? super A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final <Receiver> QMetaObject.Connectionconnect(Receiver receiver, QMetaObject.Slot3<Receiver, ? super A, ? super B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final QMetaObject.Connectionconnect(QMetaObject.Connectable2<? super A, ? super B> signal, Qt.ConnectionType ... connectionType) Initializes a connection to the signal.final QMetaObject.Connectionconnect(QMetaObject.Slot0 slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final QMetaObject.Connectionconnect(QMetaObject.Slot1<? super A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final QMetaObject.Connectionconnect(QMetaObject.Slot2<? super A, ? super B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final <Receiver> booleandisconnect(Receiver receiver, QMetaObject.Slot1<Receiver> slot) Removes the connection to the given slot of receiver.final <Receiver> booleandisconnect(Receiver receiver, QMetaObject.Slot2<Receiver, ? super A> slot) Removes the connection to the given slot of receiver.final <Receiver> booleandisconnect(Receiver receiver, QMetaObject.Slot3<Receiver, ? super A, ? super B> slot) Removes the connection to the given slot of receiver.final booleandisconnect(QMetaObject.Connectable2<? super A, ? super B> signal) Removes the connection to the given signal.final booleandisconnect(QMetaObject.Slot0 slot) Removes the connection to the given slot.final booleandisconnect(QMetaObject.Slot1<? super A> slot) Removes the connection to the given slot.final booleandisconnect(QMetaObject.Slot2<? super A, ? super B> slot) Removes the connection to the given slot.Methods inherited from class io.qt.core.QMetaObject.AbstractSignal
connect, disconnect, disconnect, disconnect, disconnectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.qt.core.QMetaObject.Signal
argumentTypes, containingObject, fullName, methodIndex, name
-
Method Details
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot0 slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.- Parameters:
slot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot1<? super A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.- Parameters:
slot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot2<? super A, ? super B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.- Parameters:
slot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
connect
public final <Receiver> QMetaObject.Connection connect(Receiver receiver, QMetaObject.Slot1<Receiver> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
connect
public final <Receiver> QMetaObject.Connection connect(Receiver receiver, QMetaObject.Slot2<Receiver, ? super A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
disconnect
public final <Receiver> boolean disconnect(Receiver receiver, QMetaObject.Slot2<Receiver, ? super A> slot) Removes the connection to the given slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
connect
public final <Receiver> QMetaObject.Connection connect(Receiver receiver, QMetaObject.Slot3<Receiver, ? super A, ? super B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
disconnect
public final <Receiver> boolean disconnect(Receiver receiver, QMetaObject.Slot3<Receiver, ? super A, ? super B> slot) Removes the connection to the given slot of receiver.- Type Parameters:
Receiver- The type of the receiver- Parameters:
receiver- the target receiverslot- the slot to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Connectable2<? super A, ? super B> signal, Qt.ConnectionType ... connectionType) Initializes a connection to the signal.- Parameters:
signal- the signal to be connectedconnectionType- type of connection- Returns:
- connection if successful or
nullotherwise - Throws:
QMisfittingSignatureException- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given signal.- Parameters:
signal- the signal to be disconnected- Returns:
trueif successfully disconnected, orfalseotherwise.
-