|
|
Information about I/O (Internet, etc.) settings.
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 not in the config file of the application.
int |
[static]
bool |
[static]
int |
[static]
bool |
[static]
bool |
[static]
bool |
[static]
QString |
[static]
QString |
[static]
QString |
[static]
QString |
[static]
bool |
[static]
int |
[static]
int |
[static]
void |
[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 |
[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:
_mode | Default value is false: Don't add the extension .PART.
|
void |
[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 |
[static]
Set this flag if you want slaves to automatically resume downloading files without asking the user in the "rename" dialog.
Parameters:
_mode | Default value is false: Don't resume automatically.
|
void |
[static]
Set this flag if you want slaves to have persistent connections (FTP).
Parameters:
_mode | Default value is true: Keep persistent connections. |
void |
[static]
void |
[static]
void |
[static]
void |
[static]
Set this flag if you want use proxies.
Parameters:
Default | value is false: Don't use proxies. |
void |
[static]
Set the proxy for FTP transfer.
This method has been deprecated, please use setProxyFor.
void |
[static]
Set the proxy for HTTP transfer
This method has been deprecated, please use setProxyFor.
void |
[static]
void |
[static]
Set the URLs for which we should not use the proxy.
void |
[static]
QString |
[static]
Returns the userAgent string configured for the specified host.
If hostname is not found or is empty (i.e. "" or QString::null) this function will return the default agent string as defined above in DEFAULT_USERAGENT_STRING.
Parameters:
hostname | name of the host |
Returns: specified userAgent string
void |
[static]
Sets the list of userAgent.
Sets the user agent name to be sent when connecting to different sites. The default user agent string is defined above by DEFAULT_USERAGENT_STRING.
Parameters:
list | the list of user agent strings to use. |
QStringList |
[static]
Returns the list of user agents.
Returns: the list of user agent strings.