
io.qt.core.QProcess Maven / Gradle / Ivy
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::error(QProcess::ProcessError)
*
* @deprecated Use QProcess::errorOccurred(QProcess::ProcessError) instead
*/
@Deprecated
public final Signal1 error = new Signal1<>();
/**
* See QProcess::errorOccurred(QProcess::ProcessError)
*/
public final Signal1 errorOccurred = new Signal1<>();
/**
* Wrapper class for overloaded signals:
*
* finished(int exitCode)
* finished(int exitCode, QProcess::ExitStatus exitStatus)
*
*/
public final class MultiSignal_finished extends MultiSignal{
private MultiSignal_finished(){
super();
}
/**
* Provides an overloaded signal by parameter type.
* The only valid call is finished.overload(int.class)
* {@link io.qt.QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param type1 value of type A
* @return overloaded signal
* @throws io.qt.QNoSuchSignalException if signal is not available
*/
@io.qt.QtAllowedTypeSet({int.class})
public final Signal1 overload(Class type1) throws io.qt.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 io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
* @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable
.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Slot1 slot, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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.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 io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Connectable1 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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.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 io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal1 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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.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, io.qt.core.QProcess.ExitStatus.class)
* {@link io.qt.QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param signal parameter type
* @param type1 value of type A
* @param type2 value of type B
* @return overloaded signal
* @throws io.qt.QNoSuchSignalException if signal is not available
*/
@io.qt.QtAllowedTypeSet({int.class, io.qt.core.QProcess.ExitStatus.class})
public final Signal2 overload(Class type1, Class type2) throws io.qt.QNoSuchSignalException{
return (Signal2)super.overload(type1, type2);
}
/**
* 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 io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Slot2 slot, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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 io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Connectable2 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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.Connectable2 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 io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal2 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.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);
}
/**
*
*
* @deprecated Use QProcess::finished(int, QProcess::ExitStatus) instead
*/
@Deprecated
public final void emit(int exitCode) {
((Signal1)overload(int.class)).emit(exitCode);
}
/**
* See QProcess::finished(int,QProcess::ExitStatus)
*
*/
public final void emit(int exitCode, io.qt.core.QProcess.ExitStatus exitStatus) {
((Signal2)overload(int.class, io.qt.core.QProcess.ExitStatus.class)).emit(exitCode, exitStatus);
}
};
/**
* Overloaded signals:
*
* finished(int exitCode)
* finished(int exitCode, QProcess::ExitStatus exitStatus)
*
*/
public final MultiSignal_finished finished = new MultiSignal_finished();
/**
* 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);
/**
* See QProcess::environment()const
*/
@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);
/**
* See QProcess::setEnvironment(QStringList)
*/
@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.QIODevice.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName, io.qt.core.QIODevice.OpenModeFlag ... mode){
setStandardErrorFile(fileName, new io.qt.core.QIODevice.OpenMode(mode));
}
/**
* Overloaded function for {@link #setStandardErrorFile(java.lang.String, io.qt.core.QIODevice.OpenMode)}
* with mode = new io.qt.core.QIODevice.OpenMode(8)
.
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName) {
setStandardErrorFile(fileName, new io.qt.core.QIODevice.OpenMode(8));
}
/**
* See QProcess::setStandardErrorFile(QString,OpenMode)
*/
@io.qt.QtUninvokable
public final void setStandardErrorFile(java.lang.String fileName, io.qt.core.QIODevice.OpenMode mode){
if(mode.value()!=io.qt.core.QIODevice.OpenModeFlag.Append.value() && mode.value()!=io.qt.core.QIODevice.OpenModeFlag.Truncate.value())
throw new IllegalArgumentException("Argument mode: Append or Truncate expected");
setStandardErrorFile_native_cref_QString_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value());
}
@io.qt.QtUninvokable
private native void setStandardErrorFile_native_cref_QString_QFlags_QIODevice_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.QIODevice.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName, io.qt.core.QIODevice.OpenModeFlag ... mode){
setStandardOutputFile(fileName, new io.qt.core.QIODevice.OpenMode(mode));
}
/**
* Overloaded function for {@link #setStandardOutputFile(java.lang.String, io.qt.core.QIODevice.OpenMode)}
* with mode = new io.qt.core.QIODevice.OpenMode(8)
.
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName) {
setStandardOutputFile(fileName, new io.qt.core.QIODevice.OpenMode(8));
}
/**
* See QProcess::setStandardOutputFile(QString,OpenMode)
*/
@io.qt.QtUninvokable
public final void setStandardOutputFile(java.lang.String fileName, io.qt.core.QIODevice.OpenMode mode){
if(mode.value()!=io.qt.core.QIODevice.OpenModeFlag.Append.value() && mode.value()!=io.qt.core.QIODevice.OpenModeFlag.Truncate.value())
throw new IllegalArgumentException("Argument mode: Append or Truncate expected");
setStandardOutputFile_native_cref_QString_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value());
}
@io.qt.QtUninvokable
private native void setStandardOutputFile_native_cref_QString_QFlags_QIODevice_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.QIODevice.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void start(io.qt.core.QIODevice.OpenModeFlag ... mode){
start(new io.qt.core.QIODevice.OpenMode(mode));
}
/**
* Overloaded function for {@link #start(io.qt.core.QIODevice.OpenMode)}
* with mode = new io.qt.core.QIODevice.OpenMode(3)
.
*/
@io.qt.QtUninvokable
public final void start() {
start(new io.qt.core.QIODevice.OpenMode(3));
}
/**
*
*/
@io.qt.QtUninvokable
public final void start(io.qt.core.QIODevice.OpenMode mode){
start_native_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void start_native_QFlags_QIODevice_OpenModeFlag_(long __this__nativeId, int mode);
/**
* Overloaded function for {@link #start(java.lang.String, io.qt.core.QIODevice.OpenMode)}.
*
* @deprecated Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final void start(java.lang.String command, io.qt.core.QIODevice.OpenModeFlag ... mode){
start(command, new io.qt.core.QIODevice.OpenMode(mode));
}
/**
* Overloaded function for {@link #start(java.lang.String, io.qt.core.QIODevice.OpenMode)}
* with mode = new io.qt.core.QIODevice.OpenMode(3)
.
*
* @deprecated Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final void start(java.lang.String command) {
start(command, new io.qt.core.QIODevice.OpenMode(3));
}
/**
* See QProcess::start(QString,OpenMode)
*
* @deprecated Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final void start(java.lang.String command, io.qt.core.QIODevice.OpenMode mode){
start_native_cref_QString_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), command, mode.value());
}
@Deprecated
@io.qt.QtUninvokable
private native void start_native_cref_QString_QFlags_QIODevice_OpenModeFlag_(long __this__nativeId, java.lang.String command, int mode);
/**
* Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODevice.OpenMode)}.
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program, java.util.Collection arguments, io.qt.core.QIODevice.OpenModeFlag ... mode){
start(program, arguments, new io.qt.core.QIODevice.OpenMode(mode));
}
/**
* Overloaded function for {@link #start(java.lang.String, java.util.Collection, io.qt.core.QIODevice.OpenMode)}
* with mode = new io.qt.core.QIODevice.OpenMode(3)
.
*/
@io.qt.QtUninvokable
public final void start(java.lang.String program, java.util.Collection arguments) {
start(program, arguments, new io.qt.core.QIODevice.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.QIODevice.OpenMode mode){
start_native_cref_QString_cref_QStringList_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), program, arguments, mode.value());
}
@io.qt.QtUninvokable
private native void start_native_cref_QString_cref_QStringList_QFlags_QIODevice_OpenModeFlag_(long __this__nativeId, java.lang.String program, java.util.Collection arguments, 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);
/**
*
*/
@io.qt.QtUninvokable
public boolean atEnd(){
return atEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean atEnd_native_constfct(long __this__nativeId);
/**
* See QIODevice::bytesAvailable()const
*/
@io.qt.QtUninvokable
public long bytesAvailable(){
return bytesAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long bytesAvailable_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);
/**
* See QIODevice::canReadLine()const
*/
@io.qt.QtUninvokable
public boolean canReadLine(){
return canReadLine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean canReadLine_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.QIODevice.OpenMode mode){
return open_native_QFlags_QIODevice_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native boolean open_native_QFlags_QIODevice_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 QProcess::setupChildProcess()
*/
@io.qt.QtUninvokable
protected void setupChildProcess(){
setupChildProcess_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void setupChildProcess_native(long __this__nativeId);
/**
* 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);
/**
* See QProcess::execute(QString)
*
* @deprecated Use QProcess::execute(const QString &program, const QStringList &arguments) instead
*/
@Deprecated
public native static int execute(java.lang.String command);
/**
* 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);
/**
* See QProcess::startDetached(QString)
*
* @deprecated Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead
*/
@Deprecated
public native static boolean startDetached(java.lang.String command);
public native static boolean startDetached(java.lang.String program, java.util.Collection arguments);
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);
}