io.qt.activex.QAxScript Maven / Gradle / Ivy
package io.qt.activex;
import io.qt.*;
/**
* Wrapper around script code
* Java wrapper for Qt class QAxScript
*/
public class QAxScript extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAxScript.class);
/**
* Java wrapper for Qt enum QAxScript::FunctionFlags
*/
@QtUnlistedEnum
public enum FunctionFlags implements QtEnumerator {
/**
* Representing QAxScript:: FunctionNames
*/
FunctionNames(0),
/**
* Representing QAxScript:: FunctionSignatures
*/
FunctionSignatures(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private FunctionFlags(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FunctionFlags resolve(int value) {
switch (value) {
case 0: return FunctionNames;
case 1: return FunctionSignatures;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QAxScript:: entered()
*/
public final @NonNull Signal0 entered = new Signal0();
/**
* See QAxScript:: error(int, QString, int, QString)
*/
public final @NonNull Signal4 error = new Signal4<>();
/**
* Wrapper class for overloaded signals:
*
* finished()
* finished(const QVariant & result)
* finished(int code, const QString & source, const QString & description, const QString & help)
*
*/
public final class MultiSignal_finished extends MultiSignal{
private MultiSignal_finished(){
super();
}
/**
* Provides an overloaded parameterless signal.
* @return overloaded signal
*/
public final Signal0 overload() throws QNoSuchSignalException{
return (Signal0)super.overload();
}
/**
* Provides an overloaded signal by parameter type.
* The only valid call is finished.overload(java.lang.Object.class)
* {@link QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param type1 value of type A
* @return overloaded signal
* @throws QNoSuchSignalException if signal is not available
*/
@QtAllowedTypeSet({java.lang.Object.class})
public final Signal1 overload(Class type1) throws QNoSuchSignalException{
return (Signal1)super.overload(type1);
}
/**
* 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull Slot1 slot, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect(slot, connectionType);
}
/**
* Removes the connection to the given slot.
*
* @param slot the slot to be disconnected
* @return true
if successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull Slot1 slot) {
return super.disconnect(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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull Connectable1 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull Connectable1 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* 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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull AbstractPublicSignal1 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull AbstractPublicSignal1 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* Provides an overloaded signal by parameter types.
* The only valid call is finished.overload(int.class, java.lang.String.class, java.lang.String.class, java.lang.String.class)
* {@link QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param signal parameter type
* @param signal parameter type
* @param signal parameter type
* @param type1 value of type A
* @param type2 value of type B
* @param type3 value of type C
* @param type4 value of type D
* @return overloaded signal
* @throws QNoSuchSignalException if signal is not available
*/
@QtAllowedTypeSet({int.class, java.lang.String.class, java.lang.String.class, java.lang.String.class})
public final Signal4 overload(Class type1, Class type2, Class type3, Class type4) throws QNoSuchSignalException{
return (Signal4)super.overload(type1, type2, type3, type4);
}
/**
* 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull Slot4 slot, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect(slot, connectionType);
}
/**
* Removes the connection to the given slot.
*
* @param slot the slot to be disconnected
* @return true
if successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull Slot4 slot) {
return super.disconnect(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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull Connectable4 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull Connectable4 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* 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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.@StrictNonNull AbstractPublicSignal4 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.@StrictNonNull AbstractPublicSignal4 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.Slot3 slot, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect(slot, connectionType);
}
/**
* Removes the connection to the given slot.
*
* @param slot the slot to be disconnected
* @return true
if successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.Slot3 slot) {
return super.disconnect(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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal3 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.AbstractPublicSignal3 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.Slot2 slot, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect(slot, connectionType);
}
/**
* Removes the connection to the given slot.
*
* @param slot the slot to be disconnected
* @return true
if successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.Slot2 slot) {
return super.disconnect(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 signal 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 QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.@NonNull Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal2 signal, io.qt.core.Qt.@NonNull ConnectionType @NonNull... connectionType) throws QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, 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 signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.AbstractPublicSignal2 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
*
*
*/
public final void emit() {
((Signal0)overload()).emit();
}
/**
* See QAxScript:: finished(QVariant)
*
*/
public final void emit(java.lang.Object result) {
((Signal1)overload(java.lang.Object.class)).emit(result);
}
/**
* See QAxScript:: finished(int, QString, QString, QString)
*
*/
public final void emit(int code, java.lang.@NonNull String source, java.lang.@NonNull String description, java.lang.@NonNull String help) {
((Signal4)overload(int.class, java.lang.String.class, java.lang.String.class, java.lang.String.class)).emit(code, source, description, help);
}
};
/**
* Overloaded signals:
*
* finished()
* finished(QVariant)
* finished(int, QString, QString, QString)
*
*/
public final @NonNull MultiSignal_finished finished = new MultiSignal_finished();
/**
* See QAxScript:: stateChanged(int)
*/
public final @NonNull Signal1 stateChanged = new Signal1<>();
/**
* See QAxScript:: QAxScript(QString, QAxScriptManager*)
* @param name
* @param manager
*/
public QAxScript(java.lang.@NonNull String name, io.qt.activex.@Nullable QAxScriptManager manager){
super((QPrivateConstructor)null);
initialize_native(this, name, manager);
}
private native static void initialize_native(QAxScript instance, java.lang.String name, io.qt.activex.QAxScriptManager manager);
/**
* See QAxScript:: call(QString, QList<QVariant>&)
* @param function
* @param arguments
* @return
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.util.@NonNull Collection extends java.lang.Object> arguments){
return call_native_cref_QString_ref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), function, arguments);
}
@QtUninvokable
private native java.lang.Object call_native_cref_QString_ref_QList(long __this__nativeId, java.lang.String function, java.util.Collection extends java.lang.Object> arguments);
/**
* See QAxScript:: call(QString, QVariant, QVariant, QVariant, QVariant, QVariant, QVariant, QVariant, QVariant)
* @param function
* @param v1
* @param v2
* @param v3
* @param v4
* @param v5
* @param v6
* @param v7
* @param v8
* @return
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7, java.lang.Object v8){
return call_native_cref_QString_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), function, v1, v2, v3, v4, v5, v6, v7, v8);
}
@QtUninvokable
private native java.lang.Object call_native_cref_QString_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant_cref_QVariant(long __this__nativeId, java.lang.String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7, java.lang.Object v8);
/**
* See QAxScript:: functions(QAxScript::FunctionFlags)const
* @param arg__1
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList functions(io.qt.activex.QAxScript.@NonNull FunctionFlags arg__1){
return functions_native_QAxScript_FunctionFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native io.qt.core.QStringList functions_native_QAxScript_FunctionFlags_constfct(long __this__nativeId, int arg__1);
/**
* See QAxScript:: load(QString, QString)
* @param code
* @param language
* @return
*/
@QtUninvokable
public final boolean load(java.lang.@NonNull String code, java.lang.@NonNull String language){
return load_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), code, language);
}
@QtUninvokable
private native boolean load_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String code, java.lang.String language);
/**
* See QAxScript:: scriptCode()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String scriptCode(){
return scriptCode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String scriptCode_native_constfct(long __this__nativeId);
/**
* See QAxScript:: scriptEngine()const
* @return
*/
@QtUninvokable
public final io.qt.activex.@Nullable QAxScriptEngine scriptEngine(){
return scriptEngine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.activex.QAxScriptEngine scriptEngine_native_constfct(long __this__nativeId);
/**
* See QAxScript:: scriptName()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String scriptName(){
return scriptName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String scriptName_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAxScript(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with v8 = null
.
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7) {
return call(function, v1, v2, v3, v4, v5, v6, v7, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6) {
return call(function, v1, v2, v3, v4, v5, v6, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5) {
return call(function, v1, v2, v3, v4, v5, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v5 = null
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4) {
return call(function, v1, v2, v3, v4, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v4 = null
* v5 = null
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2, java.lang.Object v3) {
return call(function, v1, v2, v3, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v3 = null
* v4 = null
* v5 = null
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1, java.lang.Object v2) {
return call(function, v1, v2, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v2 = null
* v3 = null
* v4 = null
* v5 = null
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function, java.lang.Object v1) {
return call(function, v1, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #call(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)}
* with:
* v1 = null
* v2 = null
* v3 = null
* v4 = null
* v5 = null
* v6 = null
* v7 = null
* v8 = null
*
*/
@QtUninvokable
public final java.lang.Object call(java.lang.@NonNull String function) {
return call(function, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null, (java.lang.Object)null);
}
/**
* Overloaded function for {@link #functions(io.qt.activex.QAxScript.FunctionFlags)}
* with arg__1 = io.qt.activex.QAxScript.FunctionFlags.FunctionNames
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList functions() {
return functions(io.qt.activex.QAxScript.FunctionFlags.FunctionNames);
}
/**
* Overloaded function for {@link #load(java.lang.String, java.lang.String)}
* with language = (String)null
.
*/
@QtUninvokable
public final boolean load(java.lang.@NonNull String code) {
return load(code, (String)null);
}
}