All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QMetaObject Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
/****************************************************************************
**
** Copyright (C) 2009-2021 Dr. Peter Droste, Omix Visualization GmbH & Co. KG. All rights reserved.
**
** This file is part of Qt Jambi.
**
** ** $BEGIN_LICENSE$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
** 
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
** $END_LICENSE$

**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
package io.qt.core;

import static io.qt.core.QMetaMethod.fromReflectedMethod;
import static io.qt.internal.QtJambiInternal.cppNormalizedSignature;
import static io.qt.internal.QtJambiInternal.internalNameOfArgumentType;

import java.io.Serializable;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
import java.util.logging.Level;
import java.util.logging.Logger;

import io.qt.QFlags;
import io.qt.QNoDefaultValueException;
import io.qt.QNoSuchMethodException;
import io.qt.QNoSuchSlotException;
import io.qt.QUnsuccessfulInvocationException;
import io.qt.QtAbstractEnumerator;
import io.qt.QtEnumerator;
import io.qt.QtGadget;
import io.qt.QtObject;
import io.qt.QtObjectInterface;
import io.qt.QtSignalEmitterInterface;
import io.qt.QtThreadAffineInterface;
import io.qt.QtUninvokable;
import io.qt.QtUtilities;
import io.qt.internal.QtJambiPropertyInfo;
import io.qt.internal.QtJambiInternal;
import io.qt.internal.QtJambiSignals;

/**
 * 

Java wrapper for Qt class QMetaObject

*/ public final class QMetaObject { static { QtJambi_LibraryUtilities.initialize(); } @Override public String toString() { return metaObjectPointer==0 ? super.toString() : "QMetaObject(" + className() + ")"; } private static class EnumEntries{ EnumEntries(QtEnumerator[] entries) { super(); this.entries = entries; } final QtEnumerator[] entries; private Map enumConstantDirectory; private Map enumeratorConstantDirectory; @QtUninvokable Map enumConstantDirectory() { if(enumConstantDirectory==null) { enumConstantDirectory = new TreeMap<>(); for(QtEnumerator entry : entries) { enumConstantDirectory.put(entry.name(), entry); } } return enumConstantDirectory; } @QtUninvokable Map enumeratorConstantDirectory() { if(enumConstantDirectory==null) { enumeratorConstantDirectory = new TreeMap<>(); for(QtEnumerator entry : entries) { if(!enumeratorConstantDirectory.containsKey(entry.value())) enumeratorConstantDirectory.put(entry.value(), entry); } } return enumeratorConstantDirectory; } } private static final Class flagsWrapperClass; static { Class flagsClass = null; for(Class cls : QFlags.class.getDeclaredClasses()) { if(QFlags.class.isAssignableFrom(cls) && !Modifier.isAbstract(cls.getModifiers())) { flagsClass = cls; } } flagsWrapperClass = flagsClass; } final long metaObjectPointer; private Class[] enumClasses; private Map enumEntries; private QMetaObject(long metaObjectPointer) { this.metaObjectPointer = metaObjectPointer; } @QtUninvokable synchronized Class enumType(QMetaEnum enumerator){ if(enumClasses==null) enumClasses = new Class[enumeratorCount(metaObjectPointer)]; if(enumClasses[enumeratorIndex(enumerator)]==null) { boolean isFlag = enumerator.isFlag(); String name = enumerator.name(); Class foundClass = null; Class enumeratorClass = null; Class flagsClass = null; Class exactDeclaringType = exactType(metaObjectPointer); if(exactDeclaringType!=null) { for(Class cls : exactDeclaringType.getDeclaredClasses()) { if(QtAbstractEnumerator.class.isAssignableFrom(cls) || QFlags.class.isAssignableFrom(cls)) { if(cls.getSimpleName().equals(name)) { foundClass = cls; break; } } } if(foundClass!=null) { if(isFlag) { if(QtAbstractEnumerator.class.isAssignableFrom(foundClass)) { enumeratorClass = foundClass; flagsClass = getFlagFromEnum(exactDeclaringType, foundClass); }else{ flagsClass = foundClass; enumeratorClass = getEnumFromFlag(foundClass); } }else { if(QtAbstractEnumerator.class.isAssignableFrom(foundClass)) { flagsClass = getFlagFromEnum(exactDeclaringType, foundClass); enumeratorClass = foundClass; }else{ flagsClass = foundClass; enumeratorClass = getEnumFromFlag(foundClass); } } } } if(isFlag && flagsClass==null){ if(enumeratorClass==null) { QMetaEnum enmType = findEnumForFlags(metaObjectPointer, enumeratorIndex(enumerator)); if(enmType!=null) { enumeratorClass = enmType.type(); } } if(enumeratorClass==null) { enumeratorClass = QtEnumerator.class; } flagsClass = flagsWrapperClass; }else if(!isFlag && enumeratorClass==null){ enumeratorClass = QtEnumerator.class; generateEnumEntries(enumerator); } if(isFlag) { generateEnumEntries(enumerator); } enumClasses[enumeratorIndex(enumerator)] = isFlag ? flagsClass : enumeratorClass; } return enumClasses[enumeratorIndex(enumerator)]; } @QtUninvokable private void generateEnumEntries(QMetaEnum enumerator) { if(enumEntries==null) enumEntries = new HashMap<>(); ClassLoader cl = type().getClassLoader(); Class[] ifc = new Class[] {QtEnumerator.class}; QtEnumerator[] entries = new QtEnumerator[enumerator.keyCount()]; for (int i = 0; i < entries.length; i++) { entries[i] = (QtEnumerator)Proxy.newProxyInstance(cl, ifc, new Enumerator(i, enumerator.key(i), enumerator.value(i))); } enumEntries.put(enumeratorIndex(enumerator), new EnumEntries(entries)); } @QtUninvokable QtAbstractEnumerator[] enumEntries(QMetaEnum enumerator) { QtAbstractEnumerator[] entries; Class type = enumerator.type(); if(type.isEnum()) { entries = (QtAbstractEnumerator[])type.getEnumConstants(); }else if(enumEntries!=null){ EnumEntries ee = enumEntries.get(enumeratorIndex(enumerator)); if(ee==null) { entries = new QtAbstractEnumerator[0]; }else{ entries = Arrays.copyOf(ee.entries, ee.entries.length); } }else { entries = new QtAbstractEnumerator[0]; } return entries; } @QtUninvokable QtAbstractEnumerator enumEntry(QMetaEnum enumerator, int index) { Class type = enumerator.type(); if(type.isEnum()) { return (QtAbstractEnumerator)type.getEnumConstants()[index]; }else if(enumEntries!=null){ EnumEntries ee = enumEntries.get(enumeratorIndex(enumerator)); if(ee==null) { return null; }else{ return ee.entries[index]; } }else { return null; } } @SuppressWarnings({ "unchecked", "rawtypes" }) @QtUninvokable QtAbstractEnumerator enumEntry(QMetaEnum enumerator, String name) { Class type = enumerator.type(); if(type.isEnum()) { return (QtAbstractEnumerator)Enum.valueOf((Class)type, name); }else if(enumEntries!=null){ EnumEntries ee = enumEntries.get(enumeratorIndex(enumerator)); if(ee==null) { return null; }else{ return ee.enumConstantDirectory().get(name); } }else { return null; } } private static class Enumerator implements InvocationHandler{ private Enumerator(int ordinal, String name, int value) { super(); this.ordinal = ordinal; this.name = name; this.value = value; } private final int ordinal; private final String name; private final int value; @Override @QtUninvokable public Object invoke(Object proxy, Method method, Object[] args) { switch(method.getName()) { case "ordinal": return ordinal; case "value": return value; case "toString": case "name": return name; case "getDeclaringClass": return QtEnumerator.class; } return null; } } @QtUninvokable private static native QMetaEnum findEnumForFlags(long metaObjectPointer, int enumeratorIndex); @QtUninvokable private static Class getFlagFromEnum(Class exactDeclaringType, Class type) { for(Class flagsType : exactDeclaringType.getDeclaredClasses()) { if(QFlags.class.isAssignableFrom(flagsType) && flagsType.getGenericSuperclass() instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType)flagsType.getGenericSuperclass(); Type[] typeArguments = pt.getActualTypeArguments(); if(typeArguments.length==1 && typeArguments[0] instanceof Class) { if(typeArguments[0]==type) { return flagsType; } } } } return null; } @QtUninvokable private static Class getEnumFromFlag(Class type) { if(type.getGenericSuperclass() instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType)type.getGenericSuperclass(); Type[] typeArguments = pt.getActualTypeArguments(); if(typeArguments.length==1 && typeArguments[0] instanceof Class) { if(typeArguments[0]==type) { return (Class)typeArguments[0]; } } } return null; } /** * Represents a handle to a signal-slot (or signal-functor) connection. * * It can be used to check if the connection is valid and to disconnect it using {@link QObject#disconnect(Connection)}. * For a signal-functor connection without a context object, it is the only way to selectively disconnect that connection. * * As Connection is just a handle, the underlying signal-slot connection is unaffected when Connection is destroyed or reassigned. */ public static interface Connection{ /** * Returns true if the connection is valid. */ public boolean isConnected(); /** * Provides the sender of the connected signal. * @return sender */ public QtSignalEmitterInterface sender(); /** * Provides the receiver of the signal-slot connection. * @return receiver */ public Object receiver(); } /** * Enum representing meta calls. */ public enum Call implements QtEnumerator{ InvokeMetaMethod(0), ReadProperty(1), WriteProperty(2), ResetProperty(3), CreateInstance(QtJambiInternal.majorVersion()>5 ? 9 : 4), IndexOfMethod(QtJambiInternal.majorVersion()>5 ? 10 : 5), RegisterPropertyMetaType(QtJambiInternal.majorVersion()>5 ? 11 : 6), RegisterMethodArgumentMetaType(QtJambiInternal.majorVersion()>5 ? 12 : 7); private Call(int value) { this.value = value; } private final int value; public static Call resolve(int value) { switch (value) { case 0: return InvokeMetaMethod; case 1: return ReadProperty; case 2: return WriteProperty; case 3: return ResetProperty; case 4: if(QtJambiInternal.majorVersion()>5) return CreateInstance; else return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "QueryPropertyDesignable"); case 5: if(QtJambiInternal.majorVersion()>5) return IndexOfMethod; else return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "QueryPropertyScriptable"); case 6: if(QtJambiInternal.majorVersion()>5) return RegisterPropertyMetaType; else return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "QueryPropertyStored"); case 7: if(QtJambiInternal.majorVersion()>5) return RegisterMethodArgumentMetaType; else return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "QueryPropertyEditable"); case 8: if(QtJambiInternal.majorVersion()>5) return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "RegisterQPropertyObserver"); else return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "QueryPropertyUser"); case 9: if(QtJambiInternal.majorVersion()>5) return QtJambi_LibraryUtilities.internal.resolveEnum(Call.class, value, "SetQPropertyBinding"); else return CreateInstance; case 10: if(QtJambiInternal.majorVersion()>5) throw new io.qt.QNoSuchEnumValueException(value); else return IndexOfMethod; case 11: if(QtJambiInternal.majorVersion()>5) throw new io.qt.QNoSuchEnumValueException(value); else return RegisterPropertyMetaType; case 12: if(QtJambiInternal.majorVersion()>5) throw new io.qt.QNoSuchEnumValueException(value); else return RegisterMethodArgumentMetaType; default: throw new io.qt.QNoSuchEnumValueException(value); } } @Override public int value() { return value; } } @QtUninvokable public QMetaProperty userProperty() { return userProperty(this.metaObjectPointer); } @QtUninvokable private native QMetaProperty userProperty(long metaObjectPointer); @QtUninvokable public QList properties() { return properties(this.metaObjectPointer); } @QtUninvokable private native QList properties(long metaObjectPointer); @QtUninvokable public int propertyCount() { return propertyCount(metaObjectPointer); } @QtUninvokable private static native int propertyCount(long metaObjectPointer); @QtUninvokable public QMetaProperty property(String name) { return property(this.metaObjectPointer, name); } @QtUninvokable private native QMetaProperty property(long metaObjectPointer, String name); @QtUninvokable public QList enumerators() { return enumerators(this.metaObjectPointer); } @QtUninvokable private static native QList enumerators(long metaObjectPointer); @QtUninvokable public int enumeratorCount() { return enumeratorCount(metaObjectPointer); } @QtUninvokable private static native int enumeratorCount(long metaObjectPointer); @QtUninvokable public io.qt.core.QMetaEnum enumerator(String name) { return enumerator(this.metaObjectPointer, name); } @QtUninvokable private static native QMetaEnum enumerator(long metaObjectPointer, String name); @QtUninvokable public static void connectSlotsByName(QObject object) { io.qt.internal.QtJambiInternal.connectSlotsByName(object); } @QtUninvokable static native QMetaObject.Connection connect(QObject sender, String signal, QObject receiver, String slot, byte connection); @QtUninvokable static native QMetaObject.Connection connectMethods(QObject sender, int signalIdx, long signalEnclosingMetaObject, QObject receiver, int slotIdx, long EnclosingMetaObject, byte connection); @QtUninvokable static native boolean disconnect(QObject sender, String signal, QObject receiver, String slot); @QtUninvokable static native boolean disconnectMethods(QObject sender, int signalIdx, long signalEnclosingMetaObject, QObject receiver, int slotIdx, long EnclosingMetaObject); static String internalNameOfType(Class cls) { return QtJambiInternal.internalNameOfArgumentType(cls); } @QtUninvokable QMetaMethod methodByIndex(int methodIndex) { return methodByIndex(metaObjectPointer, methodIndex); } @QtUninvokable private native QMetaMethod methodByIndex(long metaObjectPointer, int index); @QtUninvokable public QMetaMethod method(String name, Class... parameterTypes) { if(name==null) return null; QMetaMethod method; if(parameterTypes.length==0 && name.contains("(")) { method = method(metaObjectPointer, cppNormalizedSignature(name)); if(method==null) method = method(metaObjectPointer, cppNormalizedSignature(name)+"const"); }else { StringBuilder args = new StringBuilder(); for(int i=0; i methods(){ return methods(metaObjectPointer); } @QtUninvokable private native QList methods(long metaObjectPointer); @QtUninvokable public final int methodCount(){ return methodCount(metaObjectPointer); } @QtUninvokable private native int methodCount(long metaObjectPointer); @QtUninvokable public QMetaMethod constructor(Class... parameterTypes) { StringBuilder args = new StringBuilder(); for(int i=0; i constructors(){ return constructors(metaObjectPointer); } @QtUninvokable private native QList constructors(long metaObjectPointer); @QtUninvokable public final int constructorCount(){ return constructorCount(metaObjectPointer); } @QtUninvokable private native int constructorCount(long metaObjectPointer); @QtUninvokable public QObject newInstance(Object... args) throws NoSuchMethodException { if (!inherits(QObject.staticMetaObject)) { throw new RuntimeException(String.format("Type %1$s does not inherit QObject", className())); } if(constructorCount()==0) { throw new UnsupportedOperationException("No constructors available."); } QMetaMethod constr = null; QList constructors = constructors(); for(QMetaMethod constructor : constructors.clone()) { List> parameterTypes = constructor.parameterClassTypes(); if(parameterTypes.size()!=args.length) { constructors.remove(constructor); }else{ boolean matches = true; for(int i=0; i parameterType = parameterTypes.get(i); if(parameterType.isPrimitive()) { if(args[i]==null) { matches = false; break; }else{ if(parameterType==long.class && !(args[i] instanceof Long || args[i] instanceof Integer || args[i] instanceof Short || args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==int.class && !(args[i] instanceof Integer || args[i] instanceof Short || args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==short.class && !(args[i] instanceof Short || args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==byte.class && !(args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==double.class && !(args[i] instanceof Double || args[i] instanceof Float || args[i] instanceof Long || args[i] instanceof Integer || args[i] instanceof Short || args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==float.class && !(args[i] instanceof Float || args[i] instanceof Integer || args[i] instanceof Short || args[i] instanceof Byte)) { matches = false; break; }else if(parameterType==boolean.class && !(args[i] instanceof Boolean)) { matches = false; break; }else if(parameterType==char.class && !(args[i] instanceof Character)) { matches = false; break; }else if(parameterType==void.class) { matches = false; break; } } }else if(args[i]!=null && !parameterType.isInstance(args[i])) { matches = false; break; } } if(!matches) { constructors.remove(constructor); } } } if(!constructors.isEmpty()) { constr = constructors.get(0); } if(constr==null) { StringBuilder argsStrg = new StringBuilder(); for(int i=0; i> parameterTypes = constr.parameterClassTypes(); for(int i=0; i1) { className = args[i].getClass().getInterfaces()[0].getName(); }else { className = args[i].getClass().getSuperclass().getName(); } } argTypes[i] = className; } } return newInstanceImpl(metaObjectPointer, constr.methodIndex(), argTypes, args); } @QtUninvokable private static native QObject newInstanceImpl(long metaObjectPointer, int methodIndex, String[] argTypes, Object[] args); @QtUninvokable public QMetaObject superClass(){ return superClass(metaObjectPointer); } @QtUninvokable private static native QMetaObject superClass(long metaObjectPointer); @QtUninvokable public String className(){ return className(metaObjectPointer); } @QtUninvokable private static native String className(long metaObjectPointer); @QtUninvokable public QList> classInfos(){ return classInfos(metaObjectPointer); } @QtUninvokable private static native QList> classInfos(long metaObjectPointer); @QtUninvokable public int classInfoCount() { return classInfoCount(metaObjectPointer); } @QtUninvokable private static native int classInfoCount(long metaObjectPointer); @QtUninvokable public String classInfo(String name){ return classInfo(metaObjectPointer, name); } @QtUninvokable private static native String classInfo(long metaObjectPointer, String name); /** * Returns true if the class described by this QMetaObject inherits the type described by metaObject; otherwise returns false. * A type is considered to inherit itself. * @param metaObject * @return inherits */ @QtUninvokable public boolean inherits(QMetaObject metaObject){ return metaObject!=null && inherits(metaObjectPointer, metaObject.metaObjectPointer); } @QtUninvokable private static native boolean inherits(long metaObjectPointer, long other); /** * Casts an object to the given targetType. Returns null if object is not instance of targetType. * @param type * @param targetType * @param object * @return the object as targetType or null */ @QtUninvokable public static T cast(Class targetType, QtObjectInterface object) { io.qt.QtUtilities.initializePackage(targetType); if(object==null || targetType.isInstance(object)) { return targetType.cast(object); } return targetType.cast(cast(object, targetType)); } @QtUninvokable private static native Object cast(QtObjectInterface object, Class targetType); @QtUninvokable public Class type(){ return type(metaObjectPointer); } @QtUninvokable private static native Class type(long metaObjectPointer); @QtUninvokable public static QMetaObject forType(Class clazz) { QtUtilities.initializePackage(clazz); return __qt_forType(clazz); } @QtUninvokable private static native QMetaObject __qt_forType(Class clazz); @QtUninvokable private static native Class exactType(long metaObjectPointer); @QtUninvokable public static boolean checkConnectArgs(String signal, String method) { return checkConnectArgsString(io.qt.internal.QtJambiInternal.SignalPrefix+cppNormalizedSignature(signal), io.qt.internal.QtJambiInternal.SlotPrefix+cppNormalizedSignature(method)); } @QtUninvokable private native static boolean checkConnectArgsString(String signal, String method); @QtUninvokable public static boolean checkConnectArgs(QMetaMethod signal, QMetaMethod method){ return checkConnectArgsMethods(signal.enclosingMetaObject().metaObjectPointer, signal.methodIndex(), method.enclosingMetaObject().metaObjectPointer, method.methodIndex()); } @QtUninvokable private static native boolean checkConnectArgsMethods(long signalMetaObjectPointer, int signalMethodIndex, long methodMetaObjectPointer, int methodMethodIndex); /** * Calling invokeMethod(obj, AutoConnection, args). * @param obj object * @param member method name * @param args arguments * @return method result value if any - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot * @throws QNoSuchMethodException if method not available */ @QtUninvokable public static Object invokeMethod(QObject obj, String member, Object... args) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(obj, member, Qt.ConnectionType.AutoConnection, args); } /** *

Invokes the given method on the given object and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param obj object * @param member method name * @param args arguments * @return method result value if any - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot * @throws QNoSuchMethodException if method not available */ @QtUninvokable public static Object invokeMethod(QObject obj, String member, Qt.ConnectionType type, Object... args) throws QUnsuccessfulInvocationException, QNoSuchMethodException { Class[] parameterTypes; if(member.contains("(")) { parameterTypes = new Class[0]; }else { parameterTypes = new Class[args.length]; for (int i = 0; i < parameterTypes.length; i++) { if(args[i]==null) { parameterTypes[i] = Object.class; }else { String className = args[i].getClass().getName(); if(className.contains("$Lambda$")) { if(args[i].getClass().getInterfaces().length>1) { parameterTypes[i] = args[i].getClass().getInterfaces()[0]; }else { parameterTypes[i] = args[i].getClass().getSuperclass(); } }else { parameterTypes[i] = args[i].getClass(); } } } } QMetaMethod method = obj.metaObject().method(member, parameterTypes); if(method==null || !method.isValid()) { throw new QNoSuchMethodException(member); } return method.invoke(obj, type, args); } /** * Calling invokeMethod(method, AutoConnection). * * @param The return type of the method. * @param method invoked method * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method0 method) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method0 method, Qt.ConnectionType type) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type); }else { Object[] args = info.lambdaArgs.toArray(); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke()); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method1 method, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method1 method, Qt.ConnectionType type, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+1) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 1, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method2 method, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method2 method, Qt.ConnectionType type, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+2) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 2, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method3 method, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method3 method, Qt.ConnectionType type, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+3) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 3, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method4 method, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method4 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+4) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 4, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method5 method, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method5 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+5) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 5, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } if(qmethod!=null) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5); } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4, arg5); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4, arg5)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method6 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method6 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+6) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 6, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4, arg5, arg6); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4, arg5, arg6)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method7 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method7 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+7) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 7, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method8 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method8 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+8) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; args[7] = arg8; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 8, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The type of the ninth parameter of the method. * @param The return type of the method. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static R invokeMethod(Method9 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { return invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } /** *

Invokes the method and returns it's result value.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
*

If the invocation is asynchronous, the return value cannot be evaluated.

* * @param
The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The type of the ninth parameter of the method. * @param The return type of the method. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. * @return method result value - if the invocation is asynchronous, the return value cannot be evaluated. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @SuppressWarnings("unchecked") @QtUninvokable public static R invokeMethod(Method9 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); if(info!=null && info.qobject!=null && !info.qobject.isDisposed() && info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+9) { if(info.lambdaArgs.isEmpty()) { return (R)qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; args[7] = arg8; args[8] = arg9; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 9, info.lambdaArgs.size()); return (R)qmethod.invoke(info.qobject, type, args); } } } if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return null; } switch(type) { case AutoConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections (auto connection with different threads)."); } } case DirectConnection: try { return method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(method instanceof QtThreadAffineInterface) { QThread thread = ((QtThreadAffineInterface) method).thread(); if(thread!=null && thread!=QThread.currentThread()) { AtomicReference result = new AtomicReference<>(); QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { result.set(method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return result.get(); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: throw new QUnsuccessfulInvocationException("Unable to invoke methods with return values in queued connections."); default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection). * @param method invoked method * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot0 method) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param method invoked method * @param type synchronous or asynchronous invokation * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot0 method, Qt.ConnectionType type) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null && !info.qobject.isDisposed()) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()) { qmethod.invoke(info.qobject, type, info.lambdaArgs.toArray()); return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param
The type of the first parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot1 method, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot1 method, Qt.ConnectionType type, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null && !info.qobject.isDisposed()) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+1) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 1, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot2 method, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot2 method, Qt.ConnectionType type, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null && !info.qobject.isDisposed()) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+2) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 2, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } if(qmethod!=null) { qmethod.invoke(info.qobject, type, arg1, arg2); return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot3 method, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot3 method, Qt.ConnectionType type, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+3) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 3, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot4 method, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot4 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+4) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 4, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot5 method, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot5 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+5) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 5, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4, arg5); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ public static void invokeMethod(Slot6 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot6 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+6) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 6, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot7 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot7 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+7) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 7, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot8 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot8 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null && !info.qobject.isDisposed()) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+8) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; args[7] = arg8; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 8, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(method, AutoConnection, ...). * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. * @param The type of the ninth parameter of the slot. * @param method invoked method * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot9 method, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(method, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } /** *

Invokes the slot.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. * @param The type of the ninth parameter of the slot. * @param method invoked method * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke slot */ @QtUninvokable public static void invokeMethod(Slot9 method, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { QtJambiInternal.LambdaInfo info = QtJambiInternal.lamdaInfo(method); QThread thread = null; if(info!=null && info.qobject!=null && !info.qobject.isDisposed()) { if(info.reflectiveMethod!=null) { QMetaMethod qmethod = fromReflectedMethod(info.reflectiveMethod); if(qmethod!=null && qmethod.isValid() && qmethod.parameterTypes().size()==info.lambdaArgs.size()+9) { if(info.lambdaArgs.isEmpty()) { qmethod.invoke(info.qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else { Object[] args = new Object[qmethod.parameterTypes().size()]; args[0] = arg1; args[1] = arg2; args[2] = arg3; args[3] = arg4; args[4] = arg5; args[5] = arg6; args[6] = arg7; args[7] = arg8; args[8] = arg9; System.arraycopy(info.lambdaArgs.toArray(), 0, args, 9, info.lambdaArgs.size()); qmethod.invoke(info.qobject, type, args); } return; } } thread = info.qobject.thread(); }else { if(method instanceof QtObjectInterface) { if( ((QtObjectInterface)method).isDisposed() ) return; } if(method instanceof QtThreadAffineInterface) thread = ((QtThreadAffineInterface) method).thread(); } if(type==Qt.ConnectionType.AutoConnection && thread!=null && thread!=QThread.currentThread()) { type = Qt.ConnectionType.QueuedConnection; } switch(type) { case AutoConnection: case DirectConnection: try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); return; } catch (Throwable e) { throw new QUnsuccessfulInvocationException(e); } case BlockingQueuedConnection: if(thread!=null) { if(thread!=QThread.currentThread()) { QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } synchronized (this) { notifyAll(); } } return super.event(event); } }; invoker.moveToThread(thread); invoker.disposeLater(); synchronized (invoker) { try { invoker.wait(); } catch (InterruptedException e) { throw new QUnsuccessfulInvocationException(e); } } return; }else { throw new QUnsuccessfulInvocationException("Blocking-queued invocation on object whose thread is the current thread is not allowed."); } } throw new QUnsuccessfulInvocationException("Blocking-queued invocation of method on not allowed without thread affinity."); case QueuedConnection: QObject invoker = new QObject() { @Override public boolean event(QEvent event) { if(event.type()==QEvent.Type.DeferredDispose && (info==null || info.qobject==null || !info.qobject.isDisposed()) && !(method instanceof QtObjectInterface && ((QtObjectInterface)method).isDisposed() )) { try { method.invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } catch (Throwable e) { Logger.getLogger("io.qt.core").log(Level.SEVERE, "Exception thrown during method invokation.", e); } } return super.event(event); } }; QtJambi_LibraryUtilities.internal.setCppOwnership(invoker); if(thread!=null) invoker.moveToThread(thread); invoker.disposeLater(); return; default: break; } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection). * @param signal invoked signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal0 signal) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param signal invoked signal * @param type synchronous or asynchronous invokation * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal0 signal, Qt.ConnectionType type) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param
The type of the first parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal1 signal, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal1 signal, Qt.ConnectionType type, A arg1) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal2 signal, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal2 signal, Qt.ConnectionType type, A arg1, B arg2) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal3 signal, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal3 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal4 signal, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal4 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal5 signal, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal5 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4, arg5); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal6 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ public static void invokeMethod(AbstractPrivateSignal6 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4, arg5, arg6); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal7 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal7 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal8 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal8 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } /** * Calling invokeMethod(signal, AutoConnection, ...). * * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal invoked signal * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal9 signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { invokeMethod(signal, Qt.ConnectionType.AutoConnection, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } /** *

Invokes the signal.

* *

The invocation can be either synchronous or asynchronous, depending on type:

*
    *
  • If type is {@link Qt.ConnectionType#DirectConnection}, the member will be invoked immediately.
  • *
  • If type is {@link Qt.ConnectionType#QueuedConnection}, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
  • *
  • If type is {@link Qt.ConnectionType#BlockingQueuedConnection}, the method will be invoked in the same way as for {@link Qt.ConnectionType#QueuedConnection}, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
  • *
  • If type is {@link Qt.ConnectionType#AutoConnection}, the member is invoked synchronously if obj lives in the same thread as the caller; otherwise it will invoke the member asynchronously.
  • *
* * @param
The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. * @param signal invoked signal * @param type synchronous or asynchronous invokation * @param arg1 Argument for the first parameter. * @param arg2 Argument for the second parameter. * @param arg3 Argument for the third parameter. * @param arg4 Argument for the fourth parameter. * @param arg5 Argument for the fifth parameter. * @param arg6 Argument for the sixth parameter. * @param arg7 Argument for the seventh parameter. * @param arg8 Argument for the eighth parameter. * @param arg9 Argument for the ninth parameter. * @throws QUnsuccessfulInvocationException if not able to invoke signal */ @QtUninvokable public static void invokeMethod(AbstractPrivateSignal9 signal, Qt.ConnectionType type, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QUnsuccessfulInvocationException, QNoSuchMethodException { if(signal.containingObject() instanceof QObject && !((QObject)signal.containingObject()).isDisposed()) { QObject qobject = (QObject)signal.containingObject(); QMetaMethod qmethod = qobject.metaObject().methodByIndex(qobject.metaObject().metaObjectPointer, signal.methodIndex()); if(qmethod!=null) { qmethod.invoke(qobject, type, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); return; } } throw new QUnsuccessfulInvocationException("Unable to invoke method."); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (metaObjectPointer ^ (metaObjectPointer >>> 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; QMetaObject other = (QMetaObject) obj; if (metaObjectPointer != other.metaObjectPointer) return false; return true; } private final static class SignalAccess extends QtJambiSignals { static abstract class AbstractSignal extends QtJambiSignals.AbstractSignal { AbstractSignal(){} AbstractSignal(Class... types) { super(types); } AbstractSignal(Class declaringClass, boolean isStatic) { super(declaringClass, isStatic); } AbstractSignal(String signalName, Class... types) { super(signalName, types); } } static abstract class AbstractMultiSignal extends QtJambiSignals.MultiSignal { AbstractMultiSignal(SignalConfiguration signal1, SignalConfiguration signal2, SignalConfiguration[] furtherSignals) { super(signal1, signal2, furtherSignals); } } static abstract class SignalConfiguration extends QtJambiSignals.SignalConfiguration { SignalConfiguration(io.qt.core.QMetaObject.AbstractSignal signal, Class[] types) { super(signal, types); } } static void checkConnectionToDisposedSignal(QMetaObject.DisposedSignal signal, Object receiver, boolean slotObject) { QtJambiSignals.checkConnectionToDisposedSignalImpl(signal, receiver, slotObject); } static QtJambiPropertyInfo _analyzeProperty(QObject object, QtObject property) { return QtJambiSignals.analyzeProperty(object, property); } static void _registerPropertyField(QMetaProperty metaProperty, java.lang.reflect.Field field) { QtJambiSignals.registerPropertyField(metaProperty, field); } static void _emitNativeSignal(QObject sender, int methodIndex, Object args[]) { QtJambiSignals.emitNativeSignal(sender, methodIndex, args); } static Class _signalDeclaringClass(AbstractSignal signal){ return QtJambiSignals.signalDeclaringClass(signal); } static boolean _disconnectAll(QtSignalEmitterInterface sender, Object receiver) { return QtJambiSignals.disconnectAll(sender, receiver); } static boolean _disconnectOne(QMetaObject.Connection connection) { return QtJambiSignals.disconnectOne(connection); } private static void initialize() {} static { QtJambiSignals.registerDisposedSignalFactory(DisposedSignal::new); } } static abstract class SignalConfiguration extends SignalAccess.SignalConfiguration { SignalConfiguration(io.qt.core.QMetaObject.AbstractSignal signal, Class... types) { super(signal, types); } } static abstract class AbstractMultiSignal extends SignalAccess.AbstractMultiSignal { AbstractMultiSignal(SignalConfiguration signal1, SignalConfiguration signal2, SignalConfiguration[] furtherSignals) { super(signal1, signal2, furtherSignals); } } static { SignalAccess.initialize(); } /** * Signal emitted when a {@link io.qt.QtObjectInterface} is being disposed. * @see QtObjectInterface#isDisposed() * @see QtObjectInterface#dispose() */ public static final class DisposedSignal extends AbstractSignal { private DisposedSignal(Class declaringClass) { super(declaringClass, true); } /** * Internal */ @Override protected final void checkConnection(Object receiver, boolean slotObject) { SignalAccess.checkConnectionToDisposedSignal(this, receiver, slotObject); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... connectionType) { return addConnectionToSlotObject(slot, connectionType); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QObject.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype of all signals in QtJambi. */ public static abstract class AbstractSignal extends SignalAccess.AbstractSignal { AbstractSignal(){} AbstractSignal(Class... types) { super(types); } AbstractSignal(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractSignal(String signalName, Class... types) { super(signalName, types); } /** * Connects the signal to a method in an object. Whenever it is emitted, the method will be invoked * on the given object. * * @param receiver The object that owns the method * @param method The signature of the method excluding return type and argument names, such as "setText(String)". * @param connectionType One of the connection types defined in the Qt interface. * @throws QNoSuchSlotException Raised if the method passed in the slot object was not found * @throws java.lang.RuntimeException Raised if the signal object could not be successfully introspected or if the * signatures of the signal and slot are incompatible. */ public final QMetaObject.Connection connect(Object receiver, String method, Qt.ConnectionType... type) { if (receiver == null) throw new NullPointerException("Receiver must be non-null"); if (method == null) throw new NullPointerException("Slot must be non-null"); return addConnection(receiver, method, type); } /** * Disconnects the signal from a method in an object if the two were previously connected by a call to connect. * * @param receiver The object to which the signal is connected * @param method The method in the receiver object to which the signal is connected * @return true if the connection was successfully removed, otherwise false. The method will return false if the * connection has not been previously established by a call to connect. * @throws QNoSuchSlotException Raised if the method passed in the slot object was not found */ public final boolean disconnect(Object receiver, String method) { if (method != null && receiver == null) throw new IllegalArgumentException("Receiver cannot be null if you specify a method"); if (receiver == null && this instanceof DisposedSignal) return false; return removeConnection(receiver, method); } /** * Removes any connection from this signal to the specified receiving object * * @param receiver The object to which the signal has connections * @return true if any connection was successfully removed, otherwise false. The method will return false if no * connection has previously been establish to the receiver. * * @see #disconnect(Object, String) **/ public final boolean disconnect(Object receiver) { if(receiver instanceof QMetaObject.Connection){ return disconnect((QMetaObject.Connection)receiver); }else{ return disconnect(receiver, null); } } /** * Removes all connections from this signal. * * @return True if the disconnection was successful. * @see #disconnect(Object, String) */ public final boolean disconnect() { return disconnect(null, null); } /** * Removes the given connection from this signal. * * @param connection the connection to be removed * @return true if the disconnection was successful. */ public final boolean disconnect(QMetaObject.Connection connection) { return removeConnection(connection); } static QtJambiPropertyInfo analyzeProperty(QObject object, QtObject property) { return SignalAccess._analyzeProperty(object, property); } static void registerPropertyField(QMetaProperty metaProperty, java.lang.reflect.Field field) { SignalAccess._registerPropertyField(metaProperty, field); } static void emitNativeSignal(QObject sender, int methodIndex, Object... args) { SignalAccess._emitNativeSignal(sender, methodIndex, args); } Class signalDeclaringClass(){ return SignalAccess._signalDeclaringClass(this); } static Class signalDeclaringClass(AbstractSignal signal){ return SignalAccess._signalDeclaringClass(signal); } static boolean disconnectAll(QtSignalEmitterInterface sender, Object receiver) { return SignalAccess._disconnectAll(sender, receiver); } static boolean disconnectOne(QMetaObject.Connection connection) { return SignalAccess._disconnectOne(connection); } } /** * Supertype of all slot handles. */ public static interface AbstractSlot extends Serializable{ } /** * A generic slot handle to a method of variadic arguments. */ @FunctionalInterface public static interface GenericSlot extends AbstractSlot{ public void invoke(Object... args) throws Throwable; } /** * A handle to parameterless slot. */ @FunctionalInterface public static interface Slot0 extends AbstractSlot{ public void invoke() throws Throwable; } /** * A handle to slot with one parameter. * @param The type of the first parameter of the slot. */ @FunctionalInterface public static interface Slot1 extends AbstractSlot{ public void invoke(A a) throws Throwable; } /** * A handle to slot with two parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. */ @FunctionalInterface public static interface Slot2 extends AbstractSlot{ public void invoke(A a, B b) throws Throwable; } /** * A handle to slot with three parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. */ @FunctionalInterface public static interface Slot3 extends AbstractSlot{ public void invoke(A a, B b, C c) throws Throwable; } /** * A handle to slot with four parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. */ @FunctionalInterface public static interface Slot4 extends AbstractSlot{ public void invoke(A a, B b, C c, D d) throws Throwable; } /** * A handle to slot with five parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. */ @FunctionalInterface public static interface Slot5 extends AbstractSlot{ public void invoke(A a, B b, C c, D d, E e) throws Throwable; } /** * A handle to slot with six parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. */ @FunctionalInterface public static interface Slot6 extends AbstractSlot{ public void invoke(A a, B b, C c, D d, E e, F f) throws Throwable; } /** * A handle to slot with seven parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. */ @FunctionalInterface public static interface Slot7 extends AbstractSlot{ public void invoke(A a, B b, C c, D d, E e, F f, G g) throws Throwable; } /** * A handle to slot with eight parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. */ @FunctionalInterface public static interface Slot8 extends AbstractSlot{ public void invoke(A a, B b, C c, D d, E e, F f, G g, H h) throws Throwable; } /** * A handle to slot with nine parameters. * @param The type of the first parameter of the slot. * @param The type of the second parameter of the slot. * @param The type of the third parameter of the slot. * @param The type of the fourth parameter of the slot. * @param The type of the fifth parameter of the slot. * @param The type of the sixth parameter of the slot. * @param The type of the seventh parameter of the slot. * @param The type of the eighth parameter of the slot. * @param The type of the ninth parameter of the slot. */ @FunctionalInterface public static interface Slot9 extends AbstractSlot{ public void invoke(A a, B b, C c, D d, E e, F f, G g, H h, I i) throws Throwable; } /** * A generic slot handle to a method of variadic arguments with return value. * @param The type of the return value of the method. */ @FunctionalInterface public static interface GenericMethod extends AbstractSlot{ public R invoke(Object... args) throws Throwable; } /** * A handle to parameterless method with return value. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method0 extends AbstractSlot{ public R invoke() throws Throwable; } /** * A handle to method with onw parameter and return value. * @param The type of the first parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method1 extends AbstractSlot{ public R invoke(A a) throws Throwable; } /** * A handle to method with two parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method2 extends AbstractSlot{ public R invoke(A a, B b) throws Throwable; } /** * A handle to method with three parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method3 extends AbstractSlot{ public R invoke(A a, B b, C c) throws Throwable; } /** * A handle to method with four parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method4 extends AbstractSlot{ public R invoke(A a, B b, C c, D d) throws Throwable; } /** * A handle to method with five parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method5 extends AbstractSlot{ public R invoke(A a, B b, C c, D d, E e) throws Throwable; } /** * A handle to method with six parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method6 extends AbstractSlot{ public R invoke(A a, B b, C c, D d, E e, F f) throws Throwable; } /** * A handle to method with seven parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method7 extends AbstractSlot{ public R invoke(A a, B b, C c, D d, E e, F f, G g) throws Throwable; } /** * A handle to method with eight parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method8 extends AbstractSlot{ public R invoke(A a, B b, C c, D d, E e, F f, G g, H h) throws Throwable; } /** * A handle to method with nine parameters and return value. * @param The type of the first parameter of the method. * @param The type of the second parameter of the method. * @param The type of the third parameter of the method. * @param The type of the fourth parameter of the method. * @param The type of the fifth parameter of the method. * @param The type of the sixth parameter of the method. * @param The type of the seventh parameter of the method. * @param The type of the eighth parameter of the method. * @param The type of the ninth parameter of the method. * @param The type of the return value of the method. */ @FunctionalInterface public static interface Method9 extends AbstractSlot{ public R invoke(A a, B b, C c, D d, E e, F f, G g, H h, I i) throws Throwable; } /** * Supertype for parameterless signals. */ public static abstract class AbstractPrivateSignal0 extends AbstractSignal { AbstractPrivateSignal0(){super();} AbstractPrivateSignal0(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal0(Class... types) { super(types); } AbstractPrivateSignal0(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QObject.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QStaticMemberSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QInstanceMemberSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal1Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal2Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal3Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal4Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal5Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal6Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal7Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal8Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(QDeclarableSignals.Signal9Default9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QObject.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QStaticMemberSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QInstanceMemberSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal1Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal2Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal3Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal4Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal5Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal6Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal7Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal8Default8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(QDeclarableSignals.Signal9Default9 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with one parameter. * @param The type of the first parameter of the signal. */ public static abstract class AbstractPrivateSignal1 extends AbstractSignal { AbstractPrivateSignal1(){super();} AbstractPrivateSignal1(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal1(Class... types) { super(types); } AbstractPrivateSignal1(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal2Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal3Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal4Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal5Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal6Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal2Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal3Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal4Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal5Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal6Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default8 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with two parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public static abstract class AbstractPrivateSignal2 extends AbstractSignal { AbstractPrivateSignal2(){super();} AbstractPrivateSignal2(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal2(Class... types) { super(types); } AbstractPrivateSignal2(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal3Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal4Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal5Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal6Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal3Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal4Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal5Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal6Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default7 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with three parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public static abstract class AbstractPrivateSignal3 extends AbstractSignal { AbstractPrivateSignal3(){super();} AbstractPrivateSignal3(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal3(Class... types) { super(types); } AbstractPrivateSignal3(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal4Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal5Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal6Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal4Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal5Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal6Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default6 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with four parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractPrivateSignal4 extends AbstractSignal { AbstractPrivateSignal4(){super();} AbstractPrivateSignal4(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal4(Class... types) { super(types); } AbstractPrivateSignal4(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal5Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal6Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal5Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal6Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default5 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractPrivateSignal5 extends AbstractSignal { AbstractPrivateSignal5(){super();} AbstractPrivateSignal5(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal5(Class... types) { super(types); } AbstractPrivateSignal5(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot5 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot5 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal6Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal6Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default4 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractPrivateSignal6 extends AbstractSignal { AbstractPrivateSignal6(){super();} AbstractPrivateSignal6(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal6(Class... types) { super(types); } AbstractPrivateSignal6(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot5 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot6 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot5 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot6 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal7Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal7Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default3 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractPrivateSignal7 extends AbstractSignal { AbstractPrivateSignal7(){super();} AbstractPrivateSignal7(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal7(Class... types) { super(types); } AbstractPrivateSignal7(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot5 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot6 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot7 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot5 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot6 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot7 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal8Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal8Default1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default2 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractPrivateSignal8 extends AbstractSignal { AbstractPrivateSignal8(){super();} AbstractPrivateSignal8(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal8(Class... types) { super(types); } AbstractPrivateSignal8(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot5 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot6 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot7 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot8 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot5 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot6 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot7 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot8 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractSignal9Default1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractSignal9Default1 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractPrivateSignal9 extends AbstractSignal { AbstractPrivateSignal9(){super();} AbstractPrivateSignal9(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPrivateSignal9(Class... types) { super(types); } AbstractPrivateSignal9(String signalName, Class... types) { super(signalName, types); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot0 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot1 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot2 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot3 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot4 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot5 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot6 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot7 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot8 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Initializes a connection to the slot. * * @param slot the slot to be connected * @param connectionType type of connection * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. * @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable. */ public final QMetaObject.Connection connect(Slot9 slot, Qt.ConnectionType... type) { return addConnectionToSlotObject(slot, type); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot0 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot1 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot2 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot3 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot4 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot5 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot6 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot7 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot8 slot) { return removeConnectionToSlotObject(slot); } /** * Removes the connection between the given signal and slot. * * @param slot the slot to be disconnected * @return true if successfully disconnected, or false otherwise. */ public final boolean disconnect(Slot9 slot) { return removeConnectionToSlotObject(slot); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal0 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal1 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal2 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal3 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal4 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal5 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal6 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal7 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal8 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second * signal to be emitted as well. * * @param signalOut The second signal. This will be emitted whenever this signal is emitted. * @param connectionType One of the connection types defined in the Qt interface. * @return connection if successful or null otherwise * @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible. */ public final QMetaObject.Connection connect(AbstractPublicSignal9 signalOut, Qt.ConnectionType... connectionType) { return connect(signalOut::emit, connectionType); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal0 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal1 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal2 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal3 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal4 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal5 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal6 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal7 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal8 signalOut) { return disconnect(signalOut::emit); } /** * Disconnects a signal from another signal if the two were previously connected by a call to connect. * A call to this function will assure that the emission of the first signal will not cause the emission of the second. * * @param signalOut The second signal. * @return true if the two signals were successfully disconnected, or false otherwise. */ public final boolean disconnect(AbstractPublicSignal9 signalOut) { return disconnect(signalOut::emit); } } /** * Supertype for all public parameterless signals. */ public static abstract class AbstractPublicSignal0 extends AbstractPrivateSignal0 { AbstractPublicSignal0(){super();} AbstractPublicSignal0(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal0(Class... types) { super(types); } AbstractPublicSignal0(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. */ public final void emit() { emitSignal(); } } /** * Supertype for all public signals with one parameter. * @param The type of the first parameter of the signal. */ public static abstract class AbstractPublicSignal1 extends AbstractPrivateSignal1 { AbstractPublicSignal1(){} AbstractPublicSignal1(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal1(Class... types) { super(types); } AbstractPublicSignal1(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 */ public final void emit(A arg1) { emitSignal(arg1); } } /** * Supertype for all public signals with two parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public static abstract class AbstractPublicSignal2 extends AbstractPrivateSignal2 { AbstractPublicSignal2(){super();} AbstractPublicSignal2(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal2(Class... types) { super(types); } AbstractPublicSignal2(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 */ public final void emit(A arg1, B arg2) { emitSignal(arg1, arg2); } } /** * Supertype for all public signals with three parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public static abstract class AbstractPublicSignal3 extends AbstractPrivateSignal3 { AbstractPublicSignal3(){super();} AbstractPublicSignal3(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal3(Class... types) { super(types); } AbstractPublicSignal3(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 */ public final void emit(A arg1, B arg2, C arg3) { emitSignal(arg1, arg2, arg3); } } /** * Supertype for all public signals with four parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractPublicSignal4 extends AbstractPrivateSignal4 { AbstractPublicSignal4(){super();} AbstractPublicSignal4(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal4(Class... types) { super(types); } AbstractPublicSignal4(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public final void emit(A arg1, B arg2, C arg3, D arg4) { emitSignal(arg1, arg2, arg3, arg4); } } /** * Supertype for all public signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public static abstract class AbstractPublicSignal5 extends AbstractPrivateSignal5 { AbstractPublicSignal5(){super();} AbstractPublicSignal5(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal5(Class... types) { super(types); } AbstractPublicSignal5(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public final void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emitSignal(arg1, arg2, arg3, arg4, arg5); } } /** * Supertype for all public signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractPublicSignal6 extends AbstractPrivateSignal6 { AbstractPublicSignal6(){super();} AbstractPublicSignal6(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal6(Class... types) { super(types); } AbstractPublicSignal6(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 */ public final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6); } } /** * Supertype for all public signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractPublicSignal7 extends AbstractPrivateSignal7 { AbstractPublicSignal7(){super();} AbstractPublicSignal7(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal7(Class... types) { super(types); } AbstractPublicSignal7(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 */ public final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } } /** * Supertype for all public signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractPublicSignal8 extends AbstractPrivateSignal8 { AbstractPublicSignal8(){super();} AbstractPublicSignal8(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal8(Class... types) { super(types); } AbstractPublicSignal8(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 * @param arg8 */ public final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } } /** * Supertype for all public signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractPublicSignal9 extends AbstractPrivateSignal9 { AbstractPublicSignal9(){super();} AbstractPublicSignal9(Class declaringClass, boolean isDisposedSignal) { super(declaringClass, isDisposedSignal); } AbstractPublicSignal9(Class... types) { super(types); } AbstractPublicSignal9(String signalName, Class... types) { super(signalName, types); } /** * Emits the signal. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 * @param arg8 * @param arg9 */ public final void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) { emitSignal(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); } } /** * Supertype for all public default signals with two parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. */ public static abstract class AbstractSignal2Default1 extends AbstractPublicSignal2 { AbstractSignal2Default1(Supplier arg2Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal2Default1(Supplier arg2Default){ super(); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal2Default1(Supplier arg2Default, Class... types) { super(types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal2Default1(String signalName, Supplier arg2Default){ super(signalName); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal2Default1(String signalName, Supplier arg2Default, Class... types) { super(signalName, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with three parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public static abstract class AbstractSignal3Default1 extends AbstractPublicSignal3 { AbstractSignal3Default1(Supplier arg3Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal3Default1(Supplier arg3Default){ super(); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal3Default1(Supplier arg3Default, Class... types) { super(types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal3Default1(String signalName, Supplier arg3Default, Class... types) { super(signalName, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with three parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. */ public static abstract class AbstractSignal3Default2 extends AbstractSignal3Default1 { AbstractSignal3Default2(Supplier arg2Default, Supplier arg3Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, declaringClass, isDisposedSignal); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal3Default2(Supplier arg2Default, Supplier arg3Default){ super(arg3Default); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal3Default2(Supplier arg2Default, Supplier arg3Default, Class... types) { super(arg3Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal3Default2(String signalName, Supplier arg2Default, Supplier arg3Default, Class... types) { super(signalName, arg3Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with four parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractSignal4Default1 extends AbstractPublicSignal4 { AbstractSignal4Default1(Supplier arg4Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal4Default1(Supplier arg4Default){ super(); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal4Default1(Supplier arg4Default, Class... types) { super(types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal4Default1(String signalName, Supplier arg4Default, Class... types) { super(signalName, types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with four parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractSignal4Default2 extends AbstractSignal4Default1 { AbstractSignal4Default2(Supplier arg3Default, Supplier arg4Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, declaringClass, isDisposedSignal); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal4Default2(Supplier arg3Default, Supplier arg4Default){ super(arg4Default); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal4Default2(Supplier arg3Default, Supplier arg4Default, Class... types) { super(arg4Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal4Default2(String signalName, Supplier arg3Default, Supplier arg4Default, Class... types) { super(signalName, arg4Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with four parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. */ public static abstract class AbstractSignal4Default3 extends AbstractSignal4Default2 { AbstractSignal4Default3(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, declaringClass, isDisposedSignal); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal4Default3(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default){ super(arg3Default, arg4Default); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal4Default3(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Class... types) { super(arg3Default, arg4Default, types); if(arg3Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal4Default3(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Class... types) { super(signalName, arg3Default, arg4Default, types); if(arg3Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public static abstract class AbstractSignal5Default1 extends AbstractPublicSignal5 { AbstractSignal5Default1(Supplier arg5Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal5Default1(Supplier arg5Default){ super(); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal5Default1(Supplier arg5Default, Class... types) { super(types); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal5Default1(String signalName, Supplier arg5Default, Class... types) { super(signalName, types); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } private final Supplier arg5Default; /** * Emits the signal with default value for arg5. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public void emit(A arg1, B arg2, C arg3, D arg4) { emit(arg1, arg2, arg3, arg4, arg5Default.get()); } } /** * Supertype for all public default signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public static abstract class AbstractSignal5Default2 extends AbstractSignal5Default1 { AbstractSignal5Default2(Supplier arg4Default, Supplier arg5Default, Class declaringClass, boolean isDisposedSignal){ super(arg5Default, declaringClass, isDisposedSignal); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal5Default2(Supplier arg4Default, Supplier arg5Default){ super(arg5Default); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal5Default2(Supplier arg4Default, Supplier arg5Default, Class... types) { super(arg5Default, types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal5Default2(String signalName, Supplier arg4Default, Supplier arg5Default, Class... types) { super(signalName, arg5Default, types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public static abstract class AbstractSignal5Default3 extends AbstractSignal5Default2 { AbstractSignal5Default3(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, arg5Default, declaringClass, isDisposedSignal); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal5Default3(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default){ super(arg4Default, arg5Default); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal5Default3(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class... types) { super(arg4Default, arg5Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal5Default3(String signalName, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class... types) { super(signalName, arg4Default, arg5Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with five parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. */ public static abstract class AbstractSignal5Default4 extends AbstractSignal5Default3 { AbstractSignal5Default4(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, arg5Default, declaringClass, isDisposedSignal); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal5Default4(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default){ super(arg3Default, arg4Default, arg5Default); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal5Default4(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class... types) { super(arg3Default, arg4Default, arg5Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal5Default4(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Class... types) { super(signalName, arg3Default, arg4Default, arg5Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractSignal6Default1 extends AbstractPublicSignal6 { AbstractSignal6Default1(Supplier arg6Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg6Default!=null){ this.arg6Default = arg6Default; }else{ throw new QNoDefaultValueException(6); } } AbstractSignal6Default1(Supplier arg6Default){ super(); if(arg6Default!=null){ this.arg6Default = arg6Default; }else{ throw new QNoDefaultValueException(6); } } AbstractSignal6Default1(Supplier arg6Default, Class... types) { super(types); if(arg6Default!=null){ this.arg6Default = arg6Default; }else{ throw new QNoDefaultValueException(6); } } AbstractSignal6Default1(String signalName, Supplier arg6Default, Class... types) { super(signalName, types); if(arg6Default!=null){ this.arg6Default = arg6Default; }else{ throw new QNoDefaultValueException(6); } } private final Supplier arg6Default; /** * Emits the signal with default value for arg6. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emit(arg1, arg2, arg3, arg4, arg5, arg6Default.get()); } } /** * Supertype for all public default signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractSignal6Default2 extends AbstractSignal6Default1 { AbstractSignal6Default2(Supplier arg5Default, Supplier arg6Default, Class declaringClass, boolean isDisposedSignal){ super(arg6Default, declaringClass, isDisposedSignal); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal6Default2(Supplier arg5Default, Supplier arg6Default){ super(arg6Default); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal6Default2(Supplier arg5Default, Supplier arg6Default, Class... types) { super(arg6Default, types); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } AbstractSignal6Default2(String signalName, Supplier arg5Default, Supplier arg6Default, Class... types) { super(signalName, arg6Default, types); if(arg5Default!=null){ this.arg5Default = arg5Default; }else{ throw new QNoDefaultValueException(5); } } private final Supplier arg5Default; /** * Emits the signal with default value for arg5. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public void emit(A arg1, B arg2, C arg3, D arg4) { emit(arg1, arg2, arg3, arg4, arg5Default.get()); } } /** * Supertype for all public default signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractSignal6Default3 extends AbstractSignal6Default2 { AbstractSignal6Default3(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class declaringClass, boolean isDisposedSignal){ super(arg5Default, arg6Default, declaringClass, isDisposedSignal); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal6Default3(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg5Default, arg6Default); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal6Default3(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(arg5Default, arg6Default, types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } AbstractSignal6Default3(String signalName, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(signalName, arg5Default, arg6Default, types); if(arg4Default!=null){ this.arg4Default = arg4Default; }else{ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractSignal6Default4 extends AbstractSignal6Default3 { AbstractSignal6Default4(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, arg5Default, arg6Default, declaringClass, isDisposedSignal); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal6Default4(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg4Default, arg5Default, arg6Default); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal6Default4(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(arg4Default, arg5Default, arg6Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } AbstractSignal6Default4(String signalName, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(signalName, arg4Default, arg5Default, arg6Default, types); if(arg3Default!=null){ this.arg3Default = arg3Default; }else{ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with six parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. */ public static abstract class AbstractSignal6Default5 extends AbstractSignal6Default4 { AbstractSignal6Default5(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, arg5Default, arg6Default, declaringClass, isDisposedSignal); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal6Default5(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default){ super(arg3Default, arg4Default, arg5Default, arg6Default); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal6Default5(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(arg3Default, arg4Default, arg5Default, arg6Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } AbstractSignal6Default5(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Class... types) { super(signalName, arg3Default, arg4Default, arg5Default, arg6Default, types); if(arg2Default!=null){ this.arg2Default = arg2Default; }else{ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default1 extends AbstractPublicSignal7 { AbstractSignal7Default1(Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); if(arg7Default!=null){ this.arg7Default = arg7Default; }else{ throw new QNoDefaultValueException(7); } } AbstractSignal7Default1(Supplier arg7Default){ super(); if(arg7Default!=null){ this.arg7Default = arg7Default; }else{ throw new QNoDefaultValueException(7); } } AbstractSignal7Default1(Supplier arg7Default, Class... types) { super(types); if(arg7Default!=null){ this.arg7Default = arg7Default; }else{ throw new QNoDefaultValueException(7); } } AbstractSignal7Default1(String signalName, Supplier arg7Default, Class... types) { super(signalName, types); if(arg7Default!=null){ this.arg7Default = arg7Default; }else{ throw new QNoDefaultValueException(7); } } private final Supplier arg7Default; /** * Emits the signal with default value for arg7. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default2 extends AbstractSignal7Default1 { AbstractSignal7Default2(Supplier arg6Default, Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(arg7Default, declaringClass, isDisposedSignal); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal7Default2(Supplier arg6Default, Supplier arg7Default){ super(arg7Default); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal7Default2(Supplier arg6Default, Supplier arg7Default, Class... types) { super(arg7Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal7Default2(String signalName, Supplier arg6Default, Supplier arg7Default, Class... types) { super(signalName, arg7Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } private final Supplier arg6Default; /** * Emits the signal with default value for arg6. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emit(arg1, arg2, arg3, arg4, arg5, arg6Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default3 extends AbstractSignal7Default2 { AbstractSignal7Default3(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(arg6Default, arg7Default, declaringClass, isDisposedSignal); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal7Default3(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg6Default, arg7Default); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal7Default3(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(arg6Default, arg7Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal7Default3(String signalName, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(signalName, arg6Default, arg7Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } private final Supplier arg5Default; /** * Emits the signal with default value for arg5. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public void emit(A arg1, B arg2, C arg3, D arg4) { emit(arg1, arg2, arg3, arg4, arg5Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default4 extends AbstractSignal7Default3 { AbstractSignal7Default4(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(arg5Default, arg6Default, arg7Default, declaringClass, isDisposedSignal); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal7Default4(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg5Default, arg6Default, arg7Default); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal7Default4(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(arg5Default, arg6Default, arg7Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal7Default4(String signalName, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(signalName, arg5Default, arg6Default, arg7Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default5 extends AbstractSignal7Default4 { AbstractSignal7Default5(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, arg5Default, arg6Default, arg7Default, declaringClass, isDisposedSignal); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal7Default5(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg4Default, arg5Default, arg6Default, arg7Default); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal7Default5(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(arg4Default, arg5Default, arg6Default, arg7Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal7Default5(String signalName, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(signalName, arg4Default, arg5Default, arg6Default, arg7Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with seven parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. */ public static abstract class AbstractSignal7Default6 extends AbstractSignal7Default5 { AbstractSignal7Default6(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, declaringClass, isDisposedSignal); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal7Default6(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal7Default6(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal7Default6(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Class... types) { super(signalName, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default1 extends AbstractPublicSignal8 { AbstractSignal8Default1(Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal8Default1(Supplier arg8Default){ super(); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal8Default1(Supplier arg8Default, Class... types) { super(types); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal8Default1(String signalName, Supplier arg8Default, Class... types) { super(signalName, types); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } private final Supplier arg8Default; /** * Emits the signal with default value for arg8. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default2 extends AbstractSignal8Default1 { AbstractSignal8Default2(Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg8Default, declaringClass, isDisposedSignal); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal8Default2(Supplier arg7Default, Supplier arg8Default){ super(arg8Default); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal8Default2(Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg8Default, types); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal8Default2(String signalName, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg8Default, types); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } private final Supplier arg7Default; /** * Emits the signal with default value for arg7. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default3 extends AbstractSignal8Default2 { AbstractSignal8Default3(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg7Default, arg8Default, declaringClass, isDisposedSignal); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal8Default3(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg7Default, arg8Default); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal8Default3(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg7Default, arg8Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal8Default3(String signalName, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg7Default, arg8Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } private final Supplier arg6Default; /** * Emits the signal with default value for arg6. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emit(arg1, arg2, arg3, arg4, arg5, arg6Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default4 extends AbstractSignal8Default3 { AbstractSignal8Default4(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg6Default, arg7Default, arg8Default); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal8Default4(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg6Default, arg7Default, arg8Default, declaringClass, isDisposedSignal); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal8Default4(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg6Default, arg7Default, arg8Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal8Default4(String signalName, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg6Default, arg7Default, arg8Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } private final Supplier arg5Default; /** * Emits the signal with default value for arg5. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public void emit(A arg1, B arg2, C arg3, D arg4) { emit(arg1, arg2, arg3, arg4, arg5Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default5 extends AbstractSignal8Default4 { AbstractSignal8Default5(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg5Default, arg6Default, arg7Default, arg8Default, declaringClass, isDisposedSignal); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal8Default5(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg5Default, arg6Default, arg7Default, arg8Default); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal8Default5(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal8Default5(String signalName, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default6 extends AbstractSignal8Default5 { AbstractSignal8Default6(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, declaringClass, isDisposedSignal); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal8Default6(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal8Default6(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal8Default6(String signalName, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with eight parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. */ public static abstract class AbstractSignal8Default7 extends AbstractSignal8Default6 { AbstractSignal8Default7(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal8Default7(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, declaringClass, isDisposedSignal); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal8Default7(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal8Default7(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Class... types) { super(signalName, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default1 extends AbstractPublicSignal9 { AbstractSignal9Default1(Supplier arg9Default){ super(); this.arg9Default = arg9Default; if(this.arg9Default==null){ throw new QNoDefaultValueException(9); } } AbstractSignal9Default1(Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(declaringClass, isDisposedSignal); this.arg9Default = arg9Default; if(this.arg9Default==null){ throw new QNoDefaultValueException(9); } } AbstractSignal9Default1(Supplier arg9Default, Class... types) { super(types); this.arg9Default = arg9Default; if(this.arg9Default==null){ throw new QNoDefaultValueException(9); } } AbstractSignal9Default1(String signalName, Supplier arg9Default, Class... types) { super(signalName, types); this.arg9Default = arg9Default; if(this.arg9Default==null){ throw new QNoDefaultValueException(9); } } private final Supplier arg9Default; /** * Emits the signal with default value for arg9. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 * @param arg8 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default2 extends AbstractSignal9Default1 { AbstractSignal9Default2(Supplier arg8Default, Supplier arg9Default){ super(arg9Default); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal9Default2(Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg9Default, declaringClass, isDisposedSignal); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal9Default2(Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg9Default, types); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } AbstractSignal9Default2(String signalName, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg9Default, types); this.arg8Default = arg8Default; if(this.arg8Default==null){ throw new QNoDefaultValueException(8); } } private final Supplier arg8Default; /** * Emits the signal with default value for arg8. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 * @param arg7 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default3 extends AbstractSignal9Default2 { AbstractSignal9Default3(Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg8Default, arg9Default); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal9Default3(Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal9Default3(Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg8Default, arg9Default, types); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } AbstractSignal9Default3(String signalName, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg8Default, arg9Default, types); this.arg7Default = arg7Default; if(this.arg7Default==null){ throw new QNoDefaultValueException(7); } } private final Supplier arg7Default; /** * Emits the signal with default value for arg7. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 * @param arg6 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) { emit(arg1, arg2, arg3, arg4, arg5, arg6, arg7Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default4 extends AbstractSignal9Default3 { AbstractSignal9Default4(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg7Default, arg8Default, arg9Default); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal9Default4(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg7Default, arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal9Default4(Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg7Default, arg8Default, arg9Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } AbstractSignal9Default4(String signalName, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg7Default, arg8Default, arg9Default, types); this.arg6Default = arg6Default; if(this.arg6Default==null){ throw new QNoDefaultValueException(6); } } private final Supplier arg6Default; /** * Emits the signal with default value for arg6. * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void emit(A arg1, B arg2, C arg3, D arg4, E arg5) { emit(arg1, arg2, arg3, arg4, arg5, arg6Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default5 extends AbstractSignal9Default4 { AbstractSignal9Default5(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg6Default, arg7Default, arg8Default, arg9Default); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal9Default5(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg6Default, arg7Default, arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal9Default5(Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } AbstractSignal9Default5(String signalName, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg5Default = arg5Default; if(this.arg5Default==null){ throw new QNoDefaultValueException(5); } } private final Supplier arg5Default; /** * Emits the signal with default value for arg5. * @param arg1 * @param arg2 * @param arg3 * @param arg4 */ public void emit(A arg1, B arg2, C arg3, D arg4) { emit(arg1, arg2, arg3, arg4, arg5Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default6 extends AbstractSignal9Default5 { AbstractSignal9Default6(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal9Default6(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal9Default6(Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } AbstractSignal9Default6(String signalName, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg4Default = arg4Default; if(this.arg4Default==null){ throw new QNoDefaultValueException(4); } } private final Supplier arg4Default; /** * Emits the signal with default value for arg4. * @param arg1 * @param arg2 * @param arg3 */ public void emit(A arg1, B arg2, C arg3) { emit(arg1, arg2, arg3, arg4Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default7 extends AbstractSignal9Default6 { AbstractSignal9Default7(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal9Default7(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal9Default7(Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } AbstractSignal9Default7(String signalName, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg3Default = arg3Default; if(this.arg3Default==null){ throw new QNoDefaultValueException(3); } } private final Supplier arg3Default; /** * Emits the signal with default value for arg3. * @param arg1 * @param arg2 */ public void emit(A arg1, B arg2) { emit(arg1, arg2, arg3Default.get()); } } /** * Supertype for all public default signals with nine parameters. * @param The type of the first parameter of the signal. * @param The type of the second parameter of the signal. * @param The type of the third parameter of the signal. * @param The type of the fourth parameter of the signal. * @param The type of the fifth parameter of the signal. * @param The type of the sixth parameter of the signal. * @param The type of the seventh parameter of the signal. * @param The type of the eighth parameter of the signal. * @param The type of the ninth parameter of the signal. */ public static abstract class AbstractSignal9Default8 extends AbstractSignal9Default7 { AbstractSignal9Default8(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal9Default8(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class declaringClass, boolean isDisposedSignal){ super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, declaringClass, isDisposedSignal); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal9Default8(Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } AbstractSignal9Default8(String signalName, Supplier arg2Default, Supplier arg3Default, Supplier arg4Default, Supplier arg5Default, Supplier arg6Default, Supplier arg7Default, Supplier arg8Default, Supplier arg9Default, Class... types) { super(signalName, arg3Default, arg4Default, arg5Default, arg6Default, arg7Default, arg8Default, arg9Default, types); this.arg2Default = arg2Default; if(this.arg2Default==null){ throw new QNoDefaultValueException(2); } } private final Supplier arg2Default; /** * Emits the signal with default value for arg2. * @param arg1 */ public void emit(A arg1) { emit(arg1, arg2Default.get()); } } @QtUninvokable public static AbstractPrivateSignal0 findSignal(QObject sender, String name) { return (AbstractPrivateSignal0)findSignalImpl(sender, name); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal1 findSignal(QObject sender, String name, Class typeA) { return (AbstractPrivateSignal1)findSignalImpl(sender, name, typeA); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal2 findSignal( QObject sender, String name, Class typeA, Class typeB) { return (AbstractPrivateSignal2)findSignalImpl(sender, name, typeA, typeB); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal3 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC) { return (AbstractPrivateSignal3)findSignalImpl(sender, name, typeA, typeB, typeC); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal4 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD) { return (AbstractPrivateSignal4)findSignalImpl(sender, name, typeA, typeB, typeC, typeD); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal5 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD, Class typeE) { return (AbstractPrivateSignal5)findSignalImpl(sender, name, typeA, typeB, typeC, typeD, typeE); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal6 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD, Class typeE, Class typeF) { return (AbstractPrivateSignal6)findSignalImpl(sender, name, typeA, typeB, typeC, typeD, typeE, typeF); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal7 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD, Class typeE, Class typeF, Class typeG) { return (AbstractPrivateSignal7)findSignalImpl(sender, name, typeA, typeB, typeC, typeD, typeE, typeF, typeG); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal8 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD, Class typeE, Class typeF, Class typeG, Class typeH) { return (AbstractPrivateSignal8)findSignalImpl(sender, name, typeA, typeB, typeC, typeD, typeE, typeF, typeG, typeH); } @SuppressWarnings("unchecked") @QtUninvokable public static AbstractPrivateSignal9 findSignal( QObject sender, String name, Class typeA, Class typeB, Class typeC, Class typeD, Class typeE, Class typeF, Class typeG, Class typeH, Class typeI) { return (AbstractPrivateSignal9)findSignalImpl(sender, name, typeA, typeB, typeC, typeD, typeE, typeF, typeG, typeH, typeI); } @QtUninvokable public static AbstractSignal findSignal(QObject sender, String name, Class... types){ return findSignalImpl(sender, name, types); } @QtUninvokable private static AbstractSignal findSignalImpl(QObject sender, String name, Class... types){ QtJambi_LibraryUtilities.internal.checkedNativeId(Objects.requireNonNull(sender)); return QtJambiInternal.findSignal(sender, name, types); } @QtUninvokable static QMetaObject forGadget(Object gadget) { if(gadget instanceof QtGadget) { return ((QtGadget) gadget).staticMetaObject(); }else { return QMetaObject.forType(gadget.getClass()); } } @QtUninvokable QtAbstractEnumerator getEnumEntry(QMetaEnum metaEnum, int value) { if(enumEntries!=null) { EnumEntries ee = enumEntries.get(enumeratorIndex(metaEnum)); if(ee==null) { return null; }else{ return ee.enumeratorConstantDirectory().get(value); } } return null; } @QtUninvokable private int enumeratorIndex(QMetaEnum metaEnum) { return enumeratorIndex(metaObjectPointer, QtJambi_LibraryUtilities.internal.nativeId(metaEnum)); } @QtUninvokable private static native int enumeratorIndex(long metaObjectPointer, long metaEnumId); static boolean disconnectAll(QtSignalEmitterInterface sender, Object receiver) { return AbstractSignal.disconnectAll(sender, receiver); } }