1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _DAVREQUESTENVIRONMENT_HXX_
24 #define _DAVREQUESTENVIRONMENT_HXX_
25 
26 #include <vector>
27 #include <rtl/ref.hxx>
28 #include <DAVAuthListener.hxx>
29 
30 namespace http_dav_ucp
31 {
32     typedef std::pair< rtl::OUString, rtl::OUString > DAVRequestHeader;
33     typedef std::vector< DAVRequestHeader > DAVRequestHeaders;
34 
35 struct DAVRequestEnvironment
36 {
37     rtl::OUString m_aRequestURI;
38     rtl::Reference< DAVAuthListener >     m_xAuthListener;
39 //    rtl::Reference< DAVStatusListener >   m_xStatusListener;
40 //    rtl::Reference< DAVProgressListener > m_xStatusListener;
41     DAVRequestHeaders                     m_aRequestHeaders;
42     com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv;
43 
44 DAVRequestEnvironment( const rtl::OUString & rRequestURI,
45                        const rtl::Reference< DAVAuthListener > & xListener,
46                        const DAVRequestHeaders & rRequestHeaders,
47                        const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv)
48     : m_aRequestURI( rRequestURI ),
49       m_xAuthListener( xListener ),
50       m_aRequestHeaders( rRequestHeaders ),
51       m_xEnv( xEnv ){}
52 
53     DAVRequestEnvironment() {}
54 };
55 
56 } // namespace http_dav_ucp
57 
58 #endif // _DAVREQUESTENVIRONMENT_HXX_
59