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
24#ifndef __com_sun_star_ucb_XInteractionCookieHandling_idl__
25#define __com_sun_star_ucb_XInteractionCookieHandling_idl__
26
27#ifndef __com_sun_star_task_XInteractionContinuation_idl__
28#include <com/sun/star/task/XInteractionContinuation.idl>
29#endif
30
31#ifndef __com_sun_star_ucb_CookiePolicy_idl__
32#include <com/sun/star/ucb/CookiePolicy.idl>
33#endif
34
35#ifndef __com_sun_star_ucb_Cookie_idl__
36#include <com/sun/star/ucb/Cookie.idl>
37#endif
38
39
40//=============================================================================
41
42module com { module sun { module star { module ucb {
43
44//=============================================================================
45/** An interaction continuation handing back some cookie request handling
46	policy.
47
48	<p>This continuation is typically used in conjunction with
49	<type>HandleCookiesRequest</type>.
50*/
51published interface XInteractionCookieHandling: com::sun::star::task::XInteractionContinuation
52{
53	//-------------------------------------------------------------------------
54	/** Set a general policy to hand back.
55
56		<p>This method should be called before select().
57
58		@param Policy
59			Some policy how to handle cookies.
60	*/
61	void setGeneralPolicy( [in] com::sun::star::ucb::CookiePolicy Policy );
62
63	//-------------------------------------------------------------------------
64	/** Set a policy to hand back for a specific cookie.
65
66		<p>This method should be called before select().
67
68		@param ConfirmCookie
69			A cookie that should come from the sequence of
70			cookies offered by the <type>HandleCookiesRequest</type> and that
71			should have a policy of <member>CookiePolicy::CONFIRM</member>.
72
73		@param Accept
74			If <TRUE/>, set the policy for the cookie to
75			<member>CookiePolicy::ACCEPT</member>; otherwise, set it to
76			<member>CookiePolicy::IGNORE</member>.
77	*/
78	void setSpecificPolicy( [in] com::sun::star::ucb::Cookie ConfirmCookie,
79			 [in] boolean Accept );
80
81};
82
83//=============================================================================
84
85}; }; }; };
86
87#endif
88