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 __com_sun_star_packages_zip_ZipEntry_idl__
24#define __com_sun_star_packages_zip_ZipEntry_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __com_sun_star_xml_sax_InputSource_idl__
31#include <com/sun/star/xml/sax/InputSource.idl>
32#endif
33
34#ifndef __com_sun_star_io_IOException_idl__
35#include <com/sun/star/io/IOException.idl>
36#endif
37
38
39//=============================================================================
40
41module com {  module sun {  module star {   module packages {  module zip {
42
43//=============================================================================
44
45/** used to represent a ZIP file entry
46
47
48	<p>This interface is an IDL version of the Java interface
49	<em>java.util.zip.ZipFile</em> with some minor adaptations.</p>
50 */
51published struct ZipEntry
52{
53	//-------------------------------------------------------------------------
54	/** version needed to extract
55	 */
56	short nVersion;
57
58	//-------------------------------------------------------------------------
59	/** bit flags
60	 */
61	short nFlag;
62
63	//-------------------------------------------------------------------------
64	/** compression method
65	 */
66	short nMethod;
67
68	//-------------------------------------------------------------------------
69	/** modification time
70	 */
71	long nTime;
72
73	//-------------------------------------------------------------------------
74	/** crc-32 of entry data
75	 */
76	long nCrc;
77
78	//-------------------------------------------------------------------------
79	/** uncompressed size of entry data
80	 */
81	long nCompressedSize;
82
83	//-------------------------------------------------------------------------
84	/** uncompressed size of entry data
85	 */
86	long nSize;
87
88	//-------------------------------------------------------------------------
89	/** offset of LOC header
90	 */
91	long nOffset;
92
93	//-------------------------------------------------------------------------
94	/** The number of the disk this entry is saved on
95	 */
96	short nDiskNumber;
97
98	//-------------------------------------------------------------------------
99	/** the entry name
100	 */
101	string sName;
102
103	//-------------------------------------------------------------------------
104	/** optional extra field data for entry
105	 */
106	sequence<byte> extra;
107
108	//-------------------------------------------------------------------------
109	/** optional comment
110	 */
111	string sComment;
112};
113
114//=============================================================================
115
116}; }; }; }; };
117
118#endif
119