diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/CopyJob.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/CopyJob.java | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/CopyJob.java b/kdejava/koala/org/kde/koala/CopyJob.java new file mode 100644 index 00000000..28e93690 --- /dev/null +++ b/kdejava/koala/org/kde/koala/CopyJob.java @@ -0,0 +1,80 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +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 QMetaObject 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 + */ + // KIO::CopyJob* CopyJob(const KURL::List& arg1,const KURL& arg2,KIO::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); +} |