File indexing completed on 2024-05-05 04:59:33
0001 /* 0002 SPDX-FileCopyrightText: 2001 Dawit Alemayehu <adawit@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KSAVEIO_CONFIG_H_ 0008 #define KSAVEIO_CONFIG_H_ 0009 0010 #include <QString> 0011 0012 class QWidget; 0013 0014 namespace KSaveIOConfig 0015 { 0016 0017 /* 0018 * Types of proxy configuration 0019 * @li NoProxy - No proxy is used 0020 * @li ManualProxy - Proxies are manually configured 0021 * @li PACProxy - A Proxy configuration URL has been given 0022 * @li WPADProxy - A proxy should be automatically discovered 0023 * @li EnvVarProxy - Use the proxy values set through environment variables. 0024 */ 0025 enum ProxyType { 0026 NoProxy, 0027 ManualProxy, 0028 PACProxy, 0029 WPADProxy, 0030 EnvVarProxy, 0031 }; 0032 0033 int proxyDisplayUrlFlags(); 0034 void setProxyDisplayUrlFlags(int); 0035 0036 /** Timeout Settings */ 0037 void setReadTimeout(int); 0038 0039 void setConnectTimeout(int); 0040 0041 void setProxyConnectTimeout(int); 0042 0043 void setResponseTimeout(int); 0044 0045 /** Proxy Settings */ 0046 void setUseReverseProxy(bool); 0047 0048 void setProxyType(KSaveIOConfig::ProxyType); 0049 0050 void setProxyConfigScript(const QString &); 0051 0052 void setProxyFor(const QString &, const QString &); 0053 0054 QString noProxyFor(); 0055 void setNoProxyFor(const QString &); 0056 0057 /** Miscellaneous Settings */ 0058 void setMarkPartial(bool); 0059 0060 void setMinimumKeepSize(int); 0061 0062 void setAutoResume(bool); 0063 0064 /** Update all running KIO workers */ 0065 void updateRunningWorkers(QWidget *parent = nullptr); 0066 } 0067 0068 #endif