java.lang.Object
io.qt.core.QMetaObject.AbstractSignal
io.qt.core.QDeclarableSignals.AbstractPrivateGenericSignal
- All Implemented Interfaces:
QMetaObject.Signal
- Direct Known Subclasses:
QDeclarableSignals.GenericSignal,QDeclarableSignals.PrivateGenericSignal
- Enclosing class:
QDeclarableSignals
public abstract static class QDeclarableSignals.AbstractPrivateGenericSignal
extends QMetaObject.AbstractSignal
Use this signal class to declare a local signal.
-
Method Summary
Modifier and TypeMethodDescriptionfinal QMetaObject.Connectionconnect(QMetaObject.GenericConnectable signal, Qt.ConnectionType ... connectionType) Initializes a connection to the signal.final QMetaObject.Connectionconnect(QMetaObject.GenericSlot slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final booleanRemoves the connection to the given signal.final booleanRemoves 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.GenericSlot 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.
-
connect
public final QMetaObject.Connection connect(QMetaObject.GenericConnectable 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.
-