-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathHttpProxyHelper.h
More file actions
37 lines (34 loc) · 1.87 KB
/
HttpProxyHelper.h
File metadata and controls
37 lines (34 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**************************************************************************************
* Project: MapWindow Open Source (MapWinGis ActiveX control)
**************************************************************************************
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at http://www.mozilla.org/mpl/
* See the License for the specific language governing rights and limitations
* under the License.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
**************************************************************************************
* Contributor(s):
* (Open source contributors should list themselves and their modifications here). */
#pragma once
// https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4839?view=vs-2017
// the error/warning is actually in Microsoft ATL code, and I could not find an answer, so I am allowing
// it as a Warning only, and we'll have to see if there are any side-affects or bad behavior.
#pragma warning(disable: 4839) // non-standard use of class 'type' as an argument to a variadic function
class HttpProxyHelper
{
public:
static CString m_proxyAddress;
static short m_proxyPort;
public:
static bool AutodetectProxy();
static CString GetProxyServer();
static bool SetProxy(CString address, int port);
};