java.lang.Object
io.qt.internal.QtJambiSignals.AbstractSignal
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 QMetaObject.Connection
connect
(QMetaObject.Connectable2<? super A, ? super B> signal, Qt.ConnectionType... type) Initializes a connection to the signal.final QMetaObject.Connection
connect
(QMetaObject.Slot0 slot, Qt.ConnectionType... type) Initializes a connection to the slot.final QMetaObject.Connection
connect
(QMetaObject.Slot1<? super A> slot, Qt.ConnectionType... type) Initializes a connection to the slot.final QMetaObject.Connection
connect
(QMetaObject.Slot2<? super A, ? super B> slot, Qt.ConnectionType... type) Initializes a connection to the slot.final boolean
disconnect
(QMetaObject.Connectable2<? super A, ? super B> signal) Removes the connection to the given signal.final boolean
disconnect
(QMetaObject.Slot0 slot) Removes the connection to the given slot.final boolean
disconnect
(QMetaObject.Slot1<? super A> slot) Removes the connection to the given slot.final boolean
disconnect
(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, disconnect
Methods inherited from class io.qt.internal.QtJambiSignals.AbstractSignal
addConnection, addConnection, addConnectionToSignalObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, addConnectionToSlotObject, argumentTypes, checkConnection, containingObject, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitDefaultSignal, emitSignal, fullName, methodIndex, name, removeConnection, removeConnection, removeConnectionToSignalObject, removeConnectionToSlotObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.qt.core.QMetaObject.Signal
argumentTypes, containingObject, fullName, methodIndex, name
-
Method Details
-
connect
Initializes a connection to the slot.- Parameters:
slot
- the slot to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QUninvokableSlotException
- Raised if slot is annotated@QtUninvokable
.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot1<? super A> slot, Qt.ConnectionType... type) Initializes a connection to the slot.- Parameters:
slot
- the slot to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QUninvokableSlotException
- Raised if slot is annotated@QtUninvokable
.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot2<? super A, ? super B> slot, Qt.ConnectionType... type) Initializes a connection to the slot.- Parameters:
slot
- the slot to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QUninvokableSlotException
- Raised if slot is annotated@QtUninvokable
.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot
- the slot to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot
- the slot to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot
- the slot to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Connectable2<? super A, ? super B> signal, Qt.ConnectionType... type) Initializes a connection to the signal.- Parameters:
signal
- the signal to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given signal.- Parameters:
signal
- the signal to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-