org.kde.koala
public class KIO extends Object
UNKNOWN: A namespace for KIO globals.
Method Summary | |
---|---|
static String | buildErrorString(int errorCode, String errorText)
Returns a translated error message for errorCode using the
additional error information provided by errorText. |
static SimpleJob | chmod(KURL url, int permissions)
Changes permissions on a file or directory.
|
static String | convertSeconds(int seconds)
Convert seconds to a string representing number of days, hours, minutes and seconds |
static String | convertSize(long size)
Converts size from bytes to the string representation. |
static String | convertSizeFromKB(long kbSize)
Converts size from kilo-bytes to the string representation. |
static String | convertSizeWithBytes(long size)
Converts size from bytes to a string representation with includes
the size in bytes.
e.g. |
static CopyJob | copy(KURL src, KURL dest, boolean showProgressInfo)
Copy a file or directory src into the destination dest ,
which can be a file (including the final filename) or a directory
(into which src will be copied).
|
static CopyJob | copy(KURL src, KURL dest) |
static CopyJob | copy(ArrayList src, KURL dest, boolean showProgressInfo)
Copy a list of file/dirs src into a destination directory dest. |
static CopyJob | copy(ArrayList src, KURL dest) |
static CopyJob | copyAs(KURL src, KURL dest, boolean showProgressInfo)
Copy a file or directory src into the destination dest ,
which is the destination name in any case, even for a directory.
|
static CopyJob | copyAs(KURL src, KURL dest) |
static DavJob | davPropFind(KURL url, QDomDocument properties, String depth, boolean showProgressInfo)
Creates a new DavJob that issues a PROPFIND command. |
static DavJob | davPropFind(KURL url, QDomDocument properties, String depth) |
static DavJob | davPropPatch(KURL url, QDomDocument properties, boolean showProgressInfo)
Creates a new DavJob that issues a PROPPATCH command. |
static DavJob | davPropPatch(KURL url, QDomDocument properties) |
static DavJob | davSearch(KURL url, String nsURI, String qName, String query, boolean showProgressInfo)
Creates a new DavJob that issues a SEARCH command. |
static DavJob | davSearch(KURL url, String nsURI, String qName, String query) |
static String | decodeFileName(String str)
Decodes (from the filename to the text displayed)
This translates %2[fF] into / and %% into % |
static DeleteJob | del(KURL src, boolean shred, boolean showProgressInfo)
Delete a file or directory. |
static DeleteJob | del(KURL src, boolean shred) |
static DeleteJob | del(KURL src) |
static DeleteJob | del(ArrayList src, boolean shred, boolean showProgressInfo)
Deletes a list of files or directories. |
static DeleteJob | del(ArrayList src, boolean shred) |
static DeleteJob | del(ArrayList src) |
static String | encodeFileName(String str)
Encodes (from the text displayed to the real filename)
This translates % into %% and / into %2f
Used by KIO.link, for instance. |
static MetaInfoJob | fileMetaInfo(ArrayList items)
Retrieves meta information for the given items. |
static PreviewJob | filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins)
Creates a PreviewJob to generate or retrieve a preview image
for the given URL. |
static PreviewJob | filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save) |
static PreviewJob | filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale) |
static PreviewJob | filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha) |
static PreviewJob | filePreview(ArrayList items, int width, int height, int iconSize) |
static PreviewJob | filePreview(ArrayList items, int width, int height) |
static PreviewJob | filePreview(ArrayList items, int width) |
static FileCopyJob | file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo)
Copy a single file.
|
static FileCopyJob | file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume) |
static FileCopyJob | file_copy(KURL src, KURL dest, int permissions, boolean overwrite) |
static FileCopyJob | file_copy(KURL src, KURL dest, int permissions) |
static FileCopyJob | file_copy(KURL src, KURL dest) |
static SimpleJob | file_delete(KURL src, boolean showProgressInfo)
Delete a single file. |
static SimpleJob | file_delete(KURL src) |
static FileCopyJob | file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo)
Move a single file.
|
static FileCopyJob | file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume) |
static FileCopyJob | file_move(KURL src, KURL dest, int permissions, boolean overwrite) |
static FileCopyJob | file_move(KURL src, KURL dest, int permissions) |
static FileCopyJob | file_move(KURL src, KURL dest) |
static String | findDeviceMountPoint(String device)
Returns the mount point where device is mounted
right now. |
static String | findPathMountPoint(String filename)
Returns the mount point on which resides filename.
For instance if /home is a separate partition, findPathMountPoint("/home/user/blah")
will return /home |
static TransferJob | get(KURL url, boolean reload, boolean showProgressInfo)
Get (a.k.a. read).
|
static TransferJob | get(KURL url, boolean reload) |
static TransferJob | get(KURL url) |
static String | getCacheControlString(int cacheControl)
Returns a string representation of the given cache control method. |
static TransferJob | http_post(KURL url, byte[] postData, boolean showProgressInfo)
HTTP POST (for form data).
|
static TransferJob | http_post(KURL url, byte[] postData) |
static SimpleJob | http_update_cache(KURL url, boolean no_cache, int expireDate)
HTTP cache update |
static boolean | isClipboardEmpty()
Checks whether the clipboard contains any URLs. |
static String | itemsSummaryString(int items, int files, int dirs, long size, boolean showSize)
Helper for showing information about a set of files and directories |
static CopyJob | link(KURL src, KURL destDir, boolean showProgressInfo)
Create a link.
|
static CopyJob | link(KURL src, KURL destDir) |
static CopyJob | link(ArrayList src, KURL destDir, boolean showProgressInfo)
Create several links
If the protocols and hosts are the same, a Unix symlink will be created.
|
static CopyJob | link(ArrayList src, KURL destDir) |
static CopyJob | linkAs(KURL src, KURL dest, boolean showProgressInfo)
Create a link. |
static CopyJob | linkAs(KURL src, KURL dest) |
static ListJob | listDir(KURL url, boolean showProgressInfo, boolean includeHidden)
List the contents of url , which is assumed to be a directory.
|
static ListJob | listDir(KURL url, boolean showProgressInfo) |
static ListJob | listDir(KURL url) |
static ListJob | listRecursive(KURL url, boolean showProgressInfo, boolean includeHidden)
The same as the previous method, but recurses subdirectories.
|
static ListJob | listRecursive(KURL url, boolean showProgressInfo) |
static ListJob | listRecursive(KURL url) |
static boolean | manually_mounted(String filename)
Checks if the path belongs to a filesystem that is manually
mounted. |
static MimetypeJob | mimetype(KURL url, boolean showProgressInfo)
Find mimetype for one file or directory. |
static MimetypeJob | mimetype(KURL url) |
static SimpleJob | mkdir(KURL url, int permissions)
Creates a single directory. |
static SimpleJob | mkdir(KURL url) |
static SimpleJob | mount(boolean ro, String fstype, String dev, String point, boolean showProgressInfo)
Mount filesystem.
|
static SimpleJob | mount(boolean ro, String fstype, String dev, String point) |
static CopyJob | move(KURL src, KURL dest, boolean showProgressInfo)
Moves a file or directory src to the given destination dest. |
static CopyJob | move(KURL src, KURL dest) |
static CopyJob | move(ArrayList src, KURL dest, boolean showProgressInfo)
Moves a list of files or directories src to the given destination dest. |
static CopyJob | move(ArrayList src, KURL dest) |
static CopyJob | moveAs(KURL src, KURL dest, boolean showProgressInfo)
Moves a file or directory src to the given destination dest. Unlike move()
this operation will fail when the directory already exists. |
static CopyJob | moveAs(KURL src, KURL dest) |
static String | number(long size)
Converts a size to a string representation
Not unlike String.number(...) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc) |
static int | open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath) |
static int | open_SkipDlg(boolean _multi, String _error_text) |
static int | open_SkipDlg(boolean _multi) |
static QDataStream | op_read(QDataStream s, AuthInfo a) |
static QDataStream | op_write(QDataStream s, AuthInfo a) |
static int | parseCacheControl(String cacheControl)
Parses the string representation of the cache control option. |
static String | pasteActionText()
Returns the text to use for the Paste action, when the application supports
pasting files, urls, and clipboard data, using pasteClipboard(). |
static Job | pasteClipboard(KURL destURL, boolean move)
Pastes the content of the clipboard to the given destination URL.
|
static Job | pasteClipboard(KURL destURL) |
static void | pasteData(KURL destURL, byte[] data)
Pastes the given data to the given destination URL.
|
static CopyJob | pasteDataAsync(KURL destURL, byte[] data)
Pastes the given data to the given destination URL.
|
static CopyJob | pasteDataAsync(KURL destURL, byte[] data, String dialogText)
Pastes the given data to the given destination URL.
|
static CopyJob | pasteMimeSource(QMimeSourceInterface data, KURL destURL, String dialogText, QWidget widget, boolean clipboard)
Save the given mimesource data to the given destination URL
after offering the user to choose a data format.
|
static CopyJob | pasteMimeSource(QMimeSourceInterface data, KURL destURL, String dialogText, QWidget widget) |
static boolean | probably_slow_mounted(String filename)
Checks if the path belongs to a filesystem that is probably
slow. |
static TransferJob | put(KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo)
Put (a.k.a. write) |
static TransferJob | put(KURL url, int permissions, boolean overwrite, boolean resume) |
static byte[] | rawErrorDetail(int errorCode, String errorText, KURL reqUrl, int method)
Returns translated error details for errorCode using the
additional error information provided by errorText , reqUrl
(the request URL), and the ioslave method . |
static byte[] | rawErrorDetail(int errorCode, String errorText, KURL reqUrl) |
static byte[] | rawErrorDetail(int errorCode, String errorText) |
static SimpleJob | rename(KURL src, KURL dest, boolean overwrite)
Rename a file or directory.
|
static SimpleJob | rmdir(KURL url)
Removes a single directory.
|
static SimpleJob | special(KURL url, byte[] data, boolean showProgressInfo)
Execute any command that is specific to one slave (protocol).
|
static SimpleJob | special(KURL url, byte[] data) |
static StatJob | stat(KURL url, boolean showProgressInfo)
Find all details for one file or directory. |
static StatJob | stat(KURL url) |
static StatJob | stat(KURL url, boolean sideIsSource, short details, boolean showProgressInfo)
Find all details for one file or directory.
|
static StatJob | stat(KURL url, boolean sideIsSource, short details) |
static StoredTransferJob | storedGet(KURL url, boolean reload, boolean showProgressInfo)
Get (a.k.a. read), into a single byte[]. |
static StoredTransferJob | storedGet(KURL url, boolean reload) |
static StoredTransferJob | storedGet(KURL url) |
static StoredTransferJob | storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo)
Put (a.k.a. write) data from a single byte[]. |
static StoredTransferJob | storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume) |
static SimpleJob | symlink(String target, KURL dest, boolean overwrite, boolean showProgressInfo)
Create or move a symlink.
|
static SimpleJob | symlink(String target, KURL dest, boolean overwrite) |
static boolean | testFileSystemFlag(String filename, int flag)
Checks the capabilities of the filesystem to which a given file belongs.
given feature (e.g. chmod). |
static CopyJob | trash(KURL src, boolean showProgressInfo)
Trash a file or directory.
|
static CopyJob | trash(KURL src) |
static CopyJob | trash(ArrayList src, boolean showProgressInfo)
Trash a list of files or directories.
|
static CopyJob | trash(ArrayList src) |
static SimpleJob | unmount(String point, boolean showProgressInfo)
Unmount filesystem.
|
static SimpleJob | unmount(String point) |
static String | unsupportedActionErrorString(String protocol, int cmd)
Returns an appropriate error message if the given command cmd
is an unsupported action (ERR_UNSUPPORTED_ACTION). |
UNKNOWN: Commands that can be invoked by a job.
UNKNOWN: Error codes that can be emitted by KIO.
UNKNOWN: Identifiers for KIO informational messages.
UNKNOWN: Identifiers for KIO data messages.
UNKNOWN: The result of open_RenameDlg().
UNKNOWN: Constants used to specify the type of a KUDSAtom.
errorCode
using the
additional error information provided by errorText.
Parameters: errorCode the error code errorText the additional error text
Returns: the created error string
UNKNOWN: Returns a translated error message for errorCode
using the additional error information provided by errorText.
Parameters: url The URL of file or directory. permissions The permissions to set.
Returns: the job handling the operation.
UNKNOWN: Changes permissions on a file or directory.
seconds
to a string representing number of days, hours, minutes and secondsParameters: seconds number of seconds to convert
Returns: string representation in a locale depending format
UNKNOWN: Convert seconds
to a string representing number of days, hours, minutes and seconds
size
from bytes to the string representation.Parameters: size size in bytes
Returns: converted size as a string - e.g. 123.4 kB , 12.0 MB
UNKNOWN: Converts size
from bytes to the string representation.
Parameters: kbSize size in kilo-bytes
Returns: converted size as a string - e.g. 123.4 kB , 12.0 MB
UNKNOWN: Converts size from kilo-bytes to the string representation.
size
from bytes to a string representation with includes
the size in bytes.
e.g. 90 B, 240 B, 1.4 KB (1495 B), 2.6MB (2,734,344 B), 0 BParameters: size size in bytes
Returns: converted size as a string - e.g. 1.4 KB (1495 B), 45 B
UNKNOWN: Converts size
from bytes to a string representation with includes the size in bytes.
src
into the destination dest
,
which can be a file (including the final filename) or a directory
(into which src
will be copied).
This emulates the cp command completely.Parameters: src the file or directory to copy dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
See Also: KIO
UNKNOWN: Copy a file or directory src
into the destination dest
, which can be a file (including the final filename) or a directory (into which src
will be copied).
src
into a destination directory dest.
Parameters: src the list of files and/or directories dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Copy a list of file/dirs src
into a destination directory dest.
src
into the destination dest
,
which is the destination name in any case, even for a directory.
As opposed to copy(), this doesn't emulate cp, but is the only
way to copy a directory, giving it a new name and getting an error
box if a directory already exists with the same name.Parameters: src the file or directory to copy dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Copy a file or directory src
into the destination dest
, which is the destination name in any case, even for a directory.
url.
Parameters: url the URL of the resource properties a propfind document that describes the properties that should be retrieved depth the depth of the request. Can be "0", "1" or "infinity" showProgressInfo true to show progress information
Returns: the new DavJob
UNKNOWN: Creates a new DavJob that issues a PROPFIND command.
url.
Parameters: url the URL of the resource properties a PROPPACTCH document that describes the properties that should be modified and its new values showProgressInfo true to show progress information
Returns: the new DavJob
UNKNOWN: Creates a new DavJob that issues a PROPPATCH command.
Parameters: url the URL of the resource nsURI the URI of the search method's qualified name qName the local part of the search method's qualified name query the search string showProgressInfo true to show progress information
Returns: the new DavJob
UNKNOWN: Creates a new DavJob that issues a SEARCH command.
Parameters: str the file name to decode
Returns: the decoded file name
UNKNOWN: Decodes (from the filename to the text displayed) This translates %2[fF] into / and %% into %
Parameters: src file to delete shred obsolete (TODO remove in KDE4) showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Delete a file or directory.
Parameters: src the files to delete shred obsolete (TODO remove in KDE4) showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Deletes a list of files or directories.
Parameters: str the file name to encode
Returns: the encoded file name
UNKNOWN: Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by KIO.link, for instance.
Parameters: items files to get metainfo for
Returns: the MetaInfoJob to retrieve the items
UNKNOWN: Retrieves meta information for the given items.
Parameters: items files to get previews for width the maximum width to use height the maximum height to use, if this is 0, the same value as width is used. iconSize the size of the mimetype icon to overlay over the preview or zero to not overlay an icon. This has no effect if the preview plugin that will be used doesn't use icon overlays. iconAlpha transparency to use for the icon overlay scale if the image is to be scaled to the requested size or returned in its original size save if the image should be cached for later use enabledPlugins if non-zero, this points to a list containing the names of the plugins that may be used.
Returns: the new PreviewJob
See Also: PreviewJob
UNKNOWN: Creates a PreviewJob to generate or retrieve a preview image for the given URL.
Parameters: src Where to get the file. dest Where to put the file. permissions May be -1. In this case no special permission mode is set. overwrite If true, any existing file will be overwritten. resume true to resume an operation. Warning, setting this to true means
that src
will be appended to dest
if dest
exists.
You probably don't want that, so leave it to false :) showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Copy a single file.
Parameters: src File to delete. showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Delete a single file.
Parameters: src Where to get the file. dest Where to put the file. permissions May be -1. In this case no special permission mode is set. overwrite If true
, any existing file will be overwritten. resume true to resume an operation. Warning, setting this to true means
that src
will be appended to dest
if dest
exists.
You probably don't want that, so leave it to false :) showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Move a single file.
device
is mounted
right now. This means, it has to be mounted, not just
defined in fstab.UNKNOWN: Returns the mount point where device
is mounted right now.
filename.
For instance if /home is a separate partition, findPathMountPoint("/home/user/blah")
will return /homeParameters: filename the file name to check
Returns: the mount point of the given filename
UNKNOWN: Returns the mount point on which resides filename.
Parameters: url the URL of the file reload true to reload the file, false if it can be taken from the cache showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Get (a.
Parameters: cacheControl the cache control method
Returns: the string representation
See Also: KIO
UNKNOWN: Returns a string representation of the given cache control method.
job = KIO.http_post( url, postData, false ); job.addMetaData("content-type", contentType ); job.addMetaData("referrer", referrerURL);
postData
is the data that you want to send and
contentType
is the complete HTTP header line that
specifies the content's MIME type, for example
"Content-Type: text/xml".
You MUST specify content-type!
Often contentType
is
"Content-Type: application/x-www-form-urlencoded" and
the postData
is then an ASCII string (without null-termination!)
with characters like space, linefeed and percent escaped like %20,
%0A and %25.Parameters: url Where to write the data. postData Encoded data to post. showProgressInfo true to display
Returns: the job handling the operation.
UNKNOWN: HTTP POST (for form data).
Parameters: url Url to update, protocol must be "http". no_cache If true, cache entry for url
is deleted. expireDate Local machine time indicating when the entry is
supposed to expire.
Returns: the job handling the operation.
UNKNOWN: HTTP cache update
Returns: true if not Not used anymore, wrong method name, so it will disappear in KDE4.
UNKNOWN: Checks whether the clipboard contains any URLs.
Parameters: items the number of items (= files
+ dirs
+ number of symlinks :) files the number of files dirs the number of dirs size the sum of the size of the files
showSize whether to show the size in the result
Returns: the summary string
UNKNOWN: Helper for showing information about a set of files and directories
Parameters: src The existing file or directory, 'target' of the link. destDir Destination directory where the link will be created. showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Create a link.
Parameters: src The existing files or directories, 'targets' of the link. destDir Destination directory where the links will be created. showProgressInfo true to show progress information
Returns: the job handling the operation
See Also: KIO
UNKNOWN: Create several links If the protocols and hosts are the same, a Unix symlink will be created.
Parameters: src The existing file or directory, 'target' of the link. dest Destination directory where the link will be created. showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Create a link.
url
, which is assumed to be a directory.
"." and ".." are returned, filter them out if you don't want them.Parameters: url the url of the directory showProgressInfo true to show progress information includeHidden true for all files, false to cull out UNIX hidden files/dirs (whose names start with dot)
Returns: the job handling the operation.
UNKNOWN: List the contents of url
, which is assumed to be a directory.
Parameters: url the url of the directory showProgressInfo true to show progress information includeHidden true for all files, false to cull out UNIX hidden files/dirs (whose names start with dot)
Returns: the job handling the operation.
UNKNOWN: The same as the previous method, but recurses subdirectories.
Parameters: filename the file name to check
Returns: true if the filesystem is manually mounted
UNKNOWN: Checks if the path belongs to a filesystem that is manually mounted.
Parameters: url the URL of the file showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Find mimetype for one file or directory.
Parameters: url The URL of the directory to create. permissions The permissions to set after creating the directory (unix-style), -1 for default permissions.
Returns: A pointer to the job handling the operation.
UNKNOWN: Creates a single directory.
kio_file.
Parameters: ro Mount read-only if true.
fstype File system type (e.g. "ext2", can be null). dev Device (e.g. /dev/sda0). point Mount point, can be null.
showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Mount filesystem.
src
to the given destination dest.
Parameters: src the file or directory to copy dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Moves a file or directory src
to the given destination dest.
src
to the given destination dest.
Parameters: src the list of files or directories to copy dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
See Also: KIO
UNKNOWN: Moves a list of files or directories src
to the given destination dest.
src
to the given destination dest.
Unlike move()
this operation will fail when the directory already exists.Parameters: src the file or directory to copy dest the destination showProgressInfo true to show progress information
Returns: the job handling the operation
See Also: KIO
UNKNOWN: Moves a file or directory src
to the given destination dest.
Parameters: size size in bytes
Returns: converted size as a string - e.g. 123456789
UNKNOWN: Converts a size to a string representation Not unlike String.number(.
Parameters: caption the caption for the dialog box src the URL of the file/dir we're trying to copy, as it's part of the text message dest the URL of the destination file/dir, i.e. the one that already exists mode parameters for the dialog (which buttons to show...), see RenameDlg_Mode newDest the new destination path, valid if R_RENAME was returned. sizeSrc size of source file sizeDest size of destination file ctimeSrc creation time of source file ctimeDest creation time of destination file mtimeSrc modification time of source file mtimeDest modification time of destination file
Returns: the result
UNKNOWN:
Parameters: cacheControl the string representation
Returns: the cache control value
See Also: KIO
UNKNOWN: Parses the string representation of the cache control option.
Returns: a string suitable for KAction.setText, or an empty string if pasting isn't possible right now.
UNKNOWN: Returns the text to use for the Paste action, when the application supports pasting files, urls, and clipboard data, using pasteClipboard().
Parameters: destURL the URL to receive the data move true to move the data, false to copy
Returns: the job that handles the operation
See Also: KIO
UNKNOWN: Pastes the content of the clipboard to the given destination URL.
data
to the given destination URL.
NOTE: This method is blocking (uses NetAccess for saving the data).
Please consider using pasteDataAsync instead.Parameters: destURL the URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method. data the data to copy
See Also: KIO
UNKNOWN: Pastes the given data
to the given destination URL.
data
to the given destination URL.
Note that this method requires the caller to have chosen the byte[]
to paste before hand, unlike pasteClipboard and pasteMimeSource.Parameters: destURL the URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method. data the data to copy
See Also: KIO
UNKNOWN: Pastes the given data
to the given destination URL.
data
to the given destination URL.
Note that this method requires the caller to have chosen the byte[]
to paste before hand, unlike pasteClipboard and pasteMimeSource.Parameters: destURL the URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method. data the data to copy dialogText the text to show in the dialog
See Also: KIO
UNKNOWN: Pastes the given data
to the given destination URL.
data
to the given destination URL
after offering the user to choose a data format.
This is the method used when handling drops (of anything else than URLs)
onto kdesktop and konqueror.Parameters: data the QMimeSource (e.g. a QDropEvent) destURL the URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method. dialogText the text to show in the dialog widget parent widget to use for dialogs clipboard whether the QMimeSource comes from QClipboard. If you use pasteClipboard for that case, you never have to worry about this parameter.
See Also: KIO
UNKNOWN: Save the given mimesource data
to the given destination URL after offering the user to choose a data format.
Parameters: filename the file name to check
Returns: true if the filesystem is probably slow
UNKNOWN: Checks if the path belongs to a filesystem that is probably slow.
Parameters: url Where to write data. permissions May be -1. In this case no special permission mode is set. overwrite If true, any existing file will be overwritten. resume true to resume an operation. Warning, setting this to true means
that the data will be appended to dest
if dest
exists. showProgressInfo true to show progress information
Returns: the job handling the operation.
See Also: KIO
UNKNOWN: Put (a.
errorCode
using the
additional error information provided by errorText
, reqUrl
(the request URL), and the ioslave method
.Parameters: errorCode the error code errorText the additional error text reqUrl the request URL method the ioslave method
UNKNOWN: Returns translated error details for errorCode
using the additional error information provided by errorText
, reqUrl
(the request URL), and the ioslave method
.
Parameters: src The original URL dest The final URL overwrite whether to automatically overwrite if the dest exists
Returns: the job handling the operation.
UNKNOWN: Rename a file or directory.
Parameters: url The URL of the directory to remove.
Returns: A pointer to the job handling the operation.
UNKNOWN: Removes a single directory.
Parameters: url The URL isn't passed to the slave, but is used to know which slave to send it to :-) data Packed data. The meaning is completely dependent on the slave, but usually starts with an int for the command number. showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Execute any command that is specific to one slave (protocol).
Parameters: url the URL of the file showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Find all details for one file or directory.
sideIsSource
and details.
Parameters: url the URL of the file sideIsSource is true when stating a source file (we will do a get on it if
the stat works) and false when stating a destination file (target of a copy).
The reason for this parameter is that in some cases the kioslave might not
be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP
has issues with case-sensitivity on some systems).
When the slave can't reliably determine the existence of a file, it will:
Returns: the job handling the operation.
UNKNOWN: Find all details for one file or directory.
Parameters: url the URL of the file reload true to reload the file, false if it can be taken from the cache showProgressInfo true to show progress information
Returns: the job handling the operation.
See Also: StoredTransferJob
UNKNOWN: Get (a.
Parameters: arr The data to write url Where to write data. permissions May be -1. In this case no special permission mode is set. overwrite If true, any existing file will be overwritten. resume true to resume an operation. Warning, setting this to true means
that the data will be appended to dest
if dest
exists. showProgressInfo true to show progress information
Returns: the job handling the operation.
See Also: StoredTransferJob
UNKNOWN: Put (a.
Parameters: target The string that will become the "target" of the link (can be relative) dest The symlink to create. overwrite whether to automatically overwrite if the dest exists showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Create or move a symlink.
Parameters: filename the file name to check flag the flag to check
The availables flags are:
Returns: true if the filesystem has that flag, false if not (or some error occurred)
UNKNOWN: Checks the capabilities of the filesystem to which a given file belongs.
Parameters: src file to delete showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Trash a file or directory.
Parameters: src the files to delete showProgressInfo true to show progress information
Returns: the job handling the operation
UNKNOWN: Trash a list of files or directories.
kio_file.
Parameters: point Point to unmount. showProgressInfo true to show progress information
Returns: the job handling the operation.
UNKNOWN: Unmount filesystem.
cmd
is an unsupported action (ERR_UNSUPPORTED_ACTION).Parameters: protocol name of the protocol cmd given command
See Also: KIO Command
UNKNOWN: Returns an appropriate error message if the given command cmd
is an unsupported action (ERR_UNSUPPORTED_ACTION).