summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KProcessSignals.java
blob: e2d2361c8b12b237df46e969bc5adbcadb48519a (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;

public interface TDEProcessSignals {
	/**	
		 Emitted after the process has terminated when
		 the process was run in the <code>NotifyOnExit</code>  (==default option to
		 start() ) or the Block mode.
			@param proc a pointer to the process that has exited
				@short    Emitted after the process has terminated when  the process was run in the <code>NotifyOnExit</code>  (==default option to  start() ) or the Block mode.
	*/
	void processExited(TDEProcess proc);
	/**	
		 Emitted, when output from the child process has
		 been received on stdout.
			 To actually get this signal, the Stdout communication link
		 has to be turned on in start().
			@param proc a pointer to the process that has received the output
			@param buffer The data received.
			@param buflen The number of bytes that are available.
			 You should copy the information contained in <code>buffer</code> to your private
		 data structures before returning from the slot.
		 Example:
		 <pre>
		     String myBuf = String.fromLatin1(buffer, buflen);
		 </pre>
				@short    Emitted, when output from the child process has  been received on stdout.
	*/
	void receivedStdout(TDEProcess proc, String buffer, int buflen);
	/**	
		 Emitted when output from the child process has
		 been received on stdout.
			 To actually get this signal, the Stdout communication link
		 has to be turned on in start() and the
		 NoRead flag must have been passed.
			 You will need to explicitly call resume() after your call to start()
		 to begin processing data from the child process' stdout.  This is
		 to ensure that this signal is not emitted when no one is connected
		 to it, otherwise this signal will not be emitted.
			 The data still has to be read from file descriptor <code>fd.</code>
			@param fd the file descriptor that provides the data
			@param len the number of bytes that have been read from <code>fd</code> must
		  be written here
				@short    Emitted when output from the child process has  been received on stdout.
	*/
	void receivedStdout(int fd, int[] len);
	/**	
		 Emitted, when output from the child process has
		 been received on stderr.
			 To actually get this signal, the Stderr communication link
		 has to be turned on in start().
			 You should copy the information contained in <code>buffer</code> to your private
		 data structures before returning from the slot.
			@param proc a pointer to the process that has received the data
			@param buffer The data received.
			@param buflen The number of bytes that are available.
				@short    Emitted, when output from the child process has  been received on stderr.
	*/
	void receivedStderr(TDEProcess proc, String buffer, int buflen);
	/**	
		 Emitted after all the data that has been
		 specified by a prior call to writeStdin() has actually been
		 written to the child process.
			@param proc a pointer to the process
				@short    Emitted after all the data that has been  specified by a prior call to writeStdin() has actually been  written to the child process.
	*/
	void wroteStdin(TDEProcess proc);
}