class KProtocolManager

Information about I/O (Internet, etc. More...

Definition#include <kprotocolmanager.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Protected Methods


Detailed Description

Information about I/O (Internet, etc.) protocols supported by KDE.

This class is useful if you want to know which protocols KDE supports. In addition you can find out lots of information about a certain protocol. KProtocolManager scans the *.desktop files of all installed kioslaves to get this information.

In addition, KProtocolManager has a heap of static functions that allow you to read and write IO related KDE settings. These include proxies, resuming, timeouts.

However, please note that these settings apply to all applications. This means that the proxy, timeouts etc. are saved in the users config file and @bf not in the config file of the application.

void setReadTimeout ( int _time )
[static]

Sets timeout for read operations. This applies to FTP and HTTP connections. If after a time timeout, the read operation doesn't finish reading a packet, the read operation is stopped with alarm command and the operation is restarted. This value is used if the remote server supports resuming. For the opposite case see setReadTimeoutNoResume()

void setMarkPartial ( bool _mode )
[static]

Set this flag if you want slaves to add the extension .PART to all files during transfer. This extension will be removed when file is fully transferred.

This is a better way to discern finished transfers in case of transfer errors.

Parameters:
_modeDefault value is false: Don't add the extension .PART.

void setMinimumKeepSize ( int _size )
[static]

Set the minimum size for keeping an interrupted transfer.

A downloaded file whose transfer was interrupted will only be kept if its size is bigger than @ _size, otherwise it will be deleted.

Default value is 5000 bytes

void setAutoResume ( bool _mode )
[static]

Set this flag if you want slaves to automatically resume downloading files without asking the user in the "rename" dialog.

Parameters:
_modeDefault value is false: Don't resume automatically.

void setPersistentConnections ( bool _mode )
[static]

Set this flag if you want slaves to have persistent connections (FTP).

Parameters:
_modeDefault value is true: Keep persistent connections.

void setRemoteFileProtocol ( const QString &remoteFileProtocol )
[static]

Set a protocol which should be used for remote file URLs.

Default value is empty: Pass hostname as part of path.

Example: With setRemoteFileProtocol("smb"), the URL "file://atlas/dfaure" will be converted to "smb://atlas/dfaure"

File URLs without a hostname are not affected.

void setUseProxy ( bool _mode )
[static]

Set this flag if you want use proxies.

Parameters:
Defaultvalue is false: Don't use proxies.

void setFtpProxy ( const QString& _proxy )
[static]

Set the proxy for FTP transfer.

void setHttpProxy ( const QString& _proxy )
[static]

Set the proxy for HTTP transfer

void setNoProxyFor ( const QString& _noproxy )
[static]

Set the URLs for which we should not use the proxy.