Qt 4.8
|
#include "qnetworkproxy.h"
#include <qmutex.h>
#include <qstringlist.h>
#include <qregexp.h>
#include <qurl.h>
#include <qnetworkinterface.h>
#include <string.h>
#include <qt_windows.h>
#include <wininet.h>
#include <private/qsystemlibrary_p.h>
#include "qnetworkfunctions_wince.h"
Go to the source code of this file.
Classes | |
class | QWindowsSystemProxy |
struct | WINHTTP_AUTOPROXY_OPTIONS |
struct | WINHTTP_CURRENT_USER_IE_PROXY_CONFIG |
struct | WINHTTP_PROXY_INFO |
Macros | |
#define | ERROR_WINHTTP_AUTODETECTION_FAILED (WINHTTP_ERROR_BASE + 180) |
#define | ERROR_WINHTTP_LOGIN_FAILURE (WINHTTP_ERROR_BASE + 15) |
#define | ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT (WINHTTP_ERROR_BASE + 167) |
#define | WINHTTP_ACCESS_TYPE_DEFAULT_PROXY 0 |
#define | WINHTTP_ACCESS_TYPE_NAMED_PROXY 3 |
#define | WINHTTP_ACCESS_TYPE_NO_PROXY 1 |
#define | WINHTTP_AUTO_DETECT_TYPE_DHCP 0x00000001 |
#define | WINHTTP_AUTO_DETECT_TYPE_DNS_A 0x00000002 |
#define | WINHTTP_AUTOPROXY_AUTO_DETECT 0x00000001 |
#define | WINHTTP_AUTOPROXY_CONFIG_URL 0x00000002 |
#define | WINHTTP_ERROR_BASE 12000 |
#define | WINHTTP_NO_PROXY_BYPASS NULL |
#define | WINHTTP_NO_PROXY_NAME NULL |
Typedefs | |
typedef BOOL(WINAPI * | PtrCloseServiceHandle) (SC_HANDLE hSCObject) |
typedef BOOL(WINAPI * | PtrEnumServicesStatusEx) (SC_HANDLE hSCManager, SC_ENUM_TYPE InfoLevel, DWORD dwServiceType, DWORD dwServiceState, LPBYTE lpServices, DWORD cbBufSize, LPDWORD pcbBytesNeeded, LPDWORD lpServicesReturned, LPDWORD lpResumeHandle, LPCWSTR pszGroupName) |
typedef SC_HANDLE(WINAPI * | PtrOpenSCManager) (LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess) |
typedef BOOL(WINAPI * | PtrWinHttpCloseHandle) (HINTERNET) |
typedef BOOL(WINAPI * | PtrWinHttpGetDefaultProxyConfiguration) (WINHTTP_PROXY_INFO *) |
typedef BOOL(WINAPI * | PtrWinHttpGetIEProxyConfigForCurrentUser) (WINHTTP_CURRENT_USER_IE_PROXY_CONFIG *) |
typedef BOOL(WINAPI * | PtrWinHttpGetProxyForUrl) (HINTERNET, LPCWSTR, WINHTTP_AUTOPROXY_OPTIONS *, WINHTTP_PROXY_INFO *) |
typedef HINTERNET(WINAPI * | PtrWinHttpOpen) (LPCWSTR, DWORD, LPCWSTR, LPCWSTR, DWORD) |
Functions | |
static bool | currentProcessIsService () |
static QList< QNetworkProxy > | filterProxyListByCapabilities (const QList< QNetworkProxy > &proxyList, const QNetworkProxyQuery &query) |
static bool | isBypassed (const QString &host, const QStringList &bypassList) |
static QList< QNetworkProxy > | parseServerList (const QNetworkProxyQuery &query, const QStringList &proxyList) |
static QList< QNetworkProxy > | removeDuplicateProxies (const QList< QNetworkProxy > &proxyList) |
static QStringList | splitSpaceSemicolon (const QString &source) |
Variables | |
static PtrCloseServiceHandle | ptrCloseServiceHandle = 0 |
static PtrEnumServicesStatusEx | ptrEnumServicesStatusEx = 0 |
static PtrOpenSCManager | ptrOpenSCManager = 0 |
static PtrWinHttpCloseHandle | ptrWinHttpCloseHandle = 0 |
static PtrWinHttpGetDefaultProxyConfiguration | ptrWinHttpGetDefaultProxyConfiguration = 0 |
static PtrWinHttpGetIEProxyConfigForCurrentUser | ptrWinHttpGetIEProxyConfigForCurrentUser = 0 |
static PtrWinHttpGetProxyForUrl | ptrWinHttpGetProxyForUrl = 0 |
static PtrWinHttpOpen | ptrWinHttpOpen = 0 |
#define ERROR_WINHTTP_AUTODETECTION_FAILED (WINHTTP_ERROR_BASE + 180) |
Definition at line 109 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define ERROR_WINHTTP_LOGIN_FAILURE (WINHTTP_ERROR_BASE + 15) |
Definition at line 107 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT (WINHTTP_ERROR_BASE + 167) |
Definition at line 108 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_ACCESS_TYPE_DEFAULT_PROXY 0 |
Definition at line 99 of file qnetworkproxy_win.cpp.
#define WINHTTP_ACCESS_TYPE_NAMED_PROXY 3 |
Definition at line 101 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_ACCESS_TYPE_NO_PROXY 1 |
Definition at line 100 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_AUTO_DETECT_TYPE_DHCP 0x00000001 |
Definition at line 96 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_AUTO_DETECT_TYPE_DNS_A 0x00000002 |
Definition at line 97 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_AUTOPROXY_AUTO_DETECT 0x00000001 |
Definition at line 93 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_AUTOPROXY_CONFIG_URL 0x00000002 |
Definition at line 94 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_ERROR_BASE 12000 |
Definition at line 106 of file qnetworkproxy_win.cpp.
#define WINHTTP_NO_PROXY_BYPASS NULL |
Definition at line 104 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
#define WINHTTP_NO_PROXY_NAME NULL |
Definition at line 103 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
typedef BOOL(WINAPI * PtrCloseServiceHandle) (SC_HANDLE hSCObject) |
Definition at line 121 of file qnetworkproxy_win.cpp.
typedef BOOL(WINAPI * PtrEnumServicesStatusEx) (SC_HANDLE hSCManager, SC_ENUM_TYPE InfoLevel, DWORD dwServiceType, DWORD dwServiceState, LPBYTE lpServices, DWORD cbBufSize, LPDWORD pcbBytesNeeded, LPDWORD lpServicesReturned, LPDWORD lpResumeHandle, LPCWSTR pszGroupName) |
Definition at line 119 of file qnetworkproxy_win.cpp.
typedef SC_HANDLE(WINAPI * PtrOpenSCManager) (LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess) |
Definition at line 118 of file qnetworkproxy_win.cpp.
typedef BOOL(WINAPI * PtrWinHttpCloseHandle) (HINTERNET) |
Definition at line 117 of file qnetworkproxy_win.cpp.
typedef BOOL(WINAPI * PtrWinHttpGetDefaultProxyConfiguration) (WINHTTP_PROXY_INFO *) |
Definition at line 115 of file qnetworkproxy_win.cpp.
typedef BOOL(WINAPI * PtrWinHttpGetIEProxyConfigForCurrentUser) (WINHTTP_CURRENT_USER_IE_PROXY_CONFIG *) |
Definition at line 116 of file qnetworkproxy_win.cpp.
typedef BOOL(WINAPI * PtrWinHttpGetProxyForUrl) (HINTERNET, LPCWSTR, WINHTTP_AUTOPROXY_OPTIONS *, WINHTTP_PROXY_INFO *) |
Definition at line 113 of file qnetworkproxy_win.cpp.
typedef HINTERNET(WINAPI * PtrWinHttpOpen) (LPCWSTR, DWORD, LPCWSTR, LPCWSTR, DWORD) |
Definition at line 114 of file qnetworkproxy_win.cpp.
|
static |
Definition at line 132 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 229 of file qnetworkproxy_win.cpp.
Referenced by parseServerList().
|
static |
Definition at line 185 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 274 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 254 of file qnetworkproxy_win.cpp.
Referenced by parseServerList().
|
static |
Definition at line 161 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 129 of file qnetworkproxy_win.cpp.
Referenced by currentProcessIsService(), and QWindowsSystemProxy::init().
|
static |
Definition at line 128 of file qnetworkproxy_win.cpp.
Referenced by currentProcessIsService(), and QWindowsSystemProxy::init().
|
static |
Definition at line 127 of file qnetworkproxy_win.cpp.
Referenced by currentProcessIsService(), and QWindowsSystemProxy::init().
|
static |
Definition at line 126 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init(), and QWindowsSystemProxy::~QWindowsSystemProxy().
|
static |
Definition at line 124 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 125 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 122 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().
|
static |
Definition at line 123 of file qnetworkproxy_win.cpp.
Referenced by QWindowsSystemProxy::init().