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_XSimpleFileAccess3_idl__
25#define __com_sun_star_ucb_XSimpleFileAccess3_idl__
26
27#ifndef __com_sun_star_ucb_XSimpleFileAccess2_idl__
28#include <com/sun/star/ucb/XSimpleFileAccess2.idl>
29#endif
30
31#ifndef __com_sun_star_io_XInputStream_idl__
32#include <com/sun/star/io/XInputStream.idl>
33#endif
34
35#ifndef __com_sun_star_uno_Exception_idl__
36#include <com/sun/star/uno/Exception.idl>
37#endif
38
39//=============================================================================
40
41module com { module sun { module star { module ucb {
42
43//=============================================================================
44/** This is an extension to the interface <type>XSimpleFileAccess2</type>.
45
46	@since OpenOffice 1.1.2
47*/
48published interface XSimpleFileAccess3 : com::sun::star::ucb::XSimpleFileAccess2
49{
50	//-------------------------------------------------------------------------
51	/** Checks if a file is "hidden"
52
53		@param FileURL
54		URL to be checked
55
56		@return
57		true, if the given File is "hidden", false otherwise
58	*/
59	boolean isHidden( [in] string FileURL )
60		raises( com::sun::star::ucb::CommandAbortedException, com::sun::star::uno::Exception );
61
62	//-------------------------------------------------------------------------
63	/** Sets the "hidden" of a file according to the boolean parameter,
64		if the actual process has the right to do so and the used
65		operation system supports this operation.
66
67		@param bHidden
68		true; "hidden" flag will be set, false; "hidden" flag will be reset
69	*/
70	void setHidden( [in] string FileURL, [in] boolean bHidden )
71		raises( com::sun::star::ucb::CommandAbortedException, com::sun::star::uno::Exception );
72
73};
74
75//=============================================================================
76
77}; }; }; };
78
79#endif
80