Fix references to KIO

pull/1/head
Timothy Pearson 13 years ago
parent 60b0254722
commit a3c2194df5

@ -100,7 +100,7 @@ public interface BrowserExtensionSignals {
/** /**
Since the part emits the jobid in the started() signal, Since the part emits the jobid in the started() signal,
progress information is automatically displayed. progress information is automatically displayed.
However, if you don't use a KIO.Job in the part, However, if you don't use a TDEIO.Job in the part,
you can use loadingProgress() and speedProgress() you can use loadingProgress() and speedProgress()
to display progress information. to display progress information.
@short Since the part emits the jobid in the started() signal, progress information is automatically displayed. @short Since the part emits the jobid in the started() signal, progress information is automatically displayed.

@ -31,7 +31,7 @@ public class BrowserRun extends KRun {
@param url the URL we're probing @param url the URL we're probing
@param args URL args - includes data for a HTTP POST, etc. @param args URL args - includes data for a HTTP POST, etc.
@param part the part going to open this URL - can be null if not created yet @param part the part going to open this URL - can be null if not created yet
@param window the mainwindow - passed to KIO.Job.setWindow() @param window the mainwindow - passed to TDEIO.Job.setWindow()
@param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on @param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on
@param trustedSource if false, a warning will be shown before launching an executable @param trustedSource if false, a warning will be shown before launching an executable
Always pass false for <code>trustedSource</code>, except for local directory views. Always pass false for <code>trustedSource</code>, except for local directory views.
@ -46,7 +46,7 @@ public class BrowserRun extends KRun {
@param url the URL we're probing @param url the URL we're probing
@param args URL args - includes data for a HTTP POST, etc. @param args URL args - includes data for a HTTP POST, etc.
@param part the part going to open this URL - can be null if not created yet @param part the part going to open this URL - can be null if not created yet
@param window the mainwindow - passed to KIO.Job.setWindow() @param window the mainwindow - passed to TDEIO.Job.setWindow()
@param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on @param removeReferrer if true, the "referrer" metadata from <code>args</code> isn't passed on
@param trustedSource if false, a warning will be shown before launching an executable @param trustedSource if false, a warning will be shown before launching an executable
@param hideErrorDialog if true, no dialog will be shown in case of errors. @param hideErrorDialog if true, no dialog will be shown in case of errors.

@ -9,8 +9,8 @@ import java.util.ArrayList;
/** /**
CopyJob is used to move, copy or symlink files and directories. CopyJob is used to move, copy or symlink files and directories.
Don't create the job directly, but use KIO.copy(), Don't create the job directly, but use TDEIO.copy(),
KIO.move(), KIO.link() and friends. TDEIO.move(), TDEIO.link() and friends.
See {@link CopyJobSignals} for signals emitted by CopyJob See {@link CopyJobSignals} for signals emitted by CopyJob
@short CopyJob is used to move, copy or symlink files and directories. @short CopyJob is used to move, copy or symlink files and directories.
@see #copy @see #copy
@ -26,13 +26,13 @@ public class CopyJob extends Job {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a CopyJob directly. Use KIO.copy(), Do not create a CopyJob directly. Use TDEIO.copy(),
KIO.move(), KIO.link() and friends instead. TDEIO.move(), TDEIO.link() and friends instead.
@param src the list of source URLs @param src the list of source URLs
@param dest the destination URL @param dest the destination URL
@param mode specifies whether the job should copy, move or link @param mode specifies whether the job should copy, move or link
@param asMethod if true, behaves like KIO.copyAs(), @param asMethod if true, behaves like TDEIO.copyAs(),
KIO.moveAs() or KIO.linkAs() TDEIO.moveAs() or TDEIO.linkAs()
@param showProgressInfo true to show progress information to the user @param showProgressInfo true to show progress information to the user
@short Do not create a CopyJob directly. @short Do not create a CopyJob directly.
@see #copy @see #copy

@ -23,9 +23,9 @@ public class DavJob extends TransferJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Use KIO.davPropFind(), KIO.davPropPatch() and Use TDEIO.davPropFind(), TDEIO.davPropPatch() and
KIO.davSearch() to create a new DavJob. TDEIO.davSearch() to create a new DavJob.
@short Use KIO.davPropFind(), KIO.davPropPatch() and KIO.davSearch() to create a new DavJob. @short Use TDEIO.davPropFind(), TDEIO.davPropPatch() and TDEIO.davSearch() to create a new DavJob.
*/ */
public DavJob(KURL url, int method, String request, boolean showProgressInfo) { public DavJob(KURL url, int method, String request, boolean showProgressInfo) {
super((Class) null); super((Class) null);

@ -57,7 +57,7 @@ public class DefaultProgress extends ProgressBase {
public native void slotPercent(Job arg1, long percent); public native void slotPercent(Job arg1, long percent);
/** /**
Called to set an information message. Called to set an information message.
@param job the KIO.Job @param job the TDEIO.Job
@param msg the message to set @param msg the message to set
@short Called to set an information message. @short Called to set an information message.
*/ */
@ -67,7 +67,7 @@ public class DefaultProgress extends ProgressBase {
public native void slotDeleting(Job arg1, KURL url); public native void slotDeleting(Job arg1, KURL url);
/** /**
Called when the job is transferring. Called when the job is transferring.
@param job the KIO.Job @param job the TDEIO.Job
@param url the url to transfer @param url the url to transfer
@short Called when the job is transferring. @short Called when the job is transferring.
*/ */
@ -75,14 +75,14 @@ public class DefaultProgress extends ProgressBase {
public native void slotCreatingDir(Job arg1, KURL dir); public native void slotCreatingDir(Job arg1, KURL dir);
/** /**
Called when the job is requesting a stat. Called when the job is requesting a stat.
@param job the KIO.Job @param job the TDEIO.Job
@param dir the dir to stat @param dir the dir to stat
@short Called when the job is requesting a stat. @short Called when the job is requesting a stat.
*/ */
public native void slotStating(Job arg1, KURL dir); public native void slotStating(Job arg1, KURL dir);
/** /**
Called when the job is mounting. Called when the job is mounting.
@param job the KIO.Job @param job the TDEIO.Job
@param dev the device to mount @param dev the device to mount
@param point the mount point @param point the mount point
@short Called when the job is mounting. @short Called when the job is mounting.
@ -90,7 +90,7 @@ public class DefaultProgress extends ProgressBase {
public native void slotMounting(Job arg1, String dev, String point); public native void slotMounting(Job arg1, String dev, String point);
/** /**
Called when the job is unmounting. Called when the job is unmounting.
@param job the KIO.Job @param job the TDEIO.Job
@param point the mount point @param point the mount point
@short Called when the job is unmounting. @short Called when the job is unmounting.
*/ */

@ -9,7 +9,7 @@ import java.util.ArrayList;
/** /**
A more complex Job to delete files and directories. A more complex Job to delete files and directories.
Don't create the job directly, but use KIO.del() instead. Don't create the job directly, but use TDEIO.del() instead.
See {@link DeleteJobSignals} for signals emitted by DeleteJob See {@link DeleteJobSignals} for signals emitted by DeleteJob
@short A more complex Job to delete files and directories. @short A more complex Job to delete files and directories.
@see #del @see #del
@ -20,7 +20,7 @@ public class DeleteJob extends Job {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a DeleteJob directly. Use KIO.del() Do not create a DeleteJob directly. Use TDEIO.del()
instead. instead.
@param src the list of URLs to delete @param src the list of URLs to delete
@param shred true to shred (make sure that data is not recoverable)a @param shred true to shred (make sure that data is not recoverable)a

@ -18,8 +18,8 @@ public class FileCopyJob extends Job {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a FileCopyJob directly. Use KIO.file_move() Do not create a FileCopyJob directly. Use TDEIO.file_move()
or KIO.file_copy() instead. or TDEIO.file_copy() instead.
@param src the source URL @param src the source URL
@param dest the destination URL @param dest the destination URL
@param permissions the permissions of the resulting resource @param permissions the permissions of the resulting resource

@ -13,9 +13,9 @@ import org.kde.qt.TQObject;
The base class for all jobs. The base class for all jobs.
For all jobs created in an application, the code looks like For all jobs created in an application, the code looks like
<pre> <pre>
KIO.Job job = KIO.someoperation( some parameters ); TDEIO.Job job = TDEIO.someoperation( some parameters );
connect( job, SIGNAL("result( KIO.Job )"), connect( job, SIGNAL("result( TDEIO.Job )"),
this, SLOT("slotResult( KIO.Job )") ); this, SLOT("slotResult( TDEIO.Job )") );
</pre> </pre>
(other connects, specific to the job) (other connects, specific to the job)
And slotResult is usually at least: And slotResult is usually at least:
@ -49,7 +49,7 @@ public class Job extends TQObject {
Returns the error code, if there has been an error. Returns the error code, if there has been an error.
Only call this method from the slot connected to result(). Only call this method from the slot connected to result().
@return the error code for this job, 0 if no error. @return the error code for this job, 0 if no error.
Error codes are defined in KIO.Error. Error codes are defined in TDEIO.Error.
@short Returns the error code, if there has been an error. @short Returns the error code, if there has been an error.
*/ */

@ -205,7 +205,7 @@ public class KCombiView extends TQSplitter implements KFileViewInterface {
/** /**
An overloaded method that takes not a String, but a number as sort An overloaded method that takes not a String, but a number as sort
criterion. You can use this for file-sizes or dates/times for example. criterion. You can use this for file-sizes or dates/times for example.
If you use a time_t, you need to cast that to KIO.filesize_t because If you use a time_t, you need to cast that to TDEIO.filesize_t because
of ambiguity problems. of ambiguity problems.
@short An overloaded method that takes not a String, but a number as sort criterion. @short An overloaded method that takes not a String, but a number as sort criterion.
*/ */

@ -24,7 +24,7 @@ import org.kde.qt.TQWidget;
show either a simple or detailed view and additionally a preview widget show either a simple or detailed view and additionally a preview widget
(see setPreviewWidget()). KImageFilePreview is one implementation (see setPreviewWidget()). KImageFilePreview is one implementation
of a preview widget, that displays previews for all supported filetypes of a preview widget, that displays previews for all supported filetypes
utilizing KIO.PreviewJob. utilizing TDEIO.PreviewJob.
Currently, those classes don't support Drag&Drop out of the box -- there Currently, those classes don't support Drag&Drop out of the box -- there
you have to use your own view-classes. You can use some DnD-aware views you have to use your own view-classes. You can use some DnD-aware views
from Bj<EFBFBD>n Sahlstr<EFBFBD> <bjorn@kbear.org> until they will be integrated from Bj<EFBFBD>n Sahlstr<EFBFBD> <bjorn@kbear.org> until they will be integrated
@ -528,22 +528,22 @@ public class KDirOperator extends TQWidget {
public native boolean mkdir(String directory, boolean enterDirectory); public native boolean mkdir(String directory, boolean enterDirectory);
public native boolean mkdir(String directory); public native boolean mkdir(String directory);
/** /**
Starts and returns a KIO.DeleteJob to delete the given <code>items.</code> Starts and returns a TDEIO.DeleteJob to delete the given <code>items.</code>
@param items the list of items to be deleted @param items the list of items to be deleted
@param ask specifies whether a confirmation dialog should be shown @param ask specifies whether a confirmation dialog should be shown
@param showProgress passed to the DeleteJob to show a progress dialog @param showProgress passed to the DeleteJob to show a progress dialog
@short Starts and returns a KIO.DeleteJob to delete the given <code>items.</code> @short Starts and returns a TDEIO.DeleteJob to delete the given <code>items.</code>
*/ */
public native DeleteJob del(ArrayList items, boolean ask, boolean showProgress); public native DeleteJob del(ArrayList items, boolean ask, boolean showProgress);
public native DeleteJob del(ArrayList items, boolean ask); public native DeleteJob del(ArrayList items, boolean ask);
public native DeleteJob del(ArrayList items); public native DeleteJob del(ArrayList items);
/** /**
Starts and returns a KIO.DeleteJob to delete the given <code>items.</code> Starts and returns a TDEIO.DeleteJob to delete the given <code>items.</code>
@param items the list of items to be deleted @param items the list of items to be deleted
@param parent the parent widget used for the confirmation dialog @param parent the parent widget used for the confirmation dialog
@param ask specifies whether a confirmation dialog should be shown @param ask specifies whether a confirmation dialog should be shown
@param showProgress passed to the DeleteJob to show a progress dialog @param showProgress passed to the DeleteJob to show a progress dialog
@short Starts and returns a KIO.DeleteJob to delete the given <code>items.</code> @short Starts and returns a TDEIO.DeleteJob to delete the given <code>items.</code>
*/ */
public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask, boolean showProgress); public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask, boolean showProgress);
public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask); public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask);
@ -596,12 +596,12 @@ public class KDirOperator extends TQWidget {
*/ */
public native void setDropOptions(int options); public native void setDropOptions(int options);
/** /**
Starts and returns a KIO.CopyJob to trash the given <code>items.</code> Starts and returns a TDEIO.CopyJob to trash the given <code>items.</code>
@param items the list of items to be trashed @param items the list of items to be trashed
@param parent the parent widget used for the confirmation dialog @param parent the parent widget used for the confirmation dialog
@param ask specifies whether a confirmation dialog should be shown @param ask specifies whether a confirmation dialog should be shown
@param showProgress passed to the CopyJob to show a progress dialog @param showProgress passed to the CopyJob to show a progress dialog
@short Starts and returns a KIO.CopyJob to trash the given <code>items.</code> @short Starts and returns a TDEIO.CopyJob to trash the given <code>items.</code>
*/ */
public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask, boolean showProgress); public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask, boolean showProgress);
public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask); public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask);
@ -725,10 +725,10 @@ public class KDirOperator extends TQWidget {
*/ */
protected native void prepareCompletionObjects(); protected native void prepareCompletionObjects();
/** /**
Checks if there support from KIO.PreviewJob for the currently Checks if there support from TDEIO.PreviewJob for the currently
shown files, taking mimeFilter() and nameFilter() into account shown files, taking mimeFilter() and nameFilter() into account
Enables/disables the preview-action accordingly. Enables/disables the preview-action accordingly.
@short Checks if there support from KIO.PreviewJob for the currently shown files, taking mimeFilter() and nameFilter() into account Enables/disables the preview-action accordingly. @short Checks if there support from TDEIO.PreviewJob for the currently shown files, taking mimeFilter() and nameFilter() into account Enables/disables the preview-action accordingly.
*/ */
protected native boolean checkPreviewSupport(); protected native boolean checkPreviewSupport();
/** /**

@ -215,7 +215,7 @@ public class KFileDetailView extends TDEListView implements KFileViewInterface {
/** /**
An overloaded method that takes not a String, but a number as sort An overloaded method that takes not a String, but a number as sort
criterion. You can use this for file-sizes or dates/times for example. criterion. You can use this for file-sizes or dates/times for example.
If you use a time_t, you need to cast that to KIO.filesize_t because If you use a time_t, you need to cast that to TDEIO.filesize_t because
of ambiguity problems. of ambiguity problems.
@short An overloaded method that takes not a String, but a number as sort criterion. @short An overloaded method that takes not a String, but a number as sort criterion.
*/ */

@ -268,7 +268,7 @@ public class KFileIconView extends TDEIconView implements KFileViewInterface {
/** /**
An overloaded method that takes not a String, but a number as sort An overloaded method that takes not a String, but a number as sort
criterion. You can use this for file-sizes or dates/times for example. criterion. You can use this for file-sizes or dates/times for example.
If you use a time_t, you need to cast that to KIO.filesize_t because If you use a time_t, you need to cast that to TDEIO.filesize_t because
of ambiguity problems. of ambiguity problems.
@short An overloaded method that takes not a String, but a number as sort criterion. @short An overloaded method that takes not a String, but a number as sort criterion.
*/ */

@ -8,7 +8,7 @@ import org.kde.qt.TQPixmap;
/** /**
A KFileItem is a generic class to handle a file, local or remote. A KFileItem is a generic class to handle a file, local or remote.
In particular, it makes it easier to handle the result of KIO.listDir In particular, it makes it easier to handle the result of TDEIO.listDir
(UDSEntry isn't very friendly to use). (UDSEntry isn't very friendly to use).
It includes many file attributes such as mimetype, icon, text, mode, link... It includes many file attributes such as mimetype, icon, text, mode, link...
@short A KFileItem is a generic class to handle a file, local or remote. @short A KFileItem is a generic class to handle a file, local or remote.
@ -28,7 +28,7 @@ public class KFileItem implements QtSupport {
/** /**
Creates an item representing a file, from a UDSEntry. Creates an item representing a file, from a UDSEntry.
This is the preferred constructor when using KIO.listDir(). This is the preferred constructor when using TDEIO.listDir().
@param _entry the KIO entry used to get the file, contains info about it @param _entry the KIO entry used to get the file, contains info about it
@param _url the file url @param _url the file url
@param _determineMimeTypeOnDemand specifies if the mimetype of the given @param _determineMimeTypeOnDemand specifies if the mimetype of the given

@ -204,7 +204,7 @@ public class KFilePreview extends TQSplitter implements KFileViewInterface {
/** /**
An overloaded method that takes not a String, but a number as sort An overloaded method that takes not a String, but a number as sort
criterion. You can use this for file-sizes or dates/times for example. criterion. You can use this for file-sizes or dates/times for example.
If you use a time_t, you need to cast that to KIO.filesize_t because If you use a time_t, you need to cast that to TDEIO.filesize_t because
of ambiguity problems. of ambiguity problems.
@short An overloaded method that takes not a String, but a number as sort criterion. @short An overloaded method that takes not a String, but a number as sort criterion.
*/ */

@ -299,7 +299,7 @@ public class KFileView implements QtSupport, KFileViewInterface {
/** /**
An overloaded method that takes not a String, but a number as sort An overloaded method that takes not a String, but a number as sort
criterion. You can use this for file-sizes or dates/times for example. criterion. You can use this for file-sizes or dates/times for example.
If you use a time_t, you need to cast that to KIO.filesize_t because If you use a time_t, you need to cast that to TDEIO.filesize_t because
of ambiguity problems. of ambiguity problems.
@short An overloaded method that takes not a String, but a number as sort criterion. @short An overloaded method that takes not a String, but a number as sort criterion.
*/ */

@ -45,7 +45,7 @@ import org.kde.qt.QtSupport;
<li>fatalerror <li>fatalerror
<li>catastrophe <li>catastrophe
</ul> </ul>
The events can be configured in an application using KNotifyDialog, which is part of KIO. The events can be configured in an application using KNotifyDialog, which is part of TDEIO.
@author Charles Samuels <charles@kde.org> @author Charles Samuels <charles@kde.org>
@short This namespace provides a method for issuing events to a KNotifyServer call KNotifyClient.event("eventname"); to issue it. @short This namespace provides a method for issuing events to a KNotifyServer call KNotifyClient.event("eventname"); to issue it.

@ -41,7 +41,7 @@ public class KRun extends TQObject {
not. This flag is just used to improve speed, since the not. This flag is just used to improve speed, since the
function KURL.isLocalFile is a bit slow. function KURL.isLocalFile is a bit slow.
@param showProgressInfo Whether to show progress information when determining the @param showProgressInfo Whether to show progress information when determining the
type of the file (i.e. when using KIO.stat and KIO.mimetype) type of the file (i.e. when using TDEIO.stat and TDEIO.mimetype)
Before you set this to false to avoid a dialog box, think about Before you set this to false to avoid a dialog box, think about
a very slow FTP server... a very slow FTP server...
It is always better to provide progress info in such cases. It is always better to provide progress info in such cases.
@ -80,7 +80,7 @@ public class KRun extends TQObject {
not. This flag is just used to improve speed, since the not. This flag is just used to improve speed, since the
function KURL.isLocalFile is a bit slow. function KURL.isLocalFile is a bit slow.
@param showProgressInfo Whether to show progress information when determining the @param showProgressInfo Whether to show progress information when determining the
type of the file (i.e. when using KIO.stat and KIO.mimetype) type of the file (i.e. when using TDEIO.stat and TDEIO.mimetype)
Before you set this to false to avoid a dialog box, think about Before you set this to false to avoid a dialog box, think about
a very slow FTP server... a very slow FTP server...
It is always better to provide progress info in such cases. It is always better to provide progress info in such cases.

@ -9,7 +9,7 @@ import org.kde.qt.TQCustomEvent;
/** /**
This class does completion of URLs including user directories (~user) This class does completion of URLs including user directories (~user)
and environment variables. Remote URLs are passed to KIO. and environment variables. Remote URLs are passed to TDEIO.
@author David Smith <dsmith@algonet.se> @author David Smith <dsmith@algonet.se>
@short Completion of a single URL. @short Completion of a single URL.
@ -26,7 +26,7 @@ public class KURLCompletion extends TDECompletion {
<li> <li>
FileCompletion - all files with full path or in dir(), URLs FileCompletion - all files with full path or in dir(), URLs
are listed using KIO. are listed using TDEIO.
</li> </li>
<li> <li>
@ -61,7 +61,7 @@ public class KURLCompletion extends TDECompletion {
private native void newKURLCompletion(int arg1); private native void newKURLCompletion(int arg1);
/** /**
Finds completions to the given text. Finds completions to the given text.
Remote URLs are listed with KIO. For performance reasons, local files Remote URLs are listed with TDEIO. For performance reasons, local files
are listed with KIO only if KURLCOMPLETION_LOCAL_KIO is set. are listed with KIO only if KURLCOMPLETION_LOCAL_KIO is set.
The completion is done asyncronously if KIO is used. The completion is done asyncronously if KIO is used.
Returns the first match for user, environment, and local dir completion Returns the first match for user, environment, and local dir completion

@ -8,8 +8,8 @@ import org.kde.qt.QtSupport;
/** /**
A ListJob is allows you to get the get the content of a directory. A ListJob is allows you to get the get the content of a directory.
Don't create the job directly, but use KIO.listRecursive() or Don't create the job directly, but use TDEIO.listRecursive() or
KIO.listDir() instead. TDEIO.listDir() instead.
See {@link ListJobSignals} for signals emitted by ListJob See {@link ListJobSignals} for signals emitted by ListJob
@short A ListJob is allows you to get the get the content of a directory. @short A ListJob is allows you to get the get the content of a directory.
@see #listRecursive @see #listRecursive
@ -21,8 +21,8 @@ public class ListJob extends SimpleJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a ListJob directly. Use KIO.listDir() or Do not create a ListJob directly. Use TDEIO.listDir() or
KIO.listRecursive() instead. TDEIO.listRecursive() instead.
@param url the url of the directory @param url the url of the directory
@param showProgressInfo true to show progress information to the user @param showProgressInfo true to show progress information to the user
@param recursive true to get the data recursively from child directories, @param recursive true to get the data recursively from child directories,

File diff suppressed because one or more lines are too long

@ -9,7 +9,7 @@ import org.kde.qt.QtSupport;
A MimetypeJob is a TransferJob that allows you to get A MimetypeJob is a TransferJob that allows you to get
the mime type of an URL. Don't create directly, the mime type of an URL. Don't create directly,
but use KIO.mimetype() instead. but use TDEIO.mimetype() instead.
@short A MimetypeJob is a TransferJob that allows you to get the mime type of an URL. @short A MimetypeJob is a TransferJob that allows you to get the mime type of an URL.
@see #mimetype @see #mimetype
@ -19,7 +19,7 @@ public class MimetypeJob extends TransferJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a MimetypeJob directly. Use KIO.mimetype() Do not create a MimetypeJob directly. Use TDEIO.mimetype()
instead. instead.
@param url the url to get @param url the url to get
@param command the command to issue @param command the command to issue

@ -9,7 +9,7 @@ import org.kde.qt.QtSupport;
The MultiGetJob is a TransferJob that allows you to get The MultiGetJob is a TransferJob that allows you to get
several files from a single server. Don't create directly, several files from a single server. Don't create directly,
but use KIO.multi_get() instead. but use TDEIO.multi_get() instead.
See {@link MultiGetJobSignals} for signals emitted by MultiGetJob See {@link MultiGetJobSignals} for signals emitted by MultiGetJob
@short The MultiGetJob is a TransferJob that allows you to get several files from a single server. @short The MultiGetJob is a TransferJob that allows you to get several files from a single server.
@see #multi_get @see #multi_get
@ -20,11 +20,11 @@ public class MultiGetJob extends TransferJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a MultiGetJob directly, use KIO.multi_get() Do not create a MultiGetJob directly, use TDEIO.multi_get()
instead. instead.
@param url the first url to get @param url the first url to get
@param showProgressInfo true to show progress information to the user @param showProgressInfo true to show progress information to the user
@short Do not create a MultiGetJob directly, use KIO.multi_get() instead. @short Do not create a MultiGetJob directly, use TDEIO.multi_get() instead.
*/ */
public MultiGetJob(KURL url, boolean showProgressInfo) { public MultiGetJob(KURL url, boolean showProgressInfo) {
super((Class) null); super((Class) null);

@ -22,7 +22,7 @@ public interface MultiGetJobSignals {
void mimetype(long id, String type); void mimetype(long id, String type);
/** /**
File transfer completed. File transfer completed.
When all files have been processed, result(KIO.Job ) gets When all files have been processed, result(TDEIO.Job ) gets
emitted. emitted.
@param id the id of the request @param id the id of the request
@short File transfer completed. @short File transfer completed.

@ -12,9 +12,9 @@ import org.kde.qt.TQObject;
Net Transparency. Net Transparency.
NetAccess allows you to do simple file operation (load, save, NetAccess allows you to do simple file operation (load, save,
copy, delete...) without working with KIO.Job directly. copy, delete...) without working with TDEIO.Job directly.
Whereas a KIO.Job is asynchronous, meaning that the Whereas a TDEIO.Job is asynchronous, meaning that the
developer has to connect slots for it, KIO.NetAccess provides developer has to connect slots for it, TDEIO.NetAccess provides
synchronous downloads and uploads, as well as temporary file synchronous downloads and uploads, as well as temporary file
creation and removal. The functions appear to be blocking, creation and removal. The functions appear to be blocking,
but the Qt event loop continues running while the operations but the Qt event loop continues running while the operations
@ -48,12 +48,12 @@ public class NetAccess extends TQObject {
application has a loadFile() function): application has a loadFile() function):
<pre> <pre>
String tmpFile; String tmpFile;
if( KIO.NetAccess.download( u, tmpFile, window ) ) if( TDEIO.NetAccess.download( u, tmpFile, window ) )
{ {
loadFile( tmpFile ); loadFile( tmpFile );
KIO.NetAccess.removeTempFile( tmpFile ); TDEIO.NetAccess.removeTempFile( tmpFile );
} else { } else {
KMessageBox.error(this, KIO.NetAccess.lastErrorString() ); KMessageBox.error(this, TDEIO.NetAccess.lastErrorString() );
} }
</pre> </pre>
Of course, your user interface will still process exposure/repaint Of course, your user interface will still process exposure/repaint
@ -79,13 +79,13 @@ public class NetAccess extends TQObject {
public static native boolean download(KURL src, StringBuffer target, TQWidget window); public static native boolean download(KURL src, StringBuffer target, TQWidget window);
/** /**
Removes the specified file if and only if it was created Removes the specified file if and only if it was created
by KIO.NetAccess as a temporary file for a former download. by TDEIO.NetAccess as a temporary file for a former download.
Note: This means that if you created your temporary with KTempFile, Note: This means that if you created your temporary with KTempFile,
use KTempFile.unlink() or KTempFile.setAutoDelete() to have use KTempFile.unlink() or KTempFile.setAutoDelete() to have
it removed. it removed.
@param name Path to temporary file to remove. May not be @param name Path to temporary file to remove. May not be
empty. empty.
@short Removes the specified file if and only if it was created by KIO.NetAccess as a temporary file for a former download. @short Removes the specified file if and only if it was created by TDEIO.NetAccess as a temporary file for a former download.
*/ */
public static native void removeTempFile(String name); public static native void removeTempFile(String name);
/** /**
@ -110,7 +110,7 @@ public class NetAccess extends TQObject {
Alternative to upload for copying over the network. Alternative to upload for copying over the network.
Overwrite is false, so this will fail if <code>target</code> exists. Overwrite is false, so this will fail if <code>target</code> exists.
This one takes two URLs and is a direct equivalent This one takes two URLs and is a direct equivalent
of KIO.file_copy (not KIO.copy!). of TDEIO.file_copy (not TDEIO.copy!).
It will be renamed file_copy in KDE4, so better use file_copy. It will be renamed file_copy in KDE4, so better use file_copy.
@param src URL Referencing the file to upload. @param src URL Referencing the file to upload.
@param target URL containing the final location of the file. @param target URL containing the final location of the file.
@ -125,8 +125,8 @@ public class NetAccess extends TQObject {
*/ */
public static native boolean copy(KURL src, KURL target, TQWidget window); public static native boolean copy(KURL src, KURL target, TQWidget window);
/** /**
Full-fledged equivalent of KIO.file_copy Full-fledged equivalent of TDEIO.file_copy
@short Full-fledged equivalent of KIO.file_copy @short Full-fledged equivalent of TDEIO.file_copy
*/ */
public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, TQWidget window); public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, TQWidget window);
public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume); public static native boolean file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume);
@ -134,9 +134,9 @@ public class NetAccess extends TQObject {
public static native boolean file_copy(KURL src, KURL dest, int permissions); public static native boolean file_copy(KURL src, KURL dest, int permissions);
public static native boolean file_copy(KURL src, KURL dest); public static native boolean file_copy(KURL src, KURL dest);
/** /**
Full-fledged equivalent of KIO.file_move. Full-fledged equivalent of TDEIO.file_move.
Moves or renames one file. Moves or renames one file.
@short Full-fledged equivalent of KIO.file_move. @short Full-fledged equivalent of TDEIO.file_move.
*/ */
public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume, TQWidget window); public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume, TQWidget window);
public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume); public static native boolean file_move(KURL src, KURL target, int permissions, boolean overwrite, boolean resume);
@ -147,7 +147,7 @@ public class NetAccess extends TQObject {
Alternative method for copying over the network. Alternative method for copying over the network.
Overwrite is false, so this will fail if <code>target</code> exists. Overwrite is false, so this will fail if <code>target</code> exists.
This one takes two URLs and is a direct equivalent This one takes two URLs and is a direct equivalent
of KIO.copy!. of TDEIO.copy!.
This means that it can copy files and directories alike This means that it can copy files and directories alike
(it should have been named copy()). (it should have been named copy()).
@param src URL Referencing the file to upload. @param src URL Referencing the file to upload.
@ -170,16 +170,16 @@ public class NetAccess extends TQObject {
public static native boolean dircopy(ArrayList src, KURL target, TQWidget window); public static native boolean dircopy(ArrayList src, KURL target, TQWidget window);
public static native boolean dircopy(ArrayList src, KURL target); public static native boolean dircopy(ArrayList src, KURL target);
/** /**
Full-fledged equivalent of KIO.move. Full-fledged equivalent of TDEIO.move.
Moves or renames one file or directory. Moves or renames one file or directory.
@short Full-fledged equivalent of KIO.move. @short Full-fledged equivalent of TDEIO.move.
*/ */
public static native boolean move(KURL src, KURL target, TQWidget window); public static native boolean move(KURL src, KURL target, TQWidget window);
public static native boolean move(KURL src, KURL target); public static native boolean move(KURL src, KURL target);
/** /**
Full-fledged equivalent of KIO.move. Full-fledged equivalent of TDEIO.move.
Moves or renames a list of files or directories. Moves or renames a list of files or directories.
@short Full-fledged equivalent of KIO.move. @short Full-fledged equivalent of TDEIO.move.
*/ */
public static native boolean move(ArrayList src, KURL target, TQWidget window); public static native boolean move(ArrayList src, KURL target, TQWidget window);
public static native boolean move(ArrayList src, KURL target); public static native boolean move(ArrayList src, KURL target);
@ -188,7 +188,7 @@ public class NetAccess extends TQObject {
@param url the URL we are testing @param url the URL we are testing
@param source if true, we want to read from that URL. @param source if true, we want to read from that URL.
If false, we want to write to it. If false, we want to write to it.
IMPORTANT: see documentation for KIO.stat for more details about this. IMPORTANT: see documentation for TDEIO.stat for more details about this.
@param window main window associated with this job. This is used to @param window main window associated with this job. This is used to
automatically cache and discard authentication information automatically cache and discard authentication information
as needed. If NULL, authentication information will be as needed. If NULL, authentication information will be
@ -202,7 +202,7 @@ public class NetAccess extends TQObject {
public static native boolean exists(KURL url, boolean source, TQWidget window); public static native boolean exists(KURL url, boolean source, TQWidget window);
/** /**
Tests whether a URL exists and return information on it. Tests whether a URL exists and return information on it.
This is a convenience function for KIO.stat This is a convenience function for TDEIO.stat
(it saves creating a slot and testing for the job result). (it saves creating a slot and testing for the job result).
@param url The URL we are testing. @param url The URL we are testing.
@param entry The result of the stat. Iterate over the list @param entry The result of the stat. Iterate over the list
@ -219,7 +219,7 @@ public class NetAccess extends TQObject {
// bool stat(const KURL& arg1,TDEIO::UDSEntry& arg2,TQWidget* arg3); >>>> NOT CONVERTED // bool stat(const KURL& arg1,TDEIO::UDSEntry& arg2,TQWidget* arg3); >>>> NOT CONVERTED
/** /**
Tries to map a local URL for the given URL. Tries to map a local URL for the given URL.
This is a convenience function for KIO.stat + parsing the This is a convenience function for TDEIO.stat + parsing the
resulting UDSEntry. resulting UDSEntry.
@param url The URL we are testing. @param url The URL we are testing.
@param window main window associated with this job. This is used to @param window main window associated with this job. This is used to
@ -235,7 +235,7 @@ public class NetAccess extends TQObject {
public static native KURL mostLocalURL(KURL url, TQWidget window); public static native KURL mostLocalURL(KURL url, TQWidget window);
/** /**
Deletes a file or a directory in a synchronous way. Deletes a file or a directory in a synchronous way.
This is a convenience function for KIO.del This is a convenience function for TDEIO.del
(it saves creating a slot and testing for the job result). (it saves creating a slot and testing for the job result).
@param url The file or directory to delete. @param url The file or directory to delete.
@param window main window associated with this job. This is used to @param window main window associated with this job. This is used to
@ -290,7 +290,7 @@ public class NetAccess extends TQObject {
If a job fetches some data, pass a byte[] pointer as data parameter to this function If a job fetches some data, pass a byte[] pointer as data parameter to this function
and after the function returns it will contain all the data fetched by this job. and after the function returns it will contain all the data fetched by this job.
<code> <code>
KIO.Job job = KIO.get( url, false, false ); TDEIO.Job job = TDEIO.get( url, false, false );
TQMap<String, String> metaData; TQMap<String, String> metaData;
metaData.insert( "PropagateHttpHeader", "true" ); metaData.insert( "PropagateHttpHeader", "true" );
if ( NetAccess.synchronousRun( job, 0, &data, &url, &metaData ) ) { if ( NetAccess.synchronousRun( job, 0, &data, &url, &metaData ) ) {
@ -324,7 +324,7 @@ public class NetAccess extends TQObject {
This function is not implemented!? This function is not implemented!?
(only mimetypeInternal) (only mimetypeInternal)
Determines the mimetype of a given URL. Determines the mimetype of a given URL.
This is a convenience function for KIO.mimetype. You This is a convenience function for TDEIO.mimetype. You
should call this only when really necessary. should call this only when really necessary.
KMimeType.findByURL can determine extension a lot faster, but KMimeType.findByURL can determine extension a lot faster, but
less reliably for remote files. Only when findByURL() returns less reliably for remote files. Only when findByURL() returns

@ -10,17 +10,17 @@ import org.kde.qt.TQObject;
/** /**
Observer for KIO.Job progress information. Observer for TDEIO.Job progress information.
This class, of which there is always only one instance, This class, of which there is always only one instance,
"observes" what jobs do and forwards this information "observes" what jobs do and forwards this information
to the progress-info server. to the progress-info server.
It is a DCOP object so that the UI server can call the It is a DCOP object so that the UI server can call the
kill method when the user presses Cancel. kill method when the user presses Cancel.
Usually jobs are automatically registered by the Usually jobs are automatically registered by the
KIO.Scheduler, so you do not have to care about that. TDEIO.Scheduler, so you do not have to care about that.
@author David Faure <faure@kde.org> @author David Faure <faure@kde.org>
@short Observer for KIO.Job progress information. @short Observer for TDEIO.Job progress information.
*/ */
public class Observer extends TQObject implements DCOPObjectInterface { public class Observer extends TQObject implements DCOPObjectInterface {
@ -106,7 +106,7 @@ public class Observer extends TQObject implements DCOPObjectInterface {
*/ */
public static native Observer self(); public static native Observer self();
/** /**
Popup a message box. See KIO.SlaveBase. Popup a message box. See TDEIO.SlaveBase.
This doesn't use DCOP anymore, it shows the dialog in the application's process. This doesn't use DCOP anymore, it shows the dialog in the application's process.
Otherwise, other apps would block when trying to communicate with UIServer. Otherwise, other apps would block when trying to communicate with UIServer.
@param progressId the progress ID of the job, as returned by newJob() @param progressId the progress ID of the job, as returned by newJob()
@ -119,7 +119,7 @@ public class Observer extends TQObject implements DCOPObjectInterface {
*/ */
public static native int messageBox(int progressId, int type, String text, String caption, String buttonYes, String buttonNo); public static native int messageBox(int progressId, int type, String text, String caption, String buttonYes, String buttonNo);
/** /**
Popup a message box. See KIO.SlaveBase. Popup a message box. See TDEIO.SlaveBase.
This doesn't use DCOP anymore, it shows the dialog in the application's process. This doesn't use DCOP anymore, it shows the dialog in the application's process.
Otherwise, other apps would block when trying to communicate with UIServer. Otherwise, other apps would block when trying to communicate with UIServer.
@param progressId the progress ID of the job, as returned by newJob() @param progressId the progress ID of the job, as returned by newJob()

@ -21,7 +21,7 @@ import org.kde.qt.TQWidget;
Custom progress dialog will be used like this : Custom progress dialog will be used like this :
<pre> <pre>
// create job // create job
CopyJob job = KIO.copy(...); CopyJob job = TDEIO.copy(...);
// create a dialog // create a dialog
MyCustomProgress customProgress; MyCustomProgress customProgress;
customProgress = new MyCustomProgress(); customProgress = new MyCustomProgress();
@ -52,33 +52,33 @@ public class ProgressBase extends TQWidget {
} }
private native void newProgressBase(TQWidget parent); private native void newProgressBase(TQWidget parent);
/** /**
Assign a KIO.Job to this progress dialog. Assign a TDEIO.Job to this progress dialog.
@param job the job to assign @param job the job to assign
@short Assign a KIO.Job to this progress dialog. @short Assign a TDEIO.Job to this progress dialog.
*/ */
public native void setJob(Job job); public native void setJob(Job job);
/** /**
Assign a KIO.Job to this progress dialog. Assign a TDEIO.Job to this progress dialog.
@param job the job to assign @param job the job to assign
@short Assign a KIO.Job to this progress dialog. @short Assign a TDEIO.Job to this progress dialog.
*/ */
public native void setJob(CopyJob job); public native void setJob(CopyJob job);
/** /**
Assign a KIO.Job to this progress dialog. Assign a TDEIO.Job to this progress dialog.
@param job the job to assign @param job the job to assign
@short Assign a KIO.Job to this progress dialog. @short Assign a TDEIO.Job to this progress dialog.
*/ */
public native void setJob(DeleteJob job); public native void setJob(DeleteJob job);
public native void setStopOnClose(boolean stopOnClose); public native void setStopOnClose(boolean stopOnClose);
public native boolean stopOnClose(); public native boolean stopOnClose();
/** /**
This controls whether the dialog should be deleted or only cleaned when This controls whether the dialog should be deleted or only cleaned when
the KIO.Job is finished (or canceled). the TDEIO.Job is finished (or canceled).
If your dialog is an embedded widget and not a separate window, you should If your dialog is an embedded widget and not a separate window, you should
setOnlyClean(true) in the constructor of your custom dialog. setOnlyClean(true) in the constructor of your custom dialog.
@param onlyClean If true the dialog will only call method slotClean. @param onlyClean If true the dialog will only call method slotClean.
If false the dialog will be deleted. If false the dialog will be deleted.
@short This controls whether the dialog should be deleted or only cleaned when the KIO.Job is finished (or canceled). @short This controls whether the dialog should be deleted or only cleaned when the TDEIO.Job is finished (or canceled).
@see #onlyClean @see #onlyClean
*/ */
public native void setOnlyClean(boolean onlyClean); public native void setOnlyClean(boolean onlyClean);
@ -110,63 +110,63 @@ public class ProgressBase extends TQWidget {
public native void slotClean(); public native void slotClean();
/** /**
Called to set the total size. Called to set the total size.
@param job the KIO.Job @param job the TDEIO.Job
@param size the total size in bytes @param size the total size in bytes
@short Called to set the total size. @short Called to set the total size.
*/ */
public native void slotTotalSize(Job job, long size); public native void slotTotalSize(Job job, long size);
/** /**
Called to set the total number of files. Called to set the total number of files.
@param job the KIO.Job @param job the TDEIO.Job
@param files the number of files @param files the number of files
@short Called to set the total number of files. @short Called to set the total number of files.
*/ */
public native void slotTotalFiles(Job job, long files); public native void slotTotalFiles(Job job, long files);
/** /**
Called to set the total number of directories. Called to set the total number of directories.
@param job the KIO.Job @param job the TDEIO.Job
@param dirs the number of directories @param dirs the number of directories
@short Called to set the total number of directories. @short Called to set the total number of directories.
*/ */
public native void slotTotalDirs(Job job, long dirs); public native void slotTotalDirs(Job job, long dirs);
/** /**
Called to set the processed size. Called to set the processed size.
@param job the KIO.Job @param job the TDEIO.Job
@param bytes the processed size in bytes @param bytes the processed size in bytes
@short Called to set the processed size. @short Called to set the processed size.
*/ */
public native void slotProcessedSize(Job job, long bytes); public native void slotProcessedSize(Job job, long bytes);
/** /**
Called to set the number of processed files. Called to set the number of processed files.
@param job the KIO.Job @param job the TDEIO.Job
@param files the number of files @param files the number of files
@short Called to set the number of processed files. @short Called to set the number of processed files.
*/ */
public native void slotProcessedFiles(Job job, long files); public native void slotProcessedFiles(Job job, long files);
/** /**
Called to set the number of processed directories. Called to set the number of processed directories.
@param job the KIO.Job @param job the TDEIO.Job
@param dirs the number of directories @param dirs the number of directories
@short Called to set the number of processed directories. @short Called to set the number of processed directories.
*/ */
public native void slotProcessedDirs(Job job, long dirs); public native void slotProcessedDirs(Job job, long dirs);
/** /**
Called to set the speed. Called to set the speed.
@param job the KIO.Job @param job the TDEIO.Job
@param speed the speed in bytes/second @param speed the speed in bytes/second
@short Called to set the speed. @short Called to set the speed.
*/ */
public native void slotSpeed(Job job, long speed); public native void slotSpeed(Job job, long speed);
/** /**
Called to set the percentage. Called to set the percentage.
@param job the KIO.Job @param job the TDEIO.Job
@param percent the percentage @param percent the percentage
@short Called to set the percentage. @short Called to set the percentage.
*/ */
public native void slotPercent(Job job, long percent); public native void slotPercent(Job job, long percent);
/** /**
Called when the job is copying. Called when the job is copying.
@param job the KIO.Job @param job the TDEIO.Job
@param src the source of the operation @param src the source of the operation
@param dest the destination of the operation @param dest the destination of the operation
@short Called when the job is copying. @short Called when the job is copying.
@ -174,7 +174,7 @@ public class ProgressBase extends TQWidget {
public native void slotCopying(Job job, KURL src, KURL dest); public native void slotCopying(Job job, KURL src, KURL dest);
/** /**
Called when the job is moving. Called when the job is moving.
@param job the KIO.Job @param job the TDEIO.Job
@param src the source of the operation @param src the source of the operation
@param dest the destination of the operation @param dest the destination of the operation
@short Called when the job is moving. @short Called when the job is moving.
@ -182,21 +182,21 @@ public class ProgressBase extends TQWidget {
public native void slotMoving(Job job, KURL src, KURL dest); public native void slotMoving(Job job, KURL src, KURL dest);
/** /**
Called when the job is deleting. Called when the job is deleting.
@param job the KIO.Job @param job the TDEIO.Job
@param url the URL to delete @param url the URL to delete
@short Called when the job is deleting. @short Called when the job is deleting.
*/ */
public native void slotDeleting(Job job, KURL url); public native void slotDeleting(Job job, KURL url);
/** /**
Called when the job is creating a directory. Called when the job is creating a directory.
@param job the KIO.Job @param job the TDEIO.Job
@param dir the URL of the directory to create @param dir the URL of the directory to create
@short Called when the job is creating a directory. @short Called when the job is creating a directory.
*/ */
public native void slotCreatingDir(Job job, KURL dir); public native void slotCreatingDir(Job job, KURL dir);
/** /**
Called when the job is resuming.. Called when the job is resuming..
@param job the KIO.Job @param job the TDEIO.Job
@param from the position to resume from in bytes @param from the position to resume from in bytes
@short Called when the job is resuming. @short Called when the job is resuming.
*/ */

@ -8,7 +8,7 @@ import org.kde.qt.TQObject;
public interface ReadOnlyPartSignals { public interface ReadOnlyPartSignals {
/** /**
The part emits this when starting data. The part emits this when starting data.
If using a KIO.Job, it sets the job in the signal, so that If using a TDEIO.Job, it sets the job in the signal, so that
progress information can be shown. Otherwise, job is 0. progress information can be shown. Otherwise, job is 0.
@short The part emits this when starting data. @short The part emits this when starting data.
*/ */

@ -11,17 +11,17 @@ import org.kde.qt.TQObject;
/** /**
The KIO.Scheduler manages io-slaves for the application. The TDEIO.Scheduler manages io-slaves for the application.
It also queues jobs and assigns the job to a slave when one It also queues jobs and assigns the job to a slave when one
becomes available. becomes available.
There are 3 possible ways for a job to get a slave: There are 3 possible ways for a job to get a slave:
<h3>1. Direct</h3> <h3>1. Direct</h3>
This is the default. When you create a job the This is the default. When you create a job the
KIO.Scheduler will be notified and will find either an existing TDEIO.Scheduler will be notified and will find either an existing
slave that is idle or it will create a new slave for the job. slave that is idle or it will create a new slave for the job.
Example: Example:
<pre> <pre>
TransferJob job = KIO.get(KURL("http://www.kde.org")); TransferJob job = TDEIO.get(KURL("http://www.kde.org"));
</pre> </pre>
<h3>2. Scheduled</h3> <h3>2. Scheduled</h3>
If you create a lot of jobs, you might want not want to have a If you create a lot of jobs, you might want not want to have a
@ -31,8 +31,8 @@ import org.kde.qt.TQObject;
a job from the queue. a job from the queue.
Example: Example:
<pre> <pre>
TransferJob job = KIO.get(KURL("http://www.kde.org")); TransferJob job = TDEIO.get(KURL("http://www.kde.org"));
KIO.Scheduler.scheduleJob(job); TDEIO.Scheduler.scheduleJob(job);
</pre> </pre>
<h3>3. Connection Oriented</h3> <h3>3. Connection Oriented</h3>
For some operations it is important that multiple jobs use For some operations it is important that multiple jobs use
@ -44,28 +44,28 @@ import org.kde.qt.TQObject;
one after the other. one after the other.
Example: Example:
<pre> <pre>
Slave slave = KIO.Scheduler.getConnectedSlave( Slave slave = TDEIO.Scheduler.getConnectedSlave(
KURL("pop3://bastian:password@mail.kde.org")); KURL("pop3://bastian:password@mail.kde.org"));
TransferJob job1 = KIO.get( TransferJob job1 = TDEIO.get(
KURL("pop3://bastian:password@mail.kde.org/msg1")); KURL("pop3://bastian:password@mail.kde.org/msg1"));
KIO.Scheduler.assignJobToSlave(slave, job1); TDEIO.Scheduler.assignJobToSlave(slave, job1);
TransferJob job2 = KIO.get( TransferJob job2 = TDEIO.get(
KURL("pop3://bastian:password@mail.kde.org/msg2")); KURL("pop3://bastian:password@mail.kde.org/msg2"));
KIO.Scheduler.assignJobToSlave(slave, job2); TDEIO.Scheduler.assignJobToSlave(slave, job2);
TransferJob job3 = KIO.get( TransferJob job3 = TDEIO.get(
KURL("pop3://bastian:password@mail.kde.org/msg3")); KURL("pop3://bastian:password@mail.kde.org/msg3"));
KIO.Scheduler.assignJobToSlave(slave, job3); TDEIO.Scheduler.assignJobToSlave(slave, job3);
// ... Wait for jobs to finish... // ... Wait for jobs to finish...
KIO.Scheduler.disconnectSlave(slave); TDEIO.Scheduler.disconnectSlave(slave);
</pre> </pre>
Note that you need to explicitly disconnect the slave when the Note that you need to explicitly disconnect the slave when the
connection goes down, so your error handler should contain: connection goes down, so your error handler should contain:
<pre> <pre>
if (error == KIO.ERR_CONNECTION_BROKEN) if (error == TDEIO.ERR_CONNECTION_BROKEN)
KIO.Scheduler.disconnectSlave(slave); TDEIO.Scheduler.disconnectSlave(slave);
</pre> </pre>
See {@link SchedulerSignals} for signals emitted by Scheduler See {@link SchedulerSignals} for signals emitted by Scheduler
@short The KIO.Scheduler manages io-slaves for the application. @short The TDEIO.Scheduler manages io-slaves for the application.
@see Slave @see Slave
@see Job @see Job
@ -155,7 +155,7 @@ public class Scheduler extends TQObject implements DCOPObjectInterface {
the that was started. the that was started.
Register the mainwindow <code>wid</code> with the KIO subsystem Register the mainwindow <code>wid</code> with the KIO subsystem
Do not call this, it is called automatically from Do not call this, it is called automatically from
void KIO.Job.setWindow(TQWidget). void TDEIO.Job.setWindow(TQWidget).
@param wid the window to register @param wid the window to register
@short Send the slave that was put on hold back to TDELauncher. @short Send the slave that was put on hold back to TDELauncher.
*/ */

@ -6,11 +6,11 @@ import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport; import org.kde.qt.QtSupport;
/** /**
Attention developers: If you change the implementation of KIO.Slave, Attention developers: If you change the implementation of TDEIO.Slave,
do not use connection() or slaveconn but the respective KIO.Slave do not use connection() or slaveconn but the respective TDEIO.Slave
accessor methods. Otherwise classes derived from Slave might break. (LS) accessor methods. Otherwise classes derived from Slave might break. (LS)
See {@link SlaveSignals} for signals emitted by Slave See {@link SlaveSignals} for signals emitted by Slave
@short Attention developers: If you change the implementation of KIO.Slave, do not use connection() or slaveconn but the respective KIO.Slave accessor methods. @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 { public class Slave extends SlaveInterface {

@ -53,14 +53,14 @@ public class SlaveBase implements QtSupport {
/** /**
Call to signal an error. Call to signal an error.
This also finishes the job, no need to call finished. This also finishes the job, no need to call finished.
If the Error code is KIO.ERR_SLAVE_DEFINED then the If the Error code is TDEIO.ERR_SLAVE_DEFINED then the
_text should contain the complete translated text of _text should contain the complete translated text of
of the error message. This message will be displayed of the error message. This message will be displayed
in an KTextBrowser which allows rich text complete in an KTextBrowser which allows rich text complete
with hyper links. Email links will call the default with hyper links. Email links will call the default
mailer, "exec:/command arg1 arg2" will be forked and mailer, "exec:/command arg1 arg2" will be forked and
all other links will call the default browser. all other links will call the default browser.
@param _errid the error code from KIO.Error @param _errid the error code from TDEIO.Error
@param _text the rich text error message @param _text the rich text error message
@short Call to signal an error. @short Call to signal an error.
@see Error @see Error
@ -495,7 +495,7 @@ public class SlaveBase implements QtSupport {
why a previous authorization attempt failed. Here is a very why a previous authorization attempt failed. Here is a very
simple example: simple example:
<pre> <pre>
KIO.AuthInfo authInfo; TDEIO.AuthInfo authInfo;
if ( openPassDlg( authInfo ) ) if ( openPassDlg( authInfo ) )
{ {
kdDebug() << String.fromLatin1("User: ") kdDebug() << String.fromLatin1("User: ")
@ -507,7 +507,7 @@ public class SlaveBase implements QtSupport {
You can also preset some values like the username, caption or You can also preset some values like the username, caption or
comment as follows: comment as follows:
<pre> <pre>
KIO.AuthInfo authInfo; TDEIO.AuthInfo authInfo;
authInfo.caption= "Acme Password Dialog"; authInfo.caption= "Acme Password Dialog";
authInfo.username= "Wile E. Coyote"; authInfo.username= "Wile E. Coyote";
String errorMsg = "You entered an incorrect password."; String errorMsg = "You entered an incorrect password.";

@ -9,11 +9,11 @@ import org.kde.qt.TQObject;
/** /**
There are two classes that specifies the protocol between application There are two classes that specifies the protocol between application
(KIO.Job) and tdeioslave. SlaveInterface is the class to use on the application (TDEIO.Job) and tdeioslave. SlaveInterface is the class to use on the application
end, SlaveBase is the one to use on the slave end. end, SlaveBase is the one to use on the slave end.
A call to foo() results in a call to slotFoo() on the other end. A call to foo() results in a call to slotFoo() on the other end.
See {@link SlaveInterfaceSignals} for signals emitted by SlaveInterface See {@link SlaveInterfaceSignals} for signals emitted by SlaveInterface
@short There are two classes that specifies the protocol between application (KIO.Job) and tdeioslave. @short There are two classes that specifies the protocol between application (TDEIO.Job) and tdeioslave.
*/ */
public class SlaveInterface extends TQObject { public class SlaveInterface extends TQObject {

@ -18,12 +18,12 @@ public class StatJob extends SimpleJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not use this constructor to create a StatJob, use KIO.stat() instead. Do not use this constructor to create a StatJob, use TDEIO.stat() instead.
@param url the url of the file or directory to check @param url the url of the file or directory to check
@param command the command to issue @param command the command to issue
@param packedArgs the arguments @param packedArgs the arguments
@param showProgressInfo true to show progress information to the user @param showProgressInfo true to show progress information to the user
@short Do not use this constructor to create a StatJob, use KIO.stat() instead. @short Do not use this constructor to create a StatJob, use TDEIO.stat() instead.
*/ */
public StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) { public StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
super((Class) null); super((Class) null);

@ -24,7 +24,7 @@ import org.kde.qt.TQWidget;
statusBar().insertWidget( statusProgress, statusProgress.width() , 0 ); statusBar().insertWidget( statusProgress, statusProgress.width() , 0 );
... ...
// create job and connect it to the progress // create job and connect it to the progress
CopyJob job = KIO.copy(...); CopyJob job = TDEIO.copy(...);
statusProgress.setJob( job ); statusProgress.setJob( job );
... ...
</pre> </pre>

@ -10,13 +10,13 @@ import org.kde.qt.QtSupport;
StoredTransferJob is a TransferJob (for downloading or uploading data) that StoredTransferJob is a TransferJob (for downloading or uploading data) that
also stores a byte[] with the data, making it simpler to use than the also stores a byte[] with the data, making it simpler to use than the
standard TransferJob. standard TransferJob.
For KIO.storedGet it puts the data into the member byte[], so the user For TDEIO.storedGet it puts the data into the member byte[], so the user
of this class can get hold of the whole data at once by calling data() of this class can get hold of the whole data at once by calling data()
when the result signal is emitted. when the result signal is emitted.
You should only use StoredTransferJob to download data if you cannot You should only use StoredTransferJob to download data if you cannot
process the data by chunks while it's being downloaded, since storing process the data by chunks while it's being downloaded, since storing
everything in a byte[] can potentially require a lot of memory. everything in a byte[] can potentially require a lot of memory.
For KIO.storedPut the user of this class simply provides the bytearray from For TDEIO.storedPut the user of this class simply provides the bytearray from
the start, and the job takes care of uploading it. the start, and the job takes care of uploading it.
You should only use StoredTransferJob to upload data if you cannot You should only use StoredTransferJob to upload data if you cannot
provide the in chunks while it's being uploaded, since storing provide the in chunks while it's being uploaded, since storing
@ -45,7 +45,7 @@ public class StoredTransferJob extends TransferJob {
private native void newStoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo); private native void newStoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo);
/** /**
Set data to be uploaded. This is for put jobs. Set data to be uploaded. This is for put jobs.
Automatically called by KIO.storedPut(const byte[] &, ...), Automatically called by TDEIO.storedPut(const byte[] &, ...),
do not call this yourself. do not call this yourself.
@short Set data to be uploaded. @short Set data to be uploaded.
*/ */

@ -184,7 +184,7 @@ public class TDEGlobalSettings implements QtSupport {
/** /**
DEPRECATED (starting from kde-3.4). DEPRECATED (starting from kde-3.4).
This isn't where the trash contents is, anymore. This isn't where the trash contents is, anymore.
Use KIO.trash() to trash files, "trash:/" to list the trash contents. Use TDEIO.trash() to trash files, "trash:/" to list the trash contents.
@short DEPRECATED (starting from kde-3. @short DEPRECATED (starting from kde-3.
*/ */
public static native String trashPath(); public static native String trashPath();

@ -923,7 +923,7 @@ public class TDEHTMLPart extends ReadOnlyPart {
protected native KURL completeURL(String url); protected native KURL completeURL(String url);
/** /**
presents a detailed error message to the user. presents a detailed error message to the user.
<code>errorCode</code> tdeio error code, eg KIO.ERR_SERVER_TIMEOUT. <code>errorCode</code> tdeio error code, eg TDEIO.ERR_SERVER_TIMEOUT.
<code>text</code> tdeio additional information text. <code>text</code> tdeio additional information text.
<code>url</code> the url that triggered the error. <code>url</code> the url that triggered the error.
@short presents a detailed error message to the user. @short presents a detailed error message to the user.

@ -75,8 +75,8 @@ public class KIO {
public static final int CMD_MULTI_GET = 'V'; public static final int CMD_MULTI_GET = 'V';
/** /**
Error codes that can be emitted by KIO. Error codes that can be emitted by TDEIO.
@short Error codes that can be emitted by KIO. @short Error codes that can be emitted by TDEIO.
*/ */
public static final int ERR_CANNOT_OPEN_FOR_READING = 1; public static final int ERR_CANNOT_OPEN_FOR_READING = 1;
public static final int ERR_CANNOT_OPEN_FOR_WRITING = 2; public static final int ERR_CANNOT_OPEN_FOR_WRITING = 2;
@ -347,11 +347,11 @@ public class KIO {
/** /**
Encodes (from the text displayed to the real filename) Encodes (from the text displayed to the real filename)
This translates % into %% and / into %2f This translates % into %% and / into %2f
Used by KIO.link, for instance. Used by TDEIO.link, for instance.
@param str the file name to encode @param str the file name to encode
@return the encoded file name @return the encoded file name
@short Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by KIO.link, for instance. @short Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by TDEIO.link, for instance.
*/ */
public static native String encodeFileName(String str); public static native String encodeFileName(String str);
/** /**
@ -632,7 +632,7 @@ public class KIO {
Create or move a symlink. Create or move a symlink.
This is the lowlevel operation, similar to file_copy and file_move. This is the lowlevel operation, similar to file_copy and file_move.
It doesn't do any check (other than those the slave does) It doesn't do any check (other than those the slave does)
and it doesn't show rename and skip dialogs - use KIO.link for that. and it doesn't show rename and skip dialogs - use TDEIO.link for that.
@param target The string that will become the "target" of the link (can be relative) @param target The string that will become the "target" of the link (can be relative)
@param dest The symlink to create. @param dest The symlink to create.
@param overwrite whether to automatically overwrite if the dest exists @param overwrite whether to automatically overwrite if the dest exists
@ -770,7 +770,7 @@ public class KIO {
HTTP POST (for form data). HTTP POST (for form data).
Example: Example:
<pre> <pre>
job = KIO.http_post( url, postData, false ); job = TDEIO.http_post( url, postData, false );
job.addMetaData("content-type", contentType ); job.addMetaData("content-type", contentType );
job.addMetaData("referrer", referrerURL); job.addMetaData("referrer", referrerURL);
</pre> </pre>

@ -20,7 +20,7 @@ public class TransferJob extends SimpleJob {
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Do not create a TransferJob. Use KIO.get() or KIO.put() Do not create a TransferJob. Use TDEIO.get() or TDEIO.put()
instead. instead.
@param url the url to get or put @param url the url to get or put
@param command the command to issue @param command the command to issue

@ -303,56 +303,56 @@ void startJob() {
switch ( selectedOperation ) { switch ( selectedOperation ) {
case List: case List:
myJob = KIO.listDir( src ); myJob = TDEIO.listDir( src );
// connect(myJob, SIGNAL(" entries( Job, const KIO.UDSEntryList&)"), // connect(myJob, SIGNAL(" entries( Job, const TDEIO.UDSEntryList&)"),
// SLOT(" slotEntries( KIO.Job, const KIO.UDSEntryList&)")); // SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break; break;
case ListRecursive: case ListRecursive:
myJob = KIO.listRecursive( src ); myJob = TDEIO.listRecursive( src );
// connect(myJob, SIGNAL(" entries( KIO.Job, const KIO.UDSEntryList&)"), // connect(myJob, SIGNAL(" entries( TDEIO.Job, const TDEIO.UDSEntryList&)"),
// SLOT(" slotEntries( KIO.Job, const KIO.UDSEntryList&)")); // SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break; break;
case Stat: case Stat:
myJob = KIO.stat( src ); myJob = TDEIO.stat( src );
break; break;
case Get: case Get:
myJob = KIO.get( src, true ); myJob = TDEIO.get( src, true );
connect(myJob, SIGNAL("data( Job, byte[])"), connect(myJob, SIGNAL("data( Job, byte[])"),
SLOT("slotData( Job, byte[])")); SLOT("slotData( Job, byte[])"));
break; break;
case Put: case Put:
putBuffer = 0; putBuffer = 0;
myJob = KIO.put( src, -1, true, false); myJob = TDEIO.put( src, -1, true, false);
connect(myJob, SIGNAL("dataReq( Job, ByteArrayOutputStream)"), connect(myJob, SIGNAL("dataReq( Job, ByteArrayOutputStream)"),
SLOT("slotDataReq( Job, ByteArrayOutputStream)")); SLOT("slotDataReq( Job, ByteArrayOutputStream)"));
break; break;
case Copy: case Copy:
job = KIO.copy( src, dest, observe ); job = TDEIO.copy( src, dest, observe );
break; break;
case Move: case Move:
job = KIO.move( src, dest, observe ); job = TDEIO.move( src, dest, observe );
break; break;
case Delete: case Delete:
job = KIO.del( src, false, observe ); job = TDEIO.del( src, false, observe );
break; break;
case Shred: case Shred:
job = KIO.del(src, true, observe); job = TDEIO.del(src, true, observe);
break; break;
case Mkdir: case Mkdir:
myJob = KIO.mkdir( src ); myJob = TDEIO.mkdir( src );
break; break;
case Mimetype: case Mimetype:
myJob = KIO.mimetype( src ); myJob = TDEIO.mimetype( src );
break; break;
} }
if (myJob != null) if (myJob != null)
@ -384,7 +384,7 @@ void slotResult(Job _job )
} }
else if ( selectedOperation == Stat ) else if ( selectedOperation == Stat )
{ {
// UDSEntry entry = ((KIO.StatJob)_job).statResult(); // UDSEntry entry = ((TDEIO.StatJob)_job).statResult();
// printUDSEntry( entry ); // printUDSEntry( entry );
} }
else if ( selectedOperation == Mimetype ) else if ( selectedOperation == Mimetype )
@ -412,36 +412,36 @@ void slotSlaveError()
/* /*
void UDSEntry & entry ) void UDSEntry & entry )
{ {
KIO.UDSEntry.ConstIterator it = entry.begin(); TDEIO.UDSEntry.ConstIterator it = entry.begin();
for( ; it != entry.end(); it++ ) { for( ; it != entry.end(); it++ ) {
switch ((it).m_uds) { switch ((it).m_uds) {
case KIO.UDS_FILE_TYPE: case TDEIO.UDS_FILE_TYPE:
kdDebug() << "File Type : " << (mode_t)((it).m_long) << endl; kdDebug() << "File Type : " << (mode_t)((it).m_long) << endl;
if ( S_ISDIR( (mode_t)((it).m_long) ) ) if ( S_ISDIR( (mode_t)((it).m_long) ) )
{ {
kdDebug() << "is a dir" << endl; kdDebug() << "is a dir" << endl;
} }
break; break;
case KIO.UDS_ACCESS: case TDEIO.UDS_ACCESS:
kdDebug() << "Access permissions : " << (mode_t)((it).m_long) << endl; kdDebug() << "Access permissions : " << (mode_t)((it).m_long) << endl;
break; break;
case KIO.UDS_USER: case TDEIO.UDS_USER:
kdDebug() << "User : " << ((it).m_str.ascii() ) << endl; kdDebug() << "User : " << ((it).m_str.ascii() ) << endl;
break; break;
case KIO.UDS_GROUP: case TDEIO.UDS_GROUP:
kdDebug() << "Group : " << ((it).m_str.ascii() ) << endl; kdDebug() << "Group : " << ((it).m_str.ascii() ) << endl;
break; break;
case KIO.UDS_NAME: case TDEIO.UDS_NAME:
kdDebug() << "Name : " << ((it).m_str.ascii() ) << endl; kdDebug() << "Name : " << ((it).m_str.ascii() ) << endl;
//m_strText = decodeFileName( (it).m_str ); //m_strText = decodeFileName( (it).m_str );
break; break;
case KIO.UDS_URL: case TDEIO.UDS_URL:
kdDebug() << "URL : " << ((it).m_str.ascii() ) << endl; kdDebug() << "URL : " << ((it).m_str.ascii() ) << endl;
break; break;
case KIO.UDS_MIME_TYPE: case TDEIO.UDS_MIME_TYPE:
kdDebug() << "MimeType : " << ((it).m_str.ascii() ) << endl; kdDebug() << "MimeType : " << ((it).m_str.ascii() ) << endl;
break; break;
case KIO.UDS_LINK_DEST: case TDEIO.UDS_LINK_DEST:
kdDebug() << "LinkDest : " << ((it).m_str.ascii() ) << endl; kdDebug() << "LinkDest : " << ((it).m_str.ascii() ) << endl;
break; break;
} }

@ -515,7 +515,7 @@
2005-01-20 Richard Dale <Richard_Dale@tipitina.demon.co.uk> 2005-01-20 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Fixed bug reported by Ian Monroe where the KIO.copy() method wasn't being found in * Fixed bug reported by Ian Monroe where the TDEIO.copy() method wasn't being found in
the Smoke runtime. Modules methods are now trapped with method_missing and the Smoke runtime. Modules methods are now trapped with method_missing and
despatched to call Smoke methods correctly despatched to call Smoke methods correctly
* Added support for the KDE::ConfigSkeleton and subclasses. Constructors for nested * Added support for the KDE::ConfigSkeleton and subclasses. Constructors for nested

Loading…
Cancel
Save