summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QProcess.java
blob: c116696be0b66b101022af79c1b21c2c7377810b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;
import java.util.ArrayList;

/**
 See {@link QProcessSignals} for signals emitted by QProcess
*/
public class QProcess extends QObject  {
	protected QProcess(Class dummy){super((Class) null);}
	public static final int Stdin = 0x01;
	public static final int Stdout = 0x02;
	public static final int Stderr = 0x04;
	public static final int DupStderr = 0x08;

	public native QMetaObject metaObject();
	public native String className();
	public QProcess(QObject parent, String name) {
		super((Class) null);
		newQProcess(parent,name);
	}
	private native void newQProcess(QObject parent, String name);
	public QProcess(QObject parent) {
		super((Class) null);
		newQProcess(parent);
	}
	private native void newQProcess(QObject parent);
	public QProcess() {
		super((Class) null);
		newQProcess();
	}
	private native void newQProcess();
	public QProcess(String arg0, QObject parent, String name) {
		super((Class) null);
		newQProcess(arg0,parent,name);
	}
	private native void newQProcess(String arg0, QObject parent, String name);
	public QProcess(String arg0, QObject parent) {
		super((Class) null);
		newQProcess(arg0,parent);
	}
	private native void newQProcess(String arg0, QObject parent);
	public QProcess(String arg0) {
		super((Class) null);
		newQProcess(arg0);
	}
	private native void newQProcess(String arg0);
	public QProcess(String[] args, QObject parent, String name) {
		super((Class) null);
		newQProcess(args,parent,name);
	}
	private native void newQProcess(String[] args, QObject parent, String name);
	public QProcess(String[] args, QObject parent) {
		super((Class) null);
		newQProcess(args,parent);
	}
	private native void newQProcess(String[] args, QObject parent);
	public QProcess(String[] args) {
		super((Class) null);
		newQProcess(args);
	}
	private native void newQProcess(String[] args);
	public native ArrayList arguments();
	public native void clearArguments();
	public native void setArguments(String[] args);
	public native void addArgument(String arg);
	public native QDir workingDirectory();
	public native void setWorkingDirectory(QDir dir);
	public native void setCommunication(int c);
	public native int communication();
	public native boolean start(String[] arg1);
	public native boolean start();
	public native boolean launch(String buf, String[] arg2);
	public native boolean launch(String buf);
	public native boolean launch(byte[] buf, String[] arg2);
	public native boolean launch(byte[] buf);
	public native boolean isRunning();
	public native boolean normalExit();
	public native int exitStatus();
	public native byte[] readStdout();
	public native byte[] readStderr();
	public native boolean canReadLineStdout();
	public native boolean canReadLineStderr();
	public native String readLineStdout();
	public native String readLineStderr();
	public native long processIdentifier();
	public native void flushStdin();
	public native void tryTerminate();
	public native void kill();
	public native void writeToStdin(byte[] buf);
	public native void writeToStdin(String buf);
	public native void closeStdin();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void connectNotify(String signal);
	protected native void disconnectNotify(String signal);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}