summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/Slave.java
blob: 5d57bcab4188eba65545c572867608db4d9327fc (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

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

/**
 Attention developers: If you change the implementation of TDEIO.Slave,
 do not use connection() or slaveconn but the respective TDEIO.Slave
 accessor methods. Otherwise classes derived from Slave might break. (LS)
     See {@link SlaveSignals} for signals emitted by Slave
		@short   Attention developers: If you change the implementation of TDEIO.Slave,  do  not  use connection() or slaveconn but the respective TDEIO.Slave  accessor methods.

*/
public class Slave extends SlaveInterface  {
	protected Slave(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	// TDEIO::Slave* Slave(TDEServerSocket* arg1,const TQString& arg2,const TQString& arg3); >>>> NOT CONVERTED
	public native void setPID(int arg1);
	public native int slave_pid();
	/**	
		 Force termination
			 		@short    Force termination
	*/
	public native void kill();
	/**	
				@return true if the slave survived the last mission.
         
		@short
	*/
	public native boolean isAlive();
	/**	
		 Set host for url
			@param host to connect to.
			@param port to connect to.
			@param user to login as
			@param passwd to login with
		         		@short    Set host for url
	*/
	public native void setHost(String host, int port, String user, String passwd);
	/**	
		 Clear host info.
		         		@short    Clear host info.
	*/
	public native void resetHost();
	/**	
		 Configure slave
		         		@short    Configure slave
	*/
	// void setConfig(const TDEIO::MetaData& arg1); >>>> NOT CONVERTED
	/**	
		 The protocol this slave handles.
				@return name of protocol handled by this slave, as seen by the user
         
		@short    The protocol this slave handles.
	*/
	public native String protocol();
	public native void setProtocol(String protocol);
	/**	
		 The actual protocol used to handle the request.
			 This method will return a different protocol than
		 the one obtained by using protocol() if a
		 proxy-server is used for the given protocol.  This
		 usually means that this method will return "http"
		 when the actuall request was to retrieve a resource
		 from an "ftp" server by going through a proxy server.
				@return the actual protocol (io-slave) that handled the request
         
		@short    The actual protocol used to handle the request.
	*/
	public native String slaveProtocol();
	/**	
				@return Host this slave is (was?) connected to
         
		@short
	*/
	public native String host();
	/**	
				@return port this slave is (was?) connected to
         
		@short
	*/
	public native int port();
	/**	
				@return User this slave is (was?) logged in as
         
		@short
	*/
	public native String user();
	/**	
				@return Passwd used to log in
         
		@short
	*/
	public native String passwd();
	/**	
		 Suspends the operation of the attached tdeioslave.
			 		@short    Suspends the operation of the attached tdeioslave.
	*/
	public native void suspend();
	/**	
		 Resumes the operation of the attached tdeioslave.
			 		@short    Resumes the operation of the attached tdeioslave.
	*/
	public native void resume();
	/**	
		 Tells wether the tdeioslave is suspended.
				@return true if the tdeioslave is suspended.

		@short    Tells wether the tdeioslave is suspended.
	*/
	public native boolean suspended();
	/**	
		 Sends the given command to the tdeioslave.
			@param cmd command id
			@param data byte array containing data
				@short    Sends the given command to the tdeioslave.
	*/
	public native void send(int cmd, byte[] data);
	public native void send(int cmd);
	/**	
		 Puts the tdeioslave associated with <code>url</code> at halt.
			 		@short    Puts the tdeioslave associated with <code>url</code> at halt.
	*/
	public native void hold(KURL url);
	/**	
				@return The time this slave has been idle.
	 
		@short
	*/
	public native int idleTime();
	/**	
		 Marks this slave as idle.
			 		@short    Marks this slave as idle.
	*/
	public native void setIdle();
	public native boolean isConnected();
	public native void setConnected(boolean c);
	public native void ref();
	public native void deref();
	// void accept(TDESocket* arg1); >>>> NOT CONVERTED
	public native void gotInput();
	public native void timeout();
	/**	
		 Creates a new slave.
			@param protocol protocol the slave is for.
			@param url URL the slave should operate on.
			@param error is the error code on failure and undefined else.
			@param error_text is the error text on failure and undefined else.
				@return 0 on failure, or a pointer to a slave otherwise.
 @todo What are legal <code>protocol</code> values?
	 
		@short    Creates a new slave.
	*/
	public static native Slave createSlave(String protocol, KURL url, int[] error, StringBuffer error_text);
	public static native Slave holdSlave(String protocol, KURL url);
}