LibreOffice Module ucbhelper (master)  1
proxydecider.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_UCBHELPER_PROXYDECIDER_HXX
21 #define INCLUDED_UCBHELPER_PROXYDECIDER_HXX
22 
23 #include <rtl/ustring.hxx>
24 #include <rtl/ref.hxx>
26 
27 namespace com::sun::star::uno { class XComponentContext; }
28 namespace com::sun::star::uno { template <class interface_type> class Reference; }
29 
30 namespace ucbhelper
31 {
32 
37 {
41  OUString aName;
42 
46  sal_Int32 nPort;
47 
51  InternetProxyServer() : nPort( -1 ) {}
52 };
53 
54 namespace proxydecider_impl { class InternetProxyDecider_Impl; }
55 
67 {
68 public:
77  InternetProxyDecider( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
78 
83 
100  bool
101  shouldUseProxy( const OUString & rProtocol,
102  const OUString & rHost,
103  sal_Int32 nPort ) const;
104 
123  getProxy( const OUString & rProtocol,
124  const OUString & rHost,
125  sal_Int32 nPort ) const;
126 
127 private:
129 };
130 
131 } // namespace ucbhelper
132 
133 #endif /* ! INCLUDED_UCBHELPER_PROXYDECIDER_HXX */
134 
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 nPort
The port of the proxy server.
Reference
This struct describes a proxy server.
OUString aName
The name of the proxy server.
This class is able to decide whether and which internet proxy server is to be used to access a given ...
#define UCBHELPER_DLLPUBLIC
rtl::Reference< proxydecider_impl::InternetProxyDecider_Impl > m_xImpl