summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/SimpleJob.java
blob: 95b3a8a1dd295bc98e01dad658a087bfb6b5ecc9 (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
//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;

/**

 A simple job (one url and one command).
 This is the base class for all jobs that are scheduled.
 Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...)
 that manage subjobs but aren't scheduled directly.
     		@short    A simple job (one url and one command).

*/
public class SimpleJob extends Job  {
	protected SimpleJob(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Creates a new simple job. You don't need to use this constructor,
		 unless you create a new job that inherits from SimpleJob.
			@param url the url of the job
			@param command the command of the job
			@param packedArgs the arguments
			@param showProgressInfo true to show progress information to the user
			 		@short    Creates a new simple job.
	*/
	public SimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
		super((Class) null);
		newSimpleJob(url,command,packedArgs,showProgressInfo);
	}
	private native void newSimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
	/**	
		 Returns the SimpleJob's URL
				@return the url
	 
		@short    Returns the SimpleJob's URL
	*/
	public native KURL url();
	/**	
		 Abort job.
		 This kills all subjobs and deletes the job.
			@param tquietly if true, Job will emit signal result
		 Should only be set to false when the user kills the job
		 (from tdeio_uiserver), not when you want to abort a job.
		         		@short    Abort job.
	*/
	public native void kill(boolean tquietly);
	public native void kill();
	/**	
		 Abort job.
		 Suspends slave to be reused by another job for the same request.
		         		@short    Abort job.
	*/
	public native void putOnHold();
	/**	
			 Called by the scheduler when a slave gets to
		 work on this job.
				@short
	*/
	public native void start(Slave slave);
	/**	
			 Called to detach a slave from a job.
				@short
	*/
	public native void slaveDone();
	/**	
			 Slave in use by this job.
		         		@short
	*/
	public native Slave slave();
	/**	
			         		@short
	*/
	public native int command();
	/**	
		 Forward signal from the slave
		 Can also be called by the parent job, when it knows the size.
			@param data_size the total size
		         		@short    Forward signal from the slave  Can also be called by the parent job, when it knows the size.
	*/
	public native void slotTotalSize(long data_size);
	/**	
			 Called on a slave's error.
		 Made public for the scheduler.
		         		@short
	*/
	public native void slotError(int arg1, String arg2);
	/**	
		 Discard suspended slave.
		         		@short    Discard suspended slave.
	*/
	public static native void removeOnHold();
	protected native void storeSSLSessionFromJob(KURL m_redirectionURL);
	/**	
		 Called when the slave marks the job
		 as finished.
		         		@short    Called when the slave marks the job  as finished.
	*/
	protected native void slotFinished();
	/**	
			 Called on a slave's warning.
		         		@short
	*/
	protected native void slotWarning(String arg1);
	/**	
		 Called on a slave's info message.
			@param s the info message
				@short    Called on a slave's info message.
		@see #infoMessage
	*/
	protected native void slotInfoMessage(String s);
	/**	
		 Called on a slave's connected signal.
				@short    Called on a slave's connected signal.
		@see #connected
	*/
	protected native void slotConnected();
	/**	
		 Forward signal from the slave.
			@param data_size the processed size in bytes
				@short    Forward signal from the slave.
		@see #processedSize
	*/
	protected native void slotProcessedSize(long data_size);
	/**	
		 Forward signal from the slave.
			@param speed the speed in bytes/s
				@short    Forward signal from the slave.
		@see #speed
	*/
	protected native void slotSpeed(long speed);
	/**	
		 MetaData from the slave is received.
			@param _metaData the meta data
				@short    MetaData from the slave is received.
		@see #metaData
	*/
	// void slotMetaData(const TDEIO::MetaData& arg1); >>>> NOT CONVERTED
	/**	
			         		@short
	*/
	protected native void slotNeedProgressId();
}