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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Used to start external programs and to communicate with them

*

Java wrapper for Qt class QProcess

*/ public class QProcess extends io.qt.core.QIODevice { @QtPropertyMember(enabled=false) private Object __rcStandardOutputProcess = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QProcess.class); /** *

Java wrapper for Qt enum QProcess::ExitStatus

*/ public enum ExitStatus implements QtEnumerator { /** *

Representing QProcess::NormalExit

*/ NormalExit(0), /** *

Representing QProcess::CrashExit

*/ CrashExit(1); static { QtJambi_LibraryUtilities.initialize(); } private ExitStatus(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ExitStatus resolve(int value) { switch (value) { case 0: return NormalExit; case 1: return CrashExit; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QProcess::InputChannelMode

*/ public enum InputChannelMode implements QtEnumerator { /** *

Representing QProcess::ManagedInputChannel

*/ ManagedInputChannel(0), /** *

Representing QProcess::ForwardedInputChannel

*/ ForwardedInputChannel(1); static { QtJambi_LibraryUtilities.initialize(); } private InputChannelMode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull InputChannelMode resolve(int value) { switch (value) { case 0: return ManagedInputChannel; case 1: return ForwardedInputChannel; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QProcess::ProcessChannel

*/ public enum ProcessChannel implements QtEnumerator { /** *

Representing QProcess::StandardOutput

*/ StandardOutput(0), /** *

Representing QProcess::StandardError

*/ StandardError(1); static { QtJambi_LibraryUtilities.initialize(); } private ProcessChannel(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ProcessChannel resolve(int value) { switch (value) { case 0: return StandardOutput; case 1: return StandardError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QProcess::ProcessChannelMode

*/ public enum ProcessChannelMode implements QtEnumerator { /** *

Representing QProcess::SeparateChannels

*/ SeparateChannels(0), /** *

Representing QProcess::MergedChannels

*/ MergedChannels(1), /** *

Representing QProcess::ForwardedChannels

*/ ForwardedChannels(2), /** *

Representing QProcess::ForwardedOutputChannel

*/ ForwardedOutputChannel(3), /** *

Representing QProcess::ForwardedErrorChannel

*/ ForwardedErrorChannel(4); static { QtJambi_LibraryUtilities.initialize(); } private ProcessChannelMode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ProcessChannelMode resolve(int value) { switch (value) { case 0: return SeparateChannels; case 1: return MergedChannels; case 2: return ForwardedChannels; case 3: return ForwardedOutputChannel; case 4: return ForwardedErrorChannel; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QProcess::ProcessError

*/ public enum ProcessError implements QtEnumerator { /** *

Representing QProcess::FailedToStart

*/ FailedToStart(0), /** *

Representing QProcess::Crashed

*/ Crashed(1), /** *

Representing QProcess::Timedout

*/ Timedout(2), /** *

Representing QProcess::ReadError

*/ ReadError(3), /** *

Representing QProcess::WriteError

*/ WriteError(4), /** *

Representing QProcess::UnknownError

*/ UnknownError(5); static { QtJambi_LibraryUtilities.initialize(); } private ProcessError(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ProcessError resolve(int value) { switch (value) { case 0: return FailedToStart; case 1: return Crashed; case 2: return Timedout; case 3: return ReadError; case 4: return WriteError; case 5: return UnknownError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QProcess::ProcessState

*/ public enum ProcessState implements QtEnumerator { /** *

Representing QProcess::NotRunning

*/ NotRunning(0), /** *

Representing QProcess::Starting

*/ Starting(1), /** *

Representing QProcess::Running

*/ Running(2); static { QtJambi_LibraryUtilities.initialize(); } private ProcessState(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ProcessState resolve(int value) { switch (value) { case 0: return NotRunning; case 1: return Starting; case 2: return Running; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QProcess::errorOccurred(QProcess::ProcessError)

*/ public final @NonNull Signal1 errorOccurred = new Signal1<>(); /** *

See QProcess::finished(int,QProcess::ExitStatus)

*/ public final @NonNull Signal2Default1 finished = new Signal2Default1<>(()->io.qt.core.QProcess.ExitStatus.NormalExit); /** *

See QProcess::readyReadStandardError()

*/ public final @NonNull PrivateSignal0 readyReadStandardError = new PrivateSignal0(); /** *

See QProcess::readyReadStandardOutput()

*/ public final @NonNull PrivateSignal0 readyReadStandardOutput = new PrivateSignal0(); /** *

See QProcess::started()

*/ public final @NonNull PrivateSignal0 started = new PrivateSignal0(); /** *

See QProcess::stateChanged(QProcess::ProcessState)

*/ public final @NonNull PrivateSignal1 stateChanged = new PrivateSignal1<>(); /** *

See QProcess::QProcess(QObject*)

*/ public QProcess(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QProcess instance, io.qt.core.QObject parent); /** *

See QProcess::arguments()const

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList arguments(){ return arguments_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QStringList arguments_native_constfct(long __this__nativeId); /** *

See QProcess::closeReadChannel(QProcess::ProcessChannel)

*/ @QtUninvokable public final void closeReadChannel(io.qt.core.QProcess.@NonNull ProcessChannel channel){ closeReadChannel_native_QProcess_ProcessChannel(QtJambi_LibraryUtilities.internal.nativeId(this), channel.value()); } @QtUninvokable private native void closeReadChannel_native_QProcess_ProcessChannel(long __this__nativeId, int channel); /** *

See QProcess::closeWriteChannel()

*/ @QtUninvokable public final void closeWriteChannel(){ closeWriteChannel_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void closeWriteChannel_native(long __this__nativeId); /** *

See QProcess::environment()const

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList environment(){ return environment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QStringList environment_native_constfct(long __this__nativeId); /** *

See QProcess::error()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull ProcessError error(){ return io.qt.core.QProcess.ProcessError.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int error_native_constfct(long __this__nativeId); /** *

See QProcess::exitCode()const

*/ @QtUninvokable public final int exitCode(){ return exitCode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int exitCode_native_constfct(long __this__nativeId); /** *

See QProcess::exitStatus()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull ExitStatus exitStatus(){ return io.qt.core.QProcess.ExitStatus.resolve(exitStatus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int exitStatus_native_constfct(long __this__nativeId); /** *

See QProcess::inputChannelMode()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull InputChannelMode inputChannelMode(){ return io.qt.core.QProcess.InputChannelMode.resolve(inputChannelMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int inputChannelMode_native_constfct(long __this__nativeId); /** *

See QProcess::kill()

*/ public final void kill(){ kill_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void kill_native(long __this__nativeId); /** *

See QProcess::processChannelMode()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull ProcessChannelMode processChannelMode(){ return io.qt.core.QProcess.ProcessChannelMode.resolve(processChannelMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int processChannelMode_native_constfct(long __this__nativeId); /** *

See QProcess::processEnvironment()const

*/ @QtUninvokable public final io.qt.core.@NonNull QProcessEnvironment processEnvironment(){ return processEnvironment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QProcessEnvironment processEnvironment_native_constfct(long __this__nativeId); /** *

See QProcess::processId()const

*/ @QtUninvokable public final long processId(){ return processId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long processId_native_constfct(long __this__nativeId); /** *

See QProcess::program()const

*/ @QtUninvokable public final java.lang.@NonNull String program(){ return program_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String program_native_constfct(long __this__nativeId); /** *

See QProcess::readAllStandardError()

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray readAllStandardError(){ return readAllStandardError_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray readAllStandardError_native(long __this__nativeId); /** *

See QProcess::readAllStandardOutput()

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray readAllStandardOutput(){ return readAllStandardOutput_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray readAllStandardOutput_native(long __this__nativeId); /** *

See QProcess::readChannel()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull ProcessChannel readChannel(){ return io.qt.core.QProcess.ProcessChannel.resolve(readChannel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int readChannel_native_constfct(long __this__nativeId); /** *

See QProcess::setArguments(QStringList)

*/ @QtUninvokable public final void setArguments(java.util.@NonNull Collection arguments){ setArguments_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arguments); } @QtUninvokable private native void setArguments_native_cref_QStringList(long __this__nativeId, java.util.Collection arguments); /** *

See QProcess::setEnvironment(QStringList)

*/ @QtUninvokable public final void setEnvironment(java.util.@NonNull Collection environment){ setEnvironment_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), environment); } @QtUninvokable private native void setEnvironment_native_cref_QStringList(long __this__nativeId, java.util.Collection environment); /** *

See QProcess::setInputChannelMode(QProcess::InputChannelMode)

*/ @QtUninvokable public final void setInputChannelMode(io.qt.core.QProcess.@NonNull InputChannelMode mode){ setInputChannelMode_native_QProcess_InputChannelMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setInputChannelMode_native_QProcess_InputChannelMode(long __this__nativeId, int mode); /** *

See QProcess::setProcessChannelMode(QProcess::ProcessChannelMode)

*/ @QtUninvokable public final void setProcessChannelMode(io.qt.core.QProcess.@NonNull ProcessChannelMode mode){ setProcessChannelMode_native_QProcess_ProcessChannelMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setProcessChannelMode_native_QProcess_ProcessChannelMode(long __this__nativeId, int mode); /** *

See QProcess::setProcessEnvironment(QProcessEnvironment)

*/ @QtUninvokable public final void setProcessEnvironment(io.qt.core.@NonNull QProcessEnvironment environment){ setProcessEnvironment_native_cref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(environment)); } @QtUninvokable private native void setProcessEnvironment_native_cref_QProcessEnvironment(long __this__nativeId, long environment); /** *

See QProcess::setProcessState(QProcess::ProcessState)

*/ @QtUninvokable protected final void setProcessState(io.qt.core.QProcess.@NonNull ProcessState state){ setProcessState_native_QProcess_ProcessState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value()); } @QtUninvokable private native void setProcessState_native_QProcess_ProcessState(long __this__nativeId, int state); /** *

See QProcess::setProgram(QString)

*/ @QtUninvokable public final void setProgram(java.lang.@NonNull String program){ setProgram_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), program); } @QtUninvokable private native void setProgram_native_cref_QString(long __this__nativeId, java.lang.String program); /** *

See QProcess::setReadChannel(QProcess::ProcessChannel)

*/ @QtUninvokable public final void setReadChannel(io.qt.core.QProcess.@NonNull ProcessChannel channel){ setReadChannel_native_QProcess_ProcessChannel(QtJambi_LibraryUtilities.internal.nativeId(this), channel.value()); } @QtUninvokable private native void setReadChannel_native_QProcess_ProcessChannel(long __this__nativeId, int channel); /** *

See QProcess::setStandardErrorFile(QString,QIODeviceBase::OpenMode)

*/ @QtUninvokable public final void setStandardErrorFile(java.lang.@NonNull String fileName, io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ if(mode.value()!=io.qt.core.QIODeviceBase.OpenModeFlag.Append.value() && mode.value()!=io.qt.core.QIODeviceBase.OpenModeFlag.Truncate.value()) throw new IllegalArgumentException("Argument mode: Append or Truncate expected"); setStandardErrorFile_native_cref_QString_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value()); } @QtUninvokable private native void setStandardErrorFile_native_cref_QString_QIODeviceBase_OpenMode(long __this__nativeId, java.lang.String fileName, int mode); /** *

See QProcess::setStandardInputFile(QString)

*/ @QtUninvokable public final void setStandardInputFile(java.lang.@NonNull String fileName){ setStandardInputFile_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @QtUninvokable private native void setStandardInputFile_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QProcess::setStandardOutputFile(QString,QIODeviceBase::OpenMode)

*/ @QtUninvokable public final void setStandardOutputFile(java.lang.@NonNull String fileName, io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ if(mode.value()!=io.qt.core.QIODeviceBase.OpenModeFlag.Append.value() && mode.value()!=io.qt.core.QIODeviceBase.OpenModeFlag.Truncate.value()) throw new IllegalArgumentException("Argument mode: Append or Truncate expected"); setStandardOutputFile_native_cref_QString_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value()); } @QtUninvokable private native void setStandardOutputFile_native_cref_QString_QIODeviceBase_OpenMode(long __this__nativeId, java.lang.String fileName, int mode); /** *

See QProcess::setStandardOutputProcess(QProcess*)

*/ @QtUninvokable public final void setStandardOutputProcess(io.qt.core.@Nullable QProcess destination){ setStandardOutputProcess_native_QProcess_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(destination)); __rcStandardOutputProcess = destination; } @QtUninvokable private native void setStandardOutputProcess_native_QProcess_ptr(long __this__nativeId, long destination); /** *

See QProcess::setWorkingDirectory(QString)

*/ @QtUninvokable public final void setWorkingDirectory(java.lang.@NonNull String dir){ setWorkingDirectory_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), dir); } @QtUninvokable private native void setWorkingDirectory_native_cref_QString(long __this__nativeId, java.lang.String dir); /** *

See QProcess::start(QIODeviceBase::OpenMode)

*/ @QtUninvokable public final void start(io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ start_native_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void start_native_QIODeviceBase_OpenMode(long __this__nativeId, int mode); /** *

See QProcess::start(QString,QStringList,QIODeviceBase::OpenMode)

*/ @QtUninvokable public final void start(java.lang.@NonNull String program, java.util.@NonNull Collection arguments, io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ start_native_cref_QString_cref_QStringList_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), program, arguments, mode.value()); } @QtUninvokable private native void start_native_cref_QString_cref_QStringList_QIODeviceBase_OpenMode(long __this__nativeId, java.lang.String program, java.util.Collection arguments, int mode); /** *

See QProcess::startCommand(QString,QIODeviceBase::OpenMode)

*/ @QtUninvokable public final void startCommand(java.lang.@NonNull String command, io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ startCommand_native_cref_QString_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), command, mode.value()); } @QtUninvokable private native void startCommand_native_cref_QString_QIODeviceBase_OpenMode(long __this__nativeId, java.lang.String command, int mode); /** *

See QProcess::startDetached(qint64*)

*/ @QtUninvokable public final java.lang.@Nullable Long startDetached(){ return startDetached_native_qint64_ptr(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.@Nullable Long startDetached_native_qint64_ptr(long __this__nativeId); /** *

See QProcess::state()const

*/ @QtUninvokable public final io.qt.core.QProcess.@NonNull ProcessState state(){ return io.qt.core.QProcess.ProcessState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QProcess::terminate()

*/ public final void terminate(){ terminate_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void terminate_native(long __this__nativeId); /** *

See QProcess::waitForFinished(int)

*/ @QtUninvokable public final boolean waitForFinished(int msecs){ return waitForFinished_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native boolean waitForFinished_native_int(long __this__nativeId, int msecs); /** *

See QProcess::waitForStarted(int)

*/ @QtUninvokable public final boolean waitForStarted(int msecs){ return waitForStarted_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native boolean waitForStarted_native_int(long __this__nativeId, int msecs); /** *

See QProcess::workingDirectory()const

*/ @QtUninvokable public final java.lang.@NonNull String workingDirectory(){ return workingDirectory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String workingDirectory_native_constfct(long __this__nativeId); /** *

See QIODevice::bytesToWrite()const

*/ @QtUninvokable @Override public long bytesToWrite(){ return bytesToWrite_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long bytesToWrite_native_constfct(long __this__nativeId); /** *

See QIODevice::close()

*/ @QtUninvokable @Override public void close(){ close_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void close_native(long __this__nativeId); /** *

See QIODevice::isSequential()const

*/ @QtUninvokable @Override public boolean isSequential(){ return isSequential_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isSequential_native_constfct(long __this__nativeId); /** *

See QIODevice::open(QIODeviceBase::OpenMode)

*/ @QtUninvokable @Override public boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode mode){ return open_native_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native boolean open_native_QIODeviceBase_OpenMode(long __this__nativeId, int mode); /** *

See QIODevice::readData(char*,qint64)

*/ @QtUninvokable @Override protected int readData(java.nio.@Nullable ByteBuffer data){ return readData_native_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), data); } @QtUninvokable private native int readData_native_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer data); /** *

See QIODevice::waitForBytesWritten(int)

*/ @QtUninvokable @Override public boolean waitForBytesWritten(int msecs){ return waitForBytesWritten_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native boolean waitForBytesWritten_native_int(long __this__nativeId, int msecs); /** *

See QIODevice::waitForReadyRead(int)

*/ @QtUninvokable @Override public boolean waitForReadyRead(int msecs){ return waitForReadyRead_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } @QtUninvokable private native boolean waitForReadyRead_native_int(long __this__nativeId, int msecs); /** *

See QIODevice::writeData(const char*,qint64)

*/ @QtUninvokable @Override protected int writeData(java.nio.@Nullable ByteBuffer data){ return writeData_native_const_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), data); } @QtUninvokable private native int writeData_native_const_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer data); /** *

See QProcess::execute(QString,QStringList)

*/ public native static int execute(java.lang.@NonNull String program, java.util.@NonNull Collection arguments); /** *

Null device of the operating system

*

See QProcess::nullDevice()

*/ public native static java.lang.@NonNull String nullDevice(); /** *

See QProcess::splitCommand(QStringView)

*/ public native static io.qt.core.@NonNull QStringList splitCommand(java.lang.@NonNull String command); /** *

See QProcess::startDetached(QString,QStringList,QString,qint64*)

*/ public native static java.lang.@Nullable Long startDetached(java.lang.@NonNull String program, java.util.@NonNull Collection arguments, java.lang.@NonNull String workingDirectory); /** *

See QProcess::systemEnvironment()

*/ public native static io.qt.core.@NonNull QStringList systemEnvironment(); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QProcess(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QProcess(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QProcess instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QProcess(io.qt.core.QObject)} * with parent = null.

*/ public QProcess() { this((io.qt.core.QObject)null); } /** *

Overloaded function for {@link #setStandardErrorFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)} * with mode = new io.qt.core.QIODeviceBase.OpenMode(8).

*/ @QtUninvokable public final void setStandardErrorFile(java.lang.@NonNull String fileName) { setStandardErrorFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(8)); } /** *

Overloaded function for {@link #setStandardErrorFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.

*/ @QtUninvokable public final void setStandardErrorFile(java.lang.@NonNull String fileName, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... mode) { setStandardErrorFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(mode)); } /** *

Overloaded function for {@link #setStandardOutputFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)} * with mode = new io.qt.core.QIODeviceBase.OpenMode(8).

*/ @QtUninvokable public final void setStandardOutputFile(java.lang.@NonNull String fileName) { setStandardOutputFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(8)); } /** *

Overloaded function for {@link #setStandardOutputFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.

*/ @QtUninvokable public final void setStandardOutputFile(java.lang.@NonNull String fileName, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... mode) { setStandardOutputFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(mode)); } /** *

Overloaded function for {@link #start(io.qt.core.QIODeviceBase.OpenMode)} * with mode = new io.qt.core.QIODeviceBase.OpenMode(3).

*/ @QtUninvokable public final void start() { start(new io.qt.core.QIODeviceBase.OpenMode(3)); } /** *

Overloaded function for {@link #start(io.qt.core.QIODeviceBase.OpenMode)}.

*/ @QtUninvokable public final void start(io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... mode) { start(new io.qt.core.QIODeviceBase.OpenMode(mode)); } /** *

Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODeviceBase.OpenMode)} * with mode = new io.qt.core.QIODeviceBase.OpenMode(3).

*/ @QtUninvokable public final void start(java.lang.@NonNull String program, java.util.@NonNull Collection arguments) { start(program, arguments, new io.qt.core.QIODeviceBase.OpenMode(3)); } /** *

Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODeviceBase.OpenMode)}

*

with:

    *
  • arguments = java.util.Collections.emptyList()
  • *
  • mode = new io.qt.core.QIODeviceBase.OpenMode(3)
  • *
*/ @QtUninvokable public final void start(java.lang.@NonNull String program) { start(program, java.util.Collections.emptyList(), new io.qt.core.QIODeviceBase.OpenMode(3)); } /** *

Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODeviceBase.OpenMode)}.

*/ @QtUninvokable public final void start(java.lang.@NonNull String program, java.util.@NonNull Collection arguments, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... mode) { start(program, arguments, new io.qt.core.QIODeviceBase.OpenMode(mode)); } /** *

Overloaded function for {@link #startCommand(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)} * with mode = new io.qt.core.QIODeviceBase.OpenMode(3).

*/ @QtUninvokable public final void startCommand(java.lang.@NonNull String command) { startCommand(command, new io.qt.core.QIODeviceBase.OpenMode(3)); } /** *

Overloaded function for {@link #startCommand(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.

*/ @QtUninvokable public final void startCommand(java.lang.@NonNull String command, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... mode) { startCommand(command, new io.qt.core.QIODeviceBase.OpenMode(mode)); } /** *

Overloaded function for {@link #waitForFinished(int)} * with msecs = 30000.

*/ @QtUninvokable public final boolean waitForFinished() { return waitForFinished((int)30000); } /** *

Overloaded function for {@link #waitForStarted(int)} * with msecs = 30000.

*/ @QtUninvokable public final boolean waitForStarted() { return waitForStarted((int)30000); } /** *

Overloaded function for {@link #execute(java.lang.String, java.util.Collection)} * with arguments = java.util.Collections.emptyList().

*/ public static int execute(java.lang.@NonNull String program) { return execute(program, java.util.Collections.emptyList()); } /** *

Overloaded function for {@link #startDetached(java.lang.String, java.util.Collection, java.lang.String)}

*

with:

    *
  • workingDirectory = (String)null
  • *
*/ public static java.lang.@Nullable Long startDetached(java.lang.@NonNull String program, java.util.@NonNull Collection arguments) { return startDetached(program, arguments, (String)null); } /** *

Overloaded function for {@link #startDetached(java.lang.String, java.util.Collection, java.lang.String)}

*

with:

    *
  • arguments = java.util.Collections.emptyList()
  • *
  • workingDirectory = (String)null
  • *
*/ public static java.lang.@Nullable Long startDetached(java.lang.@NonNull String program) { return startDetached(program, java.util.Collections.emptyList(), (String)null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy