summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/CopyJob.java
blob: 1b89d2dafaf28aeff591ed6af9319cb9e26e893b (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
//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;
import java.util.ArrayList;

/**

 CopyJob is used to move, copy or symlink files and directories.
 Don't create the job directly, but use KIO.copy(),
 KIO.move(), KIO.link() and friends.
 See {@link CopyJobSignals} for signals emitted by CopyJob
		@short    CopyJob is used to move, copy or symlink files and directories.
		@see #copy
		@see #copyAs
		@see #move
		@see #moveAs
		@see #link
		@see #linkAs

*/
public class CopyJob extends Job  {
	protected CopyJob(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Do not create a CopyJob directly. Use KIO.copy(),
		 KIO.move(), KIO.link() and friends instead.
			@param src the list of source URLs
			@param dest the destination URL
			@param mode specifies whether the job should copy, move or link
			@param asMethod if true, behaves like KIO.copyAs(),
		 KIO.moveAs() or KIO.linkAs()
			@param showProgressInfo true to show progress information to the user
				@short    Do not create a CopyJob directly.
		@see #copy
		@see #copyAs
		@see #move
		@see #moveAs
		@see #link
		@see #linkAs
	*/
	// TDEIO::CopyJob* CopyJob(const KURL::List& arg1,const KURL& arg2,TDEIO::CopyJob::CopyMode arg3,bool arg4,bool arg5); >>>> NOT CONVERTED
	/**	
		 Returns the list of source URLs.
				@return the list of source URLs.
	 
		@short    Returns the list of source URLs.
	*/
	public native ArrayList srcURLs();
	/**	
		 Returns the destination URL.
				@return the destination URL
	 
		@short    Returns the destination URL.
	*/
	public native KURL destURL();
	/**	
		 By default the permissions of the copied files will be those of the source files.
			 But when copying "template" files to "new" files, people prefer the umask
		 to apply, rather than the template's permissions.
		 For that case, call setDefaultPermissions(true)
			 TODO KDE4: consider adding this as boolean to copy/copyAs?
				@short    By default the permissions of the copied files will be those of the source files.
	*/
	public native void setDefaultPermissions(boolean b);
	/**	
		 When an error happens while copying/moving a file, the user will be presented with
		 a dialog for skipping the file that can't be copied/moved.
		 Or if the error is that the destination file already exists, the standard
		 rename dialog is shown.
		 If the program doesn't want CopyJob to show dialogs, but to simply fail on error,
		 call setInteractive( false ).
			 KDE4: remove, already in Job
				@short    When an error happens while copying/moving a file, the user will be presented with  a dialog for skipping the file that can't be copied/moved.
	*/
	public native void setInteractive(boolean b);
}