io.qt.core.QProcess Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
/**
* Used to start external programs and to communicate with them
* Java wrapper for Qt class QProcess
*/
public class QProcess extends io.qt.core.QIODevice
{
@io.qt.QtPropertyMember(enabled=false)
private Object __rcStandardOutputProcess = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QProcess.class);
/**
* Java wrapper for Qt enum QProcess::ExitStatus
*/
public enum ExitStatus implements io.qt.QtEnumerator {
NormalExit(0),
CrashExit(1);
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 ExitStatus resolve(int value) {
switch (value) {
case 0: return NormalExit;
case 1: return CrashExit;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QProcess::InputChannelMode
*/
public enum InputChannelMode implements io.qt.QtEnumerator {
ManagedInputChannel(0),
ForwardedInputChannel(1);
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 InputChannelMode resolve(int value) {
switch (value) {
case 0: return ManagedInputChannel;
case 1: return ForwardedInputChannel;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QProcess::ProcessChannel
*/
public enum ProcessChannel implements io.qt.QtEnumerator {
StandardOutput(0),
StandardError(1);
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 ProcessChannel resolve(int value) {
switch (value) {
case 0: return StandardOutput;
case 1: return StandardError;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QProcess::ProcessChannelMode
*/
public enum ProcessChannelMode implements io.qt.QtEnumerator {
SeparateChannels(0),
MergedChannels(1),
ForwardedChannels(2),
ForwardedOutputChannel(3),
ForwardedErrorChannel(4);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QProcess::ProcessError
*/
public enum ProcessError implements io.qt.QtEnumerator {
FailedToStart(0),
Crashed(1),
Timedout(2),
ReadError(3),
WriteError(4),
UnknownError(5);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QProcess::ProcessState
*/
public enum ProcessState implements io.qt.QtEnumerator {
NotRunning(0),
Starting(1),
Running(2);
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 ProcessState resolve(int value) {
switch (value) {
case 0: return NotRunning;
case 1: return Starting;
case 2: return Running;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QProcess::errorOccurred(QProcess::ProcessError)
*/
public final Signal1 errorOccurred = new Signal1<>();
/**
* See QProcess::finished(int,QProcess::ExitStatus)
*/
public final Signal2Default1<@io.qt.QtPrimitiveType Integer, io.qt.core.QProcess.ExitStatus> finished = new Signal2Default1<>(()->io.qt.core.QProcess.ExitStatus.NormalExit);
/**
* See QProcess::readyReadStandardError()
*/
public final PrivateSignal0 readyReadStandardError = new PrivateSignal0();
/**
* See QProcess::readyReadStandardOutput()
*/
public final PrivateSignal0 readyReadStandardOutput = new PrivateSignal0();
/**
*
*/
public final PrivateSignal0 started = new PrivateSignal0();
/**
* See QProcess::stateChanged(QProcess::ProcessState)
*/
public final PrivateSignal1 stateChanged = new PrivateSignal1<>();
/**
* Overloaded constructor for {@link #QProcess(io.qt.core.QObject)}
* with parent = null
.
*/
public QProcess() {
this((io.qt.core.QObject)null);
}
/**
* See QProcess::QProcess(QObject*)
*/
public QProcess(io.qt.core.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList arguments(){
return arguments_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList arguments_native_constfct(long __this__nativeId);
/**
* See QProcess::closeReadChannel(QProcess::ProcessChannel)
*/
@io.qt.QtUninvokable
public final void closeReadChannel(io.qt.core.QProcess.ProcessChannel channel){
closeReadChannel_native_QProcess_ProcessChannel(QtJambi_LibraryUtilities.internal.nativeId(this), channel.value());
}
@io.qt.QtUninvokable
private native void closeReadChannel_native_QProcess_ProcessChannel(long __this__nativeId, int channel);
/**
* See QProcess::closeWriteChannel()
*/
@io.qt.QtUninvokable
public final void closeWriteChannel(){
closeWriteChannel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void closeWriteChannel_native(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.core.QStringList environment(){
return environment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList environment_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.ProcessError error(){
return io.qt.core.QProcess.ProcessError.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final int exitCode(){
return exitCode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int exitCode_native_constfct(long __this__nativeId);
/**
* See QProcess::exitStatus()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.ExitStatus exitStatus(){
return io.qt.core.QProcess.ExitStatus.resolve(exitStatus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int exitStatus_native_constfct(long __this__nativeId);
/**
* See QProcess::inputChannelMode()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.InputChannelMode inputChannelMode(){
return io.qt.core.QProcess.InputChannelMode.resolve(inputChannelMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.ProcessChannelMode processChannelMode(){
return io.qt.core.QProcess.ProcessChannelMode.resolve(processChannelMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int processChannelMode_native_constfct(long __this__nativeId);
/**
* See QProcess::processEnvironment()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcessEnvironment processEnvironment(){
return processEnvironment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QProcessEnvironment processEnvironment_native_constfct(long __this__nativeId);
/**
* See QProcess::processId()const
*/
@io.qt.QtUninvokable
public final long processId(){
return processId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long processId_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final java.lang.String program(){
return program_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String program_native_constfct(long __this__nativeId);
/**
* See QProcess::readAllStandardError()
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray readAllStandardError(){
return readAllStandardError_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray readAllStandardError_native(long __this__nativeId);
/**
* See QProcess::readAllStandardOutput()
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray readAllStandardOutput(){
return readAllStandardOutput_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray readAllStandardOutput_native(long __this__nativeId);
/**
* See QProcess::readChannel()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.ProcessChannel readChannel(){
return io.qt.core.QProcess.ProcessChannel.resolve(readChannel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int readChannel_native_constfct(long __this__nativeId);
/**
* See QProcess::setArguments(QStringList)
*/
@io.qt.QtUninvokable
public final void setArguments(java.util.Collection arguments){
setArguments_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arguments);
}
@io.qt.QtUninvokable
private native void setArguments_native_cref_QStringList(long __this__nativeId, java.util.Collection arguments);
@io.qt.QtUninvokable
public final void setEnvironment(java.util.Collection environment){
setEnvironment_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), environment);
}
@io.qt.QtUninvokable
private native void setEnvironment_native_cref_QStringList(long __this__nativeId, java.util.Collection environment);
/**
* See QProcess::setInputChannelMode(QProcess::InputChannelMode)
*/
@io.qt.QtUninvokable
public final void setInputChannelMode(io.qt.core.QProcess.InputChannelMode mode){
setInputChannelMode_native_QProcess_InputChannelMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setInputChannelMode_native_QProcess_InputChannelMode(long __this__nativeId, int mode);
/**
* See QProcess::setProcessChannelMode(QProcess::ProcessChannelMode)
*/
@io.qt.QtUninvokable
public final void setProcessChannelMode(io.qt.core.QProcess.ProcessChannelMode mode){
setProcessChannelMode_native_QProcess_ProcessChannelMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setProcessChannelMode_native_QProcess_ProcessChannelMode(long __this__nativeId, int mode);
/**
* See QProcess::setProcessEnvironment(QProcessEnvironment)
*/
@io.qt.QtUninvokable
public final void setProcessEnvironment(io.qt.core.QProcessEnvironment environment){
setProcessEnvironment_native_cref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(environment));
}
@io.qt.QtUninvokable
private native void setProcessEnvironment_native_cref_QProcessEnvironment(long __this__nativeId, long environment);
/**
* See QProcess::setProcessState(QProcess::ProcessState)
*/
@io.qt.QtUninvokable
protected final void setProcessState(io.qt.core.QProcess.ProcessState state){
setProcessState_native_QProcess_ProcessState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@io.qt.QtUninvokable
private native void setProcessState_native_QProcess_ProcessState(long __this__nativeId, int state);
/**
* See QProcess::setProgram(QString)
*/
@io.qt.QtUninvokable
public final void setProgram(java.lang.String program){
setProgram_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), program);
}
@io.qt.QtUninvokable
private native void setProgram_native_cref_QString(long __this__nativeId, java.lang.String program);
/**
* See QProcess::setReadChannel(QProcess::ProcessChannel)
*/
@io.qt.QtUninvokable
public final void setReadChannel(io.qt.core.QProcess.ProcessChannel channel){
setReadChannel_native_QProcess_ProcessChannel(QtJambi_LibraryUtilities.internal.nativeId(this), channel.value());
}
@io.qt.QtUninvokable
private native void setReadChannel_native_QProcess_ProcessChannel(long __this__nativeId, int channel);
/**
* Overloaded function for {@link #setStandardErrorFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName, io.qt.core.QIODeviceBase.OpenModeFlag ... mode){
setStandardErrorFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(mode));
}
/**
* Overloaded function for {@link #setStandardErrorFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}
* with mode = new io.qt.core.QIODeviceBase.OpenMode(8)
.
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName) {
setStandardErrorFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(8));
}
/**
* See QProcess::setStandardErrorFile(QString,OpenMode)
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName, io.qt.core.QIODeviceBase.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_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value());
}
@io.qt.QtUninvokable
private native void setStandardErrorFile_native_cref_QString_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, java.lang.String fileName, int mode);
/**
* See QProcess::setStandardInputFile(QString)
*/
@io.qt.QtUninvokable
public final void setStandardInputFile(java.lang.String fileName){
setStandardInputFile_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@io.qt.QtUninvokable
private native void setStandardInputFile_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
* Overloaded function for {@link #setStandardOutputFile(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName, io.qt.core.QIODeviceBase.OpenModeFlag ... mode){
setStandardOutputFile(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)
.
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName) {
setStandardOutputFile(fileName, new io.qt.core.QIODeviceBase.OpenMode(8));
}
/**
* See QProcess::setStandardOutputFile(QString,OpenMode)
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName, io.qt.core.QIODeviceBase.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_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value());
}
@io.qt.QtUninvokable
private native void setStandardOutputFile_native_cref_QString_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, java.lang.String fileName, int mode);
/**
* See QProcess::setStandardOutputProcess(QProcess*)
*/
@io.qt.QtUninvokable
public final void setStandardOutputProcess(io.qt.core.QProcess destination){
setStandardOutputProcess_native_QProcess_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(destination));
__rcStandardOutputProcess = destination;
}
@io.qt.QtUninvokable
private native void setStandardOutputProcess_native_QProcess_ptr(long __this__nativeId, long destination);
/**
* See QProcess::setWorkingDirectory(QString)
*/
@io.qt.QtUninvokable
public final void setWorkingDirectory(java.lang.String dir){
setWorkingDirectory_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), dir);
}
@io.qt.QtUninvokable
private native void setWorkingDirectory_native_cref_QString(long __this__nativeId, java.lang.String dir);
/**
* Overloaded function for {@link #start(io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void start(io.qt.core.QIODeviceBase.OpenModeFlag ... mode){
start(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)
.
*/
@io.qt.QtUninvokable
public final void start() {
start(new io.qt.core.QIODeviceBase.OpenMode(3));
}
/**
*
*/
@io.qt.QtUninvokable
public final void start(io.qt.core.QIODeviceBase.OpenMode mode){
start_native_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void start_native_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, int mode);
/**
* Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program, java.util.Collection arguments, io.qt.core.QIODeviceBase.OpenModeFlag ... mode){
start(program, arguments, 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)
.
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program, java.util.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)
*
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program) {
start(program, java.util.Collections.emptyList(), new io.qt.core.QIODeviceBase.OpenMode(3));
}
/**
* See QProcess::start(QString,QStringList,OpenMode)
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program, java.util.Collection arguments, io.qt.core.QIODeviceBase.OpenMode mode){
start_native_cref_QString_cref_QStringList_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), program, arguments, mode.value());
}
@io.qt.QtUninvokable
private native void start_native_cref_QString_cref_QStringList_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, java.lang.String program, java.util.Collection arguments, int mode);
/**
* Overloaded function for {@link #startCommand(java.lang.String, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void startCommand(java.lang.String command, io.qt.core.QIODeviceBase.OpenModeFlag ... mode){
startCommand(command, 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)
.
*/
@io.qt.QtUninvokable
public final void startCommand(java.lang.String command) {
startCommand(command, new io.qt.core.QIODeviceBase.OpenMode(3));
}
/**
* See QProcess::startCommand(QString,OpenMode)
*/
@io.qt.QtUninvokable
public final void startCommand(java.lang.String command, io.qt.core.QIODeviceBase.OpenMode mode){
startCommand_native_cref_QString_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), command, mode.value());
}
@io.qt.QtUninvokable
private native void startCommand_native_cref_QString_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, java.lang.String command, int mode);
@io.qt.QtUninvokable
public final java.lang.Long startDetached(){
return startDetached_native_long_long_ptr(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.Long startDetached_native_long_long_ptr(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QProcess.ProcessState state(){
return io.qt.core.QProcess.ProcessState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int state_native_constfct(long __this__nativeId);
/**
*
*/
public final void terminate(){
terminate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void terminate_native(long __this__nativeId);
/**
* Overloaded function for {@link #waitForFinished(int)}
* with msecs = 30000
.
*/
@io.qt.QtUninvokable
public final boolean waitForFinished() {
return waitForFinished((int)30000);
}
/**
* See QProcess::waitForFinished(int)
*/
@io.qt.QtUninvokable
public final boolean waitForFinished(int msecs){
return waitForFinished_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native boolean waitForFinished_native_int(long __this__nativeId, int msecs);
/**
* Overloaded function for {@link #waitForStarted(int)}
* with msecs = 30000
.
*/
@io.qt.QtUninvokable
public final boolean waitForStarted() {
return waitForStarted((int)30000);
}
/**
* See QProcess::waitForStarted(int)
*/
@io.qt.QtUninvokable
public final boolean waitForStarted(int msecs){
return waitForStarted_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native boolean waitForStarted_native_int(long __this__nativeId, int msecs);
/**
* See QProcess::workingDirectory()const
*/
@io.qt.QtUninvokable
public final java.lang.String workingDirectory(){
return workingDirectory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String workingDirectory_native_constfct(long __this__nativeId);
/**
* See QIODevice::bytesToWrite()const
*/
@io.qt.QtUninvokable
public long bytesToWrite(){
return bytesToWrite_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long bytesToWrite_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public void close(){
close_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void close_native(long __this__nativeId);
/**
* See QIODevice::isSequential()const
*/
@io.qt.QtUninvokable
public boolean isSequential(){
return isSequential_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isSequential_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public boolean open(io.qt.core.QIODeviceBase.OpenMode mode){
return open_native_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native boolean open_native_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, int mode);
/**
* See QIODevice::readData(char*,qint64)
*/
@io.qt.QtUninvokable
protected int readData(byte[] data){
return readData_native_char_ptr_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@io.qt.QtUninvokable
private native int readData_native_char_ptr_long_long(long __this__nativeId, byte[] data);
/**
* See QIODevice::waitForBytesWritten(int)
*/
@io.qt.QtUninvokable
public boolean waitForBytesWritten(int msecs){
return waitForBytesWritten_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native boolean waitForBytesWritten_native_int(long __this__nativeId, int msecs);
/**
* See QIODevice::waitForReadyRead(int)
*/
@io.qt.QtUninvokable
public boolean waitForReadyRead(int msecs){
return waitForReadyRead_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native boolean waitForReadyRead_native_int(long __this__nativeId, int msecs);
/**
* See QIODevice::writeData(const char*,qint64)
*/
@io.qt.QtUninvokable
protected int writeData(byte[] data){
return writeData_native_const_char_ptr_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@io.qt.QtUninvokable
private native int writeData_native_const_char_ptr_long_long(long __this__nativeId, byte[] data);
/**
* Overloaded function for {@link #execute(java.lang.String, java.util.Collection)}
* with arguments = java.util.Collections.emptyList()
.
*/
public static int execute(java.lang.String program) {
return execute(program, java.util.Collections.emptyList());
}
/**
* See QProcess::execute(QString,QStringList)
*/
public native static int execute(java.lang.String program, java.util.Collection arguments);
/**
* Null device of the operating system
*
*/
public native static java.lang.String nullDevice();
/**
* See QProcess::splitCommand(QStringView)
*/
public native static io.qt.core.QStringList splitCommand(java.lang.String command);
/**
* Overloaded function for {@link #startDetached(java.lang.String, java.util.Collection, java.lang.String)}
* with:
* workingDirectory = ""
* pid = null
*
*/
public static java.lang.Long startDetached(java.lang.String program, java.util.Collection arguments) {
return startDetached(program, arguments, "");
}
/**
* Overloaded function for {@link #startDetached(java.lang.String, java.util.Collection, java.lang.String)}
* with:
* arguments = java.util.Collections.emptyList()
* workingDirectory = ""
* pid = null
*
*/
public static java.lang.Long startDetached(java.lang.String program) {
return startDetached(program, java.util.Collections.emptyList(), "");
}
public native static java.lang.Long startDetached(java.lang.String program, java.util.Collection arguments, java.lang.String workingDirectory);
/**
* See QProcess::systemEnvironment()
*/
public native static io.qt.core.QStringList systemEnvironment();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QProcess(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QProcess(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QProcess instance, QDeclarativeConstructor constructor);
}