xref: /aoo42x/main/sal/osl/unx/file_impl.hxx (revision 565d668c)
1*565d668cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*565d668cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*565d668cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*565d668cSAndrew Rist  * distributed with this work for additional information
6*565d668cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*565d668cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*565d668cSAndrew Rist  * "License"); you may not use this file except in compliance
9*565d668cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*565d668cSAndrew Rist  *
11*565d668cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*565d668cSAndrew Rist  *
13*565d668cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*565d668cSAndrew Rist  * software distributed under the License is distributed on an
15*565d668cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*565d668cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*565d668cSAndrew Rist  * specific language governing permissions and limitations
18*565d668cSAndrew Rist  * under the License.
19*565d668cSAndrew Rist  *
20*565d668cSAndrew Rist  *************************************************************/
21*565d668cSAndrew Rist 
22*565d668cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_FILE_IMPL_HXX
25cdf0e10cSrcweir #define INCLUDED_FILE_IMPL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "osl/file.h"
28cdf0e10cSrcweir #include <stddef.h>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir struct DirectoryItem_Impl
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 	sal_Int32     m_RefCount;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 	rtl_uString * m_ustrFilePath;       /* holds native file name */
35cdf0e10cSrcweir 	unsigned char m_DType;
36cdf0e10cSrcweir 
37cdf0e10cSrcweir 	explicit DirectoryItem_Impl(
38cdf0e10cSrcweir 		rtl_uString * ustrFilePath, unsigned char DType = 0);
39cdf0e10cSrcweir 	~DirectoryItem_Impl();
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 	static void * operator new(size_t n);
42cdf0e10cSrcweir 	static void operator delete (void * p, size_t);
43cdf0e10cSrcweir 
44cdf0e10cSrcweir 	void acquire(); /* @see osl_acquireDirectoryItem() */
45cdf0e10cSrcweir 	void release(); /* @see osl_releaseDirectoryItem() */
46cdf0e10cSrcweir 
47cdf0e10cSrcweir 	oslFileType getFileType() const;
48cdf0e10cSrcweir };
49cdf0e10cSrcweir 
50cdf0e10cSrcweir #endif /* INCLUDED_FILE_IMPL_HXX */
51