source: Vago/quazip-0.7.2/doc/html/classQuaZipFile.html@ 1049

Last change on this file since 1049 was 1049, checked in by s10k, 8 years ago
File size: 85.3 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>QuaZIP: QuaZipFile Class Reference</title>
6<link href="tabs.css" rel="stylesheet" type="text/css"/>
7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8</head>
9<body>
10<!-- Generated by Doxygen 1.7.4 -->
11<div id="top">
12<div id="titlearea">
13<table cellspacing="0" cellpadding="0">
14 <tbody>
15 <tr style="height: 56px;">
16 <td style="padding-left: 0.5em;">
17 <div id="projectname">QuaZIP&#160;<span id="projectnumber">quazip-0-7-2</span></div>
18 </td>
19 </tr>
20 </tbody>
21</table>
22</div>
23 <div id="navrow1" class="tabs">
24 <ul class="tablist">
25 <li><a href="index.html"><span>Main&#160;Page</span></a></li>
26 <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
27 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
28 <li><a href="files.html"><span>Files</span></a></li>
29 <li><a href="dirs.html"><span>Directories</span></a></li>
30 </ul>
31 </div>
32 <div id="navrow2" class="tabs2">
33 <ul class="tablist">
34 <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
35 <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
36 <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
37 </ul>
38 </div>
39</div>
40<div class="header">
41 <div class="summary">
42<a href="#pub-methods">Public Member Functions</a> &#124;
43<a href="#pro-methods">Protected Member Functions</a> &#124;
44<a href="#friends">Friends</a> </div>
45 <div class="headertitle">
46<div class="title">QuaZipFile Class Reference</div> </div>
47</div>
48<div class="contents">
49<!-- doxytag: class="QuaZipFile" --><!-- doxytag: inherits="QIODevice" -->
50<p>A file inside ZIP archive.
51 <a href="classQuaZipFile.html#details">More...</a></p>
52
53<p><code>#include &lt;<a class="el" href="quazipfile_8h_source.html">quazip/quazipfile.h</a>&gt;</code></p>
54<div class="dynheader">
55Inheritance diagram for QuaZipFile:</div>
56<div class="dyncontent">
57<div class="center"><img src="classQuaZipFile__inherit__graph.png" border="0" usemap="#QuaZipFile_inherit__map" alt="Inheritance graph"/></div>
58<map name="QuaZipFile_inherit__map" id="QuaZipFile_inherit__map">
59<area shape="rect" id="node2" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html" title="QIODevice" alt="" coords="5,80,88,107"/>
60<area shape="rect" id="node4" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html" title="QObject" alt="" coords="11,5,81,32"/>
61</map>
62<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
63<div class="dynheader">
64Collaboration diagram for QuaZipFile:</div>
65<div class="dyncontent">
66<div class="center"><img src="classQuaZipFile__coll__graph.png" border="0" usemap="#QuaZipFile_coll__map" alt="Collaboration graph"/></div>
67<map name="QuaZipFile_coll__map" id="QuaZipFile_coll__map">
68<area shape="rect" id="node6" href="classQuaZipFilePrivate.html" title="The implementation class for QuaZip." alt="" coords="9,280,132,307"/>
69<area shape="rect" id="node2" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html" title="QIODevice" alt="" coords="241,83,324,109"/>
70<area shape="rect" id="node10" href="classQuaZipPrivate.html" title="All the internal stuff for the QuaZip class." alt="" coords="283,280,385,307"/>
71<area shape="rect" id="node4" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html" title="QObject" alt="" coords="247,5,317,32"/>
72<area shape="rect" id="node8" href="classQuaZip.html" title="ZIP archive." alt="" coords="113,160,175,187"/>
73<area shape="rect" id="node13" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qhash.html" title="QHash\&lt; QString, unz64_file_pos \&gt;" alt="" coords="445,160,669,187"/>
74<area shape="rect" id="node16" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html" title="QString" alt="" coords="227,160,293,187"/>
75<area shape="rect" id="node18" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtextcodec.html" title="QTextCodec" alt="" coords="694,160,788,187"/>
76</map>
77<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
78
79<p><a href="classQuaZipFile-members.html">List of all members.</a></p>
80<table class="memberdecls">
81<tr><td colspan="2"><h2><a name="pub-methods"></a>
82Public Member Functions</h2></td></tr>
83<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ad31592e0e8a9eaa009c6c0e2040a2158">QuaZipFile</a> ()</td></tr>
84<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#ad31592e0e8a9eaa009c6c0e2040a2158"></a><br/></td></tr>
85<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a1349ad27f1947bc3e346d83dbf9586c4">QuaZipFile</a> (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>)</td></tr>
86<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#a1349ad27f1947bc3e346d83dbf9586c4"></a><br/></td></tr>
87<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ae614495d6b2404a6c59d7cfca5c3f6fd">QuaZipFile</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;zipName, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>=NULL)</td></tr>
88<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#ae614495d6b2404a6c59d7cfca5c3f6fd"></a><br/></td></tr>
89<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ac6e883b5a5d3a58c9c56eb497dd91220">QuaZipFile</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;zipName, const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;fileName, <a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> cs=QuaZip::csDefault, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>=NULL)</td></tr>
90<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#ac6e883b5a5d3a58c9c56eb497dd91220"></a><br/></td></tr>
91<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a54e944a6b3d27030f64c8f30d2cc33bb">QuaZipFile</a> (<a class="el" href="classQuaZip.html">QuaZip</a> *zip, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html#parent">parent</a>=NULL)</td></tr>
92<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#a54e944a6b3d27030f64c8f30d2cc33bb"></a><br/></td></tr>
93<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#aa1e5a0cf491bafae6cc73e649caa97fc">~QuaZipFile</a> ()</td></tr>
94<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. <a href="#aa1e5a0cf491bafae6cc73e649caa97fc"></a><br/></td></tr>
95<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a6f034a714aa94631367590de3f8f4e22">getZipName</a> () const </td></tr>
96<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the ZIP archive file name. <a href="#a6f034a714aa94631367590de3f8f4e22"></a><br/></td></tr>
97<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQuaZip.html">QuaZip</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a72daf8a9da14907a801a783603003205">getZip</a> () const </td></tr>
98<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object. <a href="#a72daf8a9da14907a801a783603003205"></a><br/></td></tr>
99<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9">getFileName</a> () const </td></tr>
100<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns file name. <a href="#a6999362e70a5b2396fba5cfb30095ff9"></a><br/></td></tr>
101<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a25dbfddc589bf6b69b39905f3c3bcc73">getCaseSensitivity</a> () const </td></tr>
102<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns case sensitivity of the file name. <a href="#a25dbfddc589bf6b69b39905f3c3bcc73"></a><br/></td></tr>
103<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a7b8e3c39026855cd98661a1b2815c220">getActualFileName</a> () const </td></tr>
104<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the actual file name in the archive. <a href="#a7b8e3c39026855cd98661a1b2815c220"></a><br/></td></tr>
105<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ac8109e9a5c19bea75982ff6986b5cb1e">setZipName</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;zipName)</td></tr>
106<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the ZIP archive file name. <a href="#ac8109e9a5c19bea75982ff6986b5cb1e"></a><br/></td></tr>
107<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a0df3db94c2a34c8d17ddaa0f54fc32c1">isRaw</a> () const </td></tr>
108<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the file was opened in raw mode. <a href="#a0df3db94c2a34c8d17ddaa0f54fc32c1"></a><br/></td></tr>
109<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ab7939a26d1e8de2f6aca54f49a12b980">setZip</a> (<a class="el" href="classQuaZip.html">QuaZip</a> *zip)</td></tr>
110<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Binds to the existing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instance. <a href="#ab7939a26d1e8de2f6aca54f49a12b980"></a><br/></td></tr>
111<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95">setFileName</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;fileName, <a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> cs=QuaZip::csDefault)</td></tr>
112<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the file name. <a href="#a3732ca7704379d457b6a27db8837de95"></a><br/></td></tr>
113<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a4c20c0ef00ae79c9a59eafe2906c9384">open</a> (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a> mode)</td></tr>
114<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading. <a href="#a4c20c0ef00ae79c9a59eafe2906c9384"></a><br/></td></tr>
115<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a0bff0d15bbcd70306dc4a553a55776b9">open</a> (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a> mode, const char *password)</td></tr>
116<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading. <a href="#a0bff0d15bbcd70306dc4a553a55776b9"></a><br/></td></tr>
117<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#aed75bace51f2bb4c3e4f656ab4493aac">open</a> (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a> mode, int *method, int *level, bool raw, const char *password=NULL)</td></tr>
118<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading. <a href="#aed75bace51f2bb4c3e4f656ab4493aac"></a><br/></td></tr>
119<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a2429ea59c77371d7af56d739db130b18">open</a> (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a> mode, const <a class="el" href="structQuaZipNewInfo.html">QuaZipNewInfo</a> &amp;info, const char *password=NULL, quint32 crc=0, int method=Z_DEFLATED, int level=Z_DEFAULT_COMPRESSION, bool raw=false, int windowBits=-MAX_WBITS, int memLevel=DEF_MEM_LEVEL, int strategy=Z_DEFAULT_STRATEGY)</td></tr>
120<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for writing. <a href="#a2429ea59c77371d7af56d739db130b18"></a><br/></td></tr>
121<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64430ec50820c8096f963a7e5f53001f"></a><!-- doxytag: member="QuaZipFile::isSequential" ref="a64430ec50820c8096f963a7e5f53001f" args="() const " -->
122virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a64430ec50820c8096f963a7e5f53001f">isSequential</a> () const </td></tr>
123<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code>, but <a class="el" href="classQuaZipFile.html#quazipfile-sequential">beware</a>! <br/></td></tr>
124<tr><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a90fd55dab83eca7f95df50b2c41b7f22">pos</a> () const </td></tr>
125<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns current position in the file. <a href="#a90fd55dab83eca7f95df50b2c41b7f22"></a><br/></td></tr>
126<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a1e3f4c3c075da98af426fc167440cfc3">atEnd</a> () const </td></tr>
127<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the end of file was reached. <a href="#a1e3f4c3c075da98af426fc167440cfc3"></a><br/></td></tr>
128<tr><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ad1a17cc690a01c3edfb82984c3a4c8f0">size</a> () const </td></tr>
129<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns file size. <a href="#ad1a17cc690a01c3edfb82984c3a4c8f0"></a><br/></td></tr>
130<tr><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ac4da08e5cdec368a2a686775f7dc5639">csize</a> () const </td></tr>
131<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compressed file size. <a href="#ac4da08e5cdec368a2a686775f7dc5639"></a><br/></td></tr>
132<tr><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a4814b5e6e39fb254737b81ea10964f50">usize</a> () const </td></tr>
133<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns uncompressed file size. <a href="#a4814b5e6e39fb254737b81ea10964f50"></a><br/></td></tr>
134<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ad3f5807329321be21b12c1ba5798b359">getFileInfo</a> (<a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a> *info)</td></tr>
135<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets information about current file. <a href="#ad3f5807329321be21b12c1ba5798b359"></a><br/></td></tr>
136<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#af35876a5ac6e9c35234275a9e503110d">getFileInfo</a> (<a class="el" href="structQuaZipFileInfo64.html">QuaZipFileInfo64</a> *info)</td></tr>
137<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets information about current file with zip64 support. <a href="#af35876a5ac6e9c35234275a9e503110d"></a><br/></td></tr>
138<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a42a39b12619bccd3d419ee60bbb3fcf6">close</a> ()</td></tr>
139<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the file. <a href="#a42a39b12619bccd3d419ee60bbb3fcf6"></a><br/></td></tr>
140<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26d2ee56aad947193b73052f80597ef0"></a><!-- doxytag: member="QuaZipFile::getZipError" ref="a26d2ee56aad947193b73052f80597ef0" args="() const " -->
141int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0">getZipError</a> () const </td></tr>
142<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the error code returned by the last ZIP/UNZIP API call. <br/></td></tr>
143<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29fbfb34677f69394ae7c986ffd3a0c1"></a><!-- doxytag: member="QuaZipFile::bytesAvailable" ref="a29fbfb34677f69394ae7c986ffd3a0c1" args="() const " -->
144virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a29fbfb34677f69394ae7c986ffd3a0c1">bytesAvailable</a> () const </td></tr>
145<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of bytes available for reading. <br/></td></tr>
146<tr><td colspan="2"><h2><a name="pro-methods"></a>
147Protected Member Functions</h2></td></tr>
148<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1f2274e1579327855a17d67a9046ec2"></a><!-- doxytag: member="QuaZipFile::readData" ref="aa1f2274e1579327855a17d67a9046ec2" args="(char *data, qint64 maxSize)" -->
149qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#aa1f2274e1579327855a17d67a9046ec2">readData</a> (char *data, qint64 maxSize)</td></tr>
150<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#readData">QIODevice::readData()</a>. <br/></td></tr>
151<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd07949a6fcc2ef094d2be5398bc8e7c"></a><!-- doxytag: member="QuaZipFile::writeData" ref="abd07949a6fcc2ef094d2be5398bc8e7c" args="(const char *data, qint64 maxSize)" -->
152qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#abd07949a6fcc2ef094d2be5398bc8e7c">writeData</a> (const char *data, qint64 maxSize)</td></tr>
153<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#writeData">QIODevice::writeData()</a>. <br/></td></tr>
154<tr><td colspan="2"><h2><a name="friends"></a>
155Friends</h2></td></tr>
156<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abeded291f2788ca39fe2256d78f95266"></a><!-- doxytag: member="QuaZipFile::QuaZipFilePrivate" ref="abeded291f2788ca39fe2256d78f95266" args="" -->
157class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#abeded291f2788ca39fe2256d78f95266">QuaZipFilePrivate</a></td></tr>
158</table>
159<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
160<div class="textblock"><p>A file inside ZIP archive. </p>
161<p>This is the most interesting class. Not only it provides C++ interface to the ZIP/UNZIP package, but also integrates it with <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qt.html">Qt</a> by subclassing <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html">QIODevice</a>. This makes possible to access files inside ZIP archive using <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtextstream.html">QTextStream</a> or <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdatastream.html">QDataStream</a>, for example. Actually, this is the main purpose of the whole QuaZIP library.</p>
162<p>You can either use existing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instance to create instance of this class or pass ZIP archive file name to this class, in which case it will create internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object. See constructors' descriptions for details. Writing is only possible with the existing instance.</p>
163<p>Note that due to the underlying library's limitation it is not possible to use multiple <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instances to open several files in the same archive at the same time. If you need to write to multiple files in parallel, then you should write to temporary files first, then pack them all at once when you have finished writing. If you need to read multiple files inside the same archive in parallel, you should extract them all into a temporary directory first.</p>
164<h2><a class="anchor" id="quazipfile-sequential"></a>
165Sequential or random-access?</h2>
166<p>At the first thought, <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> has fixed size, the start and the end and should be therefore considered random-access device. But there is one major obstacle to making it random-access: ZIP/UNZIP API does not support <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#seek">seek()</a> operation and the only way to implement it is through reopening the file and re-reading to the required position, but this is prohibitively slow.</p>
167<p>Therefore, <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> is considered to be a sequential device. This has advantage of availability of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#ungetChar">ungetChar()</a> operation (<a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html">QIODevice</a> does not implement it properly for non-sequential devices unless they support <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#seek">seek()</a>). Disadvantage is a somewhat strange behaviour of the <a class="el" href="classQuaZipFile.html#ad1a17cc690a01c3edfb82984c3a4c8f0" title="Returns file size.">size()</a> and <a class="el" href="classQuaZipFile.html#a90fd55dab83eca7f95df50b2c41b7f22" title="Returns current position in the file.">pos()</a> functions. This should be kept in mind while using this class. </p>
168</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
169<a class="anchor" id="ad31592e0e8a9eaa009c6c0e2040a2158"></a><!-- doxytag: member="QuaZipFile::QuaZipFile" ref="ad31592e0e8a9eaa009c6c0e2040a2158" args="()" -->
170<div class="memitem">
171<div class="memproto">
172 <table class="memname">
173 <tr>
174 <td class="memname">QuaZipFile::QuaZipFile </td>
175 <td>(</td>
176 <td class="paramname"></td><td>)</td>
177 <td></td>
178 </tr>
179 </table>
180</div>
181<div class="memdoc">
182
183<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
184<p>You should use <a class="el" href="classQuaZipFile.html#ac8109e9a5c19bea75982ff6986b5cb1e" title="Sets the ZIP archive file name.">setZipName()</a> and <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> or <a class="el" href="classQuaZipFile.html#ab7939a26d1e8de2f6aca54f49a12b980" title="Binds to the existing QuaZip instance.">setZip()</a> before trying to call <a class="el" href="classQuaZipFile.html#a4c20c0ef00ae79c9a59eafe2906c9384" title="Opens a file for reading.">open()</a> on the constructed object. </p>
185
186</div>
187</div>
188<a class="anchor" id="a1349ad27f1947bc3e346d83dbf9586c4"></a><!-- doxytag: member="QuaZipFile::QuaZipFile" ref="a1349ad27f1947bc3e346d83dbf9586c4" args="(QObject *parent)" -->
189<div class="memitem">
190<div class="memproto">
191 <table class="memname">
192 <tr>
193 <td class="memname">QuaZipFile::QuaZipFile </td>
194 <td>(</td>
195 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *&#160;</td>
196 <td class="paramname"><em>parent</em></td><td>)</td>
197 <td></td>
198 </tr>
199 </table>
200</div>
201<div class="memdoc">
202
203<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
204<p><em>parent</em> argument specifies this object's parent object.</p>
205<p>You should use <a class="el" href="classQuaZipFile.html#ac8109e9a5c19bea75982ff6986b5cb1e" title="Sets the ZIP archive file name.">setZipName()</a> and <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> or <a class="el" href="classQuaZipFile.html#ab7939a26d1e8de2f6aca54f49a12b980" title="Binds to the existing QuaZip instance.">setZip()</a> before trying to call <a class="el" href="classQuaZipFile.html#a4c20c0ef00ae79c9a59eafe2906c9384" title="Opens a file for reading.">open()</a> on the constructed object. </p>
206
207</div>
208</div>
209<a class="anchor" id="ae614495d6b2404a6c59d7cfca5c3f6fd"></a><!-- doxytag: member="QuaZipFile::QuaZipFile" ref="ae614495d6b2404a6c59d7cfca5c3f6fd" args="(const QString &amp;zipName, QObject *parent=NULL)" -->
210<div class="memitem">
211<div class="memproto">
212 <table class="memname">
213 <tr>
214 <td class="memname">QuaZipFile::QuaZipFile </td>
215 <td>(</td>
216 <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;&#160;</td>
217 <td class="paramname"><em>zipName</em>, </td>
218 </tr>
219 <tr>
220 <td class="paramkey"></td>
221 <td></td>
222 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *&#160;</td>
223 <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
224 </tr>
225 <tr>
226 <td></td>
227 <td>)</td>
228 <td></td><td></td>
229 </tr>
230 </table>
231</div>
232<div class="memdoc">
233
234<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
235<p><em>parent</em> argument specifies this object's parent object and <em>zipName</em> specifies ZIP archive file name.</p>
236<p>You should use <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> before trying to call <a class="el" href="classQuaZipFile.html#a4c20c0ef00ae79c9a59eafe2906c9384" title="Opens a file for reading.">open()</a> on the constructed object.</p>
237<p><a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> constructed by this constructor can be used for read only access. Use <a class="el" href="classQuaZipFile.html#a54e944a6b3d27030f64c8f30d2cc33bb" title="Constructs a QuaZipFile instance.">QuaZipFile(QuaZip*,QObject*)</a> for writing. </p>
238
239</div>
240</div>
241<a class="anchor" id="ac6e883b5a5d3a58c9c56eb497dd91220"></a><!-- doxytag: member="QuaZipFile::QuaZipFile" ref="ac6e883b5a5d3a58c9c56eb497dd91220" args="(const QString &amp;zipName, const QString &amp;fileName, QuaZip::CaseSensitivity cs=QuaZip::csDefault, QObject *parent=NULL)" -->
242<div class="memitem">
243<div class="memproto">
244 <table class="memname">
245 <tr>
246 <td class="memname">QuaZipFile::QuaZipFile </td>
247 <td>(</td>
248 <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;&#160;</td>
249 <td class="paramname"><em>zipName</em>, </td>
250 </tr>
251 <tr>
252 <td class="paramkey"></td>
253 <td></td>
254 <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;&#160;</td>
255 <td class="paramname"><em>fileName</em>, </td>
256 </tr>
257 <tr>
258 <td class="paramkey"></td>
259 <td></td>
260 <td class="paramtype"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a>&#160;</td>
261 <td class="paramname"><em>cs</em> = <code>QuaZip::csDefault</code>, </td>
262 </tr>
263 <tr>
264 <td class="paramkey"></td>
265 <td></td>
266 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *&#160;</td>
267 <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
268 </tr>
269 <tr>
270 <td></td>
271 <td>)</td>
272 <td></td><td></td>
273 </tr>
274 </table>
275</div>
276<div class="memdoc">
277
278<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
279<p><em>parent</em> argument specifies this object's parent object, <em>zipName</em> specifies ZIP archive file name and <em>fileName</em> and <em>cs</em> specify a name of the file to open inside archive.</p>
280<p><a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> constructed by this constructor can be used for read only access. Use <a class="el" href="classQuaZipFile.html#a54e944a6b3d27030f64c8f30d2cc33bb" title="Constructs a QuaZipFile instance.">QuaZipFile(QuaZip*,QObject*)</a> for writing.</p>
281<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899" title="Sets current file by its name.">QuaZip::setCurrentFile()</a> </dd></dl>
282
283</div>
284</div>
285<a class="anchor" id="a54e944a6b3d27030f64c8f30d2cc33bb"></a><!-- doxytag: member="QuaZipFile::QuaZipFile" ref="a54e944a6b3d27030f64c8f30d2cc33bb" args="(QuaZip *zip, QObject *parent=NULL)" -->
286<div class="memitem">
287<div class="memproto">
288 <table class="memname">
289 <tr>
290 <td class="memname">QuaZipFile::QuaZipFile </td>
291 <td>(</td>
292 <td class="paramtype"><a class="el" href="classQuaZip.html">QuaZip</a> *&#160;</td>
293 <td class="paramname"><em>zip</em>, </td>
294 </tr>
295 <tr>
296 <td class="paramkey"></td>
297 <td></td>
298 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> *&#160;</td>
299 <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
300 </tr>
301 <tr>
302 <td></td>
303 <td>)</td>
304 <td></td><td></td>
305 </tr>
306 </table>
307</div>
308<div class="memdoc">
309
310<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
311<p><em>parent</em> argument specifies this object's parent object.</p>
312<p><em>zip</em> is the pointer to the existing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object. This <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> object then can be used to read current file in the <em>zip</em> or to write to the file inside it.</p>
313<dl class="warning"><dt><b>Warning:</b></dt><dd>Using this constructor for reading current file can be tricky. Let's take the following example: <div class="fragment"><pre class="fragment"> <a class="code" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> zip(<span class="stringliteral">&quot;archive.zip&quot;</span>);
314 zip.open(<a class="code" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897" title="ZIP file is open for reading files inside it.">QuaZip::mdUnzip</a>);
315 zip.setCurrentFile(<span class="stringliteral">&quot;file-in-archive&quot;</span>);
316 <a class="code" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> file(&amp;zip);
317 file.open(QIODevice::ReadOnly);
318 <span class="comment">// ok, now we can read from the file</span>
319 file.read(somewhere, some);
320 zip.setCurrentFile(<span class="stringliteral">&quot;another-file-in-archive&quot;</span>); <span class="comment">// oops...</span>
321 <a class="code" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> anotherFile(&amp;zip);
322 anotherFile.open(QIODevice::ReadOnly);
323 anotherFile.read(somewhere, some); <span class="comment">// this is still ok...</span>
324 file.read(somewhere, some); <span class="comment">// and this is NOT</span>
325</pre></div> So, what exactly happens here? When we change current file in the <code>zip</code> archive, <code>file</code> that references it becomes invalid (actually, as far as I understand ZIP/UNZIP sources, it becomes closed, but <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> has no means to detect it).</dd></dl>
326<p>Summary: do not close <code>zip</code> object or change its current file as long as <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> is open. Even better - use another constructors which create internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instances, one per object, and therefore do not cause unnecessary trouble. This constructor may be useful, though, if you already have a <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instance and do not want to access several files at once. Good example: </p>
327<div class="fragment"><pre class="fragment"> <a class="code" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> zip(<span class="stringliteral">&quot;archive.zip&quot;</span>);
328 zip.open(<a class="code" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897" title="ZIP file is open for reading files inside it.">QuaZip::mdUnzip</a>);
329 <span class="comment">// first, we need some information about archive itself</span>
330 <a class="codeRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> comment=zip.getComment();
331 <span class="comment">// and now we are going to access files inside it</span>
332 <a class="code" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> file(&amp;zip);
333 <span class="keywordflow">for</span>(<span class="keywordtype">bool</span> more=zip.goToFirstFile(); more; more=zip.goToNextFile()) {
334 file.open(QIODevice::ReadOnly);
335 <span class="comment">// do something cool with file here</span>
336 file.close(); <span class="comment">// do not forget to close!</span>
337 }
338 zip.close();
339</pre></div>
340</div>
341</div>
342<a class="anchor" id="aa1e5a0cf491bafae6cc73e649caa97fc"></a><!-- doxytag: member="QuaZipFile::~QuaZipFile" ref="aa1e5a0cf491bafae6cc73e649caa97fc" args="()" -->
343<div class="memitem">
344<div class="memproto">
345 <table class="memname">
346 <tr>
347 <td class="memname">QuaZipFile::~QuaZipFile </td>
348 <td>(</td>
349 <td class="paramname"></td><td>)</td>
350 <td><code> [virtual]</code></td>
351 </tr>
352 </table>
353</div>
354<div class="memdoc">
355
356<p>Destroys a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance. </p>
357<p>Closes file if open, destructs internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object (if it exists and <em>is</em> internal, of course). </p>
358
359<p>References <a class="el" href="classQuaZipFile.html#a42a39b12619bccd3d419ee60bbb3fcf6">close()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>.</p>
360
361</div>
362</div>
363<hr/><h2>Member Function Documentation</h2>
364<a class="anchor" id="a6f034a714aa94631367590de3f8f4e22"></a><!-- doxytag: member="QuaZipFile::getZipName" ref="a6f034a714aa94631367590de3f8f4e22" args="() const " -->
365<div class="memitem">
366<div class="memproto">
367 <table class="memname">
368 <tr>
369 <td class="memname"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> QuaZipFile::getZipName </td>
370 <td>(</td>
371 <td class="paramname"></td><td>)</td>
372 <td> const</td>
373 </tr>
374 </table>
375</div>
376<div class="memdoc">
377
378<p>Returns the ZIP archive file name. </p>
379<p>If this object was created by passing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> pointer to the constructor, this function will return that QuaZip's file name (or null string if that object does not have file name yet).</p>
380<p>Otherwise, returns associated ZIP archive file name or null string if there are no name set yet.</p>
381<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#ac8109e9a5c19bea75982ff6986b5cb1e" title="Sets the ZIP archive file name.">setZipName()</a> <a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9" title="Returns file name.">getFileName()</a> </dd></dl>
382
383<p>References <a class="el" href="classQuaZip.html#a4f7deef08ff40aeb1a7a04bcd7f228c2">QuaZip::getZipName()</a>.</p>
384
385</div>
386</div>
387<a class="anchor" id="a72daf8a9da14907a801a783603003205"></a><!-- doxytag: member="QuaZipFile::getZip" ref="a72daf8a9da14907a801a783603003205" args="() const " -->
388<div class="memitem">
389<div class="memproto">
390 <table class="memname">
391 <tr>
392 <td class="memname"><a class="el" href="classQuaZip.html">QuaZip</a> * QuaZipFile::getZip </td>
393 <td>(</td>
394 <td class="paramname"></td><td>)</td>
395 <td> const</td>
396 </tr>
397 </table>
398</div>
399<div class="memdoc">
400
401<p>Returns a pointer to the associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object. </p>
402<p>Returns <code>NULL</code> if there is no associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> or it is internal (so you will not mess with it). </p>
403
404</div>
405</div>
406<a class="anchor" id="a6999362e70a5b2396fba5cfb30095ff9"></a><!-- doxytag: member="QuaZipFile::getFileName" ref="a6999362e70a5b2396fba5cfb30095ff9" args="() const " -->
407<div class="memitem">
408<div class="memproto">
409 <table class="memname">
410 <tr>
411 <td class="memname"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> QuaZipFile::getFileName </td>
412 <td>(</td>
413 <td class="paramname"></td><td>)</td>
414 <td> const</td>
415 </tr>
416 </table>
417</div>
418<div class="memdoc">
419
420<p>Returns file name. </p>
421<p>This function returns file name you passed to this object either by using <a class="el" href="classQuaZipFile.html#ac6e883b5a5d3a58c9c56eb497dd91220" title="Constructs a QuaZipFile instance.">QuaZipFile(const QString&amp;,const QString&amp;,QuaZip::CaseSensitivity,QObject*)</a> or by calling <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a>. Real name of the file may differ in case if you used case-insensitivity.</p>
422<p>Returns null string if there is no file name set yet. This is the case when this <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> operates on the existing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object (constructor <a class="el" href="classQuaZipFile.html#a54e944a6b3d27030f64c8f30d2cc33bb" title="Constructs a QuaZipFile instance.">QuaZipFile(QuaZip*,QObject*)</a> or <a class="el" href="classQuaZipFile.html#ab7939a26d1e8de2f6aca54f49a12b980" title="Binds to the existing QuaZip instance.">setZip()</a> was used).</p>
423<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#a7b8e3c39026855cd98661a1b2815c220" title="Returns the actual file name in the archive.">getActualFileName</a> </dd></dl>
424
425</div>
426</div>
427<a class="anchor" id="a25dbfddc589bf6b69b39905f3c3bcc73"></a><!-- doxytag: member="QuaZipFile::getCaseSensitivity" ref="a25dbfddc589bf6b69b39905f3c3bcc73" args="() const " -->
428<div class="memitem">
429<div class="memproto">
430 <table class="memname">
431 <tr>
432 <td class="memname"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> QuaZipFile::getCaseSensitivity </td>
433 <td>(</td>
434 <td class="paramname"></td><td>)</td>
435 <td> const</td>
436 </tr>
437 </table>
438</div>
439<div class="memdoc">
440
441<p>Returns case sensitivity of the file name. </p>
442<p>This function returns case sensitivity argument you passed to this object either by using <a class="el" href="classQuaZipFile.html#ac6e883b5a5d3a58c9c56eb497dd91220" title="Constructs a QuaZipFile instance.">QuaZipFile(const QString&amp;,const QString&amp;,QuaZip::CaseSensitivity,QObject*)</a> or by calling <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a>.</p>
443<p>Returns unpredictable value if <a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9" title="Returns file name.">getFileName()</a> returns null string (this is the case when you did not used <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> or constructor above).</p>
444<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9" title="Returns file name.">getFileName</a> </dd></dl>
445
446</div>
447</div>
448<a class="anchor" id="a7b8e3c39026855cd98661a1b2815c220"></a><!-- doxytag: member="QuaZipFile::getActualFileName" ref="a7b8e3c39026855cd98661a1b2815c220" args="() const " -->
449<div class="memitem">
450<div class="memproto">
451 <table class="memname">
452 <tr>
453 <td class="memname"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> QuaZipFile::getActualFileName </td>
454 <td>(</td>
455 <td class="paramname"></td><td>)</td>
456 <td> const</td>
457 </tr>
458 </table>
459</div>
460<div class="memdoc">
461
462<p>Returns the actual file name in the archive. </p>
463<p>This is <em>not</em> a ZIP archive file name, but a name of file inside archive. It is not necessary the same name that you have passed to the <a class="el" href="classQuaZipFile.html#ac6e883b5a5d3a58c9c56eb497dd91220" title="Constructs a QuaZipFile instance.">QuaZipFile(const QString&amp;,const QString&amp;,QuaZip::CaseSensitivity,QObject*)</a>, <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> or <a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899" title="Sets current file by its name.">QuaZip::setCurrentFile()</a> - this is the real file name inside archive, so it may differ in case if the file name search was case-insensitive.</p>
464<p>Equivalent to calling getCurrentFileName() on the associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object. Returns null string if there is no associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object or if it does not have a current file yet. And this is the case if you called <a class="el" href="classQuaZipFile.html#a3732ca7704379d457b6a27db8837de95" title="Sets the file name.">setFileName()</a> but did not open the file yet. So this is perfectly fine: </p>
465<div class="fragment"><pre class="fragment"> <a class="code" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> file(<span class="stringliteral">&quot;somezip.zip&quot;</span>);
466 file.setFileName(<span class="stringliteral">&quot;somefile&quot;</span>);
467 <a class="codeRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> name=file.getName(); <span class="comment">// name==&quot;somefile&quot;</span>
468 <a class="codeRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> actual=file.getActualFileName(); <span class="comment">// actual is null string</span>
469 file.open(QIODevice::ReadOnly);
470 <a class="codeRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> actual=file.getActualFileName(); <span class="comment">// actual can be &quot;SoMeFiLe&quot; on Windows</span>
471</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#a6f034a714aa94631367590de3f8f4e22" title="Returns the ZIP archive file name.">getZipName()</a>, <a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9" title="Returns file name.">getFileName()</a>, <a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe" title="Case sensitivity for the file names.">QuaZip::CaseSensitivity</a> </dd></dl>
472
473<p>References <a class="el" href="classQuaZip.html#a9783f8b4f39cd55e71e975aea78fd54a">QuaZip::getCurrentFileName()</a>, <a class="el" href="classQuaZip.html#a28b91a6282ddd9382c96a069572c6fb4">QuaZip::getZipError()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html#isNull">QString::isNull()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#openMode">QIODevice::openMode()</a>.</p>
474
475</div>
476</div>
477<a class="anchor" id="ac8109e9a5c19bea75982ff6986b5cb1e"></a><!-- doxytag: member="QuaZipFile::setZipName" ref="ac8109e9a5c19bea75982ff6986b5cb1e" args="(const QString &amp;zipName)" -->
478<div class="memitem">
479<div class="memproto">
480 <table class="memname">
481 <tr>
482 <td class="memname">void QuaZipFile::setZipName </td>
483 <td>(</td>
484 <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;&#160;</td>
485 <td class="paramname"><em>zipName</em></td><td>)</td>
486 <td></td>
487 </tr>
488 </table>
489</div>
490<div class="memdoc">
491
492<p>Sets the ZIP archive file name. </p>
493<p>Automatically creates internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object and destroys previously created internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object, if any.</p>
494<p>Will do nothing if this file is already open. You must <a class="el" href="classQuaZipFile.html#a42a39b12619bccd3d419ee60bbb3fcf6" title="Closes the file.">close()</a> it first. </p>
495
496<p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>.</p>
497
498</div>
499</div>
500<a class="anchor" id="a0df3db94c2a34c8d17ddaa0f54fc32c1"></a><!-- doxytag: member="QuaZipFile::isRaw" ref="a0df3db94c2a34c8d17ddaa0f54fc32c1" args="() const " -->
501<div class="memitem">
502<div class="memproto">
503 <table class="memname">
504 <tr>
505 <td class="memname">bool QuaZipFile::isRaw </td>
506 <td>(</td>
507 <td class="paramname"></td><td>)</td>
508 <td> const</td>
509 </tr>
510 </table>
511</div>
512<div class="memdoc">
513
514<p>Returns <code>true</code> if the file was opened in raw mode. </p>
515<p>If the file is not open, the returned value is undefined.</p>
516<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#aed75bace51f2bb4c3e4f656ab4493aac" title="Opens a file for reading.">open(OpenMode,int*,int*,bool,const char*)</a> </dd></dl>
517
518<p>Referenced by <a class="el" href="classQuaZipFile.html#a42a39b12619bccd3d419ee60bbb3fcf6">close()</a>.</p>
519
520</div>
521</div>
522<a class="anchor" id="ab7939a26d1e8de2f6aca54f49a12b980"></a><!-- doxytag: member="QuaZipFile::setZip" ref="ab7939a26d1e8de2f6aca54f49a12b980" args="(QuaZip *zip)" -->
523<div class="memitem">
524<div class="memproto">
525 <table class="memname">
526 <tr>
527 <td class="memname">void QuaZipFile::setZip </td>
528 <td>(</td>
529 <td class="paramtype"><a class="el" href="classQuaZip.html">QuaZip</a> *&#160;</td>
530 <td class="paramname"><em>zip</em></td><td>)</td>
531 <td></td>
532 </tr>
533 </table>
534</div>
535<div class="memdoc">
536
537<p>Binds to the existing <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instance. </p>
538<p>This function destroys internal <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object, if any, and makes this <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> to use current file in the <em>zip</em> object for any further operations. See <a class="el" href="classQuaZipFile.html#a54e944a6b3d27030f64c8f30d2cc33bb" title="Constructs a QuaZipFile instance.">QuaZipFile(QuaZip*,QObject*)</a> for the possible pitfalls.</p>
539<p>Will do nothing if the file is currently open. You must <a class="el" href="classQuaZipFile.html#a42a39b12619bccd3d419ee60bbb3fcf6" title="Closes the file.">close()</a> it first. </p>
540
541<p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>.</p>
542
543</div>
544</div>
545<a class="anchor" id="a3732ca7704379d457b6a27db8837de95"></a><!-- doxytag: member="QuaZipFile::setFileName" ref="a3732ca7704379d457b6a27db8837de95" args="(const QString &amp;fileName, QuaZip::CaseSensitivity cs=QuaZip::csDefault)" -->
546<div class="memitem">
547<div class="memproto">
548 <table class="memname">
549 <tr>
550 <td class="memname">void QuaZipFile::setFileName </td>
551 <td>(</td>
552 <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &amp;&#160;</td>
553 <td class="paramname"><em>fileName</em>, </td>
554 </tr>
555 <tr>
556 <td class="paramkey"></td>
557 <td></td>
558 <td class="paramtype"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a>&#160;</td>
559 <td class="paramname"><em>cs</em> = <code>QuaZip::csDefault</code>&#160;</td>
560 </tr>
561 <tr>
562 <td></td>
563 <td>)</td>
564 <td></td><td></td>
565 </tr>
566 </table>
567</div>
568<div class="memdoc">
569
570<p>Sets the file name. </p>
571<p>Will do nothing if at least one of the following conditions is met:</p>
572<ul>
573<li>ZIP name has not been set yet (<a class="el" href="classQuaZipFile.html#a6f034a714aa94631367590de3f8f4e22" title="Returns the ZIP archive file name.">getZipName()</a> returns null string).</li>
574<li>This <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> is associated with external <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a>. In this case you should call that QuaZip's setCurrentFile() function instead!</li>
575<li>File is already open so setting the name is meaningless.</li>
576</ul>
577<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899" title="Sets current file by its name.">QuaZip::setCurrentFile</a> </dd></dl>
578
579<p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html#mid">QString::mid()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html#startsWith">QString::startsWith()</a>.</p>
580
581</div>
582</div>
583<a class="anchor" id="a4c20c0ef00ae79c9a59eafe2906c9384"></a><!-- doxytag: member="QuaZipFile::open" ref="a4c20c0ef00ae79c9a59eafe2906c9384" args="(OpenMode mode)" -->
584<div class="memitem">
585<div class="memproto">
586 <table class="memname">
587 <tr>
588 <td class="memname">bool QuaZipFile::open </td>
589 <td>(</td>
590 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a>&#160;</td>
591 <td class="paramname"><em>mode</em></td><td>)</td>
592 <td><code> [virtual]</code></td>
593 </tr>
594 </table>
595</div>
596<div class="memdoc">
597
598<p>Opens a file for reading. </p>
599<p>Returns <code>true</code> on success, <code>false</code> otherwise. Call <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> to get error code.</p>
600<dl class="note"><dt><b>Note:</b></dt><dd>Since ZIP/UNZIP API provides buffered reading only, <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> does not support unbuffered reading. So do not pass QIODevice::Unbuffered flag in <em>mode</em>, or open will fail. </dd></dl>
601
602<p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#open">QIODevice</a>.</p>
603
604</div>
605</div>
606<a class="anchor" id="a0bff0d15bbcd70306dc4a553a55776b9"></a><!-- doxytag: member="QuaZipFile::open" ref="a0bff0d15bbcd70306dc4a553a55776b9" args="(OpenMode mode, const char *password)" -->
607<div class="memitem">
608<div class="memproto">
609 <table class="memname">
610 <tr>
611 <td class="memname">bool QuaZipFile::open </td>
612 <td>(</td>
613 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a>&#160;</td>
614 <td class="paramname"><em>mode</em>, </td>
615 </tr>
616 <tr>
617 <td class="paramkey"></td>
618 <td></td>
619 <td class="paramtype">const char *&#160;</td>
620 <td class="paramname"><em>password</em>&#160;</td>
621 </tr>
622 <tr>
623 <td></td>
624 <td>)</td>
625 <td></td><td><code> [inline]</code></td>
626 </tr>
627 </table>
628</div>
629<div class="memdoc">
630
631<p>Opens a file for reading. </p>
632<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Argument <em>password</em> specifies a password to decrypt the file. If it is NULL then this function behaves just like <a class="el" href="classQuaZipFile.html#a4c20c0ef00ae79c9a59eafe2906c9384" title="Opens a file for reading.">open(OpenMode)</a>. </p>
633
634<p>References <a class="el" href="classQuaZipFile.html#a0bff0d15bbcd70306dc4a553a55776b9">open()</a>.</p>
635
636<p>Referenced by <a class="el" href="classQuaZipFile.html#a0bff0d15bbcd70306dc4a553a55776b9">open()</a>.</p>
637
638</div>
639</div>
640<a class="anchor" id="aed75bace51f2bb4c3e4f656ab4493aac"></a><!-- doxytag: member="QuaZipFile::open" ref="aed75bace51f2bb4c3e4f656ab4493aac" args="(OpenMode mode, int *method, int *level, bool raw, const char *password=NULL)" -->
641<div class="memitem">
642<div class="memproto">
643 <table class="memname">
644 <tr>
645 <td class="memname">bool QuaZipFile::open </td>
646 <td>(</td>
647 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a>&#160;</td>
648 <td class="paramname"><em>mode</em>, </td>
649 </tr>
650 <tr>
651 <td class="paramkey"></td>
652 <td></td>
653 <td class="paramtype">int *&#160;</td>
654 <td class="paramname"><em>method</em>, </td>
655 </tr>
656 <tr>
657 <td class="paramkey"></td>
658 <td></td>
659 <td class="paramtype">int *&#160;</td>
660 <td class="paramname"><em>level</em>, </td>
661 </tr>
662 <tr>
663 <td class="paramkey"></td>
664 <td></td>
665 <td class="paramtype">bool&#160;</td>
666 <td class="paramname"><em>raw</em>, </td>
667 </tr>
668 <tr>
669 <td class="paramkey"></td>
670 <td></td>
671 <td class="paramtype">const char *&#160;</td>
672 <td class="paramname"><em>password</em> = <code>NULL</code>&#160;</td>
673 </tr>
674 <tr>
675 <td></td>
676 <td>)</td>
677 <td></td><td></td>
678 </tr>
679 </table>
680</div>
681<div class="memdoc">
682
683<p>Opens a file for reading. </p>
684<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Argument <em>password</em> specifies a password to decrypt the file.</p>
685<p>An integers pointed by <em>method</em> and <em>level</em> will receive codes of the compression method and level used. See unzip.h.</p>
686<p>If raw is <code>true</code> then no decompression is performed.</p>
687<p><em>method</em> should not be <code>NULL</code>. <em>level</em> can be <code>NULL</code> if you don't want to know the compression level. </p>
688
689<p>References <a class="el" href="classQuaZip.html#a7a4323b73e12f3b4470109f200728f9f">QuaZip::close()</a>, <a class="el" href="classQuaZip.html#a129ceff04d28fb00531f7bf7f9329664">QuaZip::getMode()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, <a class="el" href="classQuaZip.html#a28b91a6282ddd9382c96a069572c6fb4">QuaZip::getZipError()</a>, <a class="el" href="classQuaZip.html#a00b237d926648f45da86db25e7cfb697">QuaZip::hasCurrentFile()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>, <a class="el" href="classQuaZip.html#abfa4e6018b2964a3d10a4c54e5ab3962">QuaZip::open()</a>, <a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899">QuaZip::setCurrentFile()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#setOpenMode">QIODevice::setOpenMode()</a>.</p>
690
691</div>
692</div>
693<a class="anchor" id="a2429ea59c77371d7af56d739db130b18"></a><!-- doxytag: member="QuaZipFile::open" ref="a2429ea59c77371d7af56d739db130b18" args="(OpenMode mode, const QuaZipNewInfo &amp;info, const char *password=NULL, quint32 crc=0, int method=Z_DEFLATED, int level=Z_DEFAULT_COMPRESSION, bool raw=false, int windowBits=&#45;MAX_WBITS, int memLevel=DEF_MEM_LEVEL, int strategy=Z_DEFAULT_STRATEGY)" -->
694<div class="memitem">
695<div class="memproto">
696 <table class="memname">
697 <tr>
698 <td class="memname">bool QuaZipFile::open </td>
699 <td>(</td>
700 <td class="paramtype"><a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">OpenMode</a>&#160;</td>
701 <td class="paramname"><em>mode</em>, </td>
702 </tr>
703 <tr>
704 <td class="paramkey"></td>
705 <td></td>
706 <td class="paramtype">const <a class="el" href="structQuaZipNewInfo.html">QuaZipNewInfo</a> &amp;&#160;</td>
707 <td class="paramname"><em>info</em>, </td>
708 </tr>
709 <tr>
710 <td class="paramkey"></td>
711 <td></td>
712 <td class="paramtype">const char *&#160;</td>
713 <td class="paramname"><em>password</em> = <code>NULL</code>, </td>
714 </tr>
715 <tr>
716 <td class="paramkey"></td>
717 <td></td>
718 <td class="paramtype">quint32&#160;</td>
719 <td class="paramname"><em>crc</em> = <code>0</code>, </td>
720 </tr>
721 <tr>
722 <td class="paramkey"></td>
723 <td></td>
724 <td class="paramtype">int&#160;</td>
725 <td class="paramname"><em>method</em> = <code>Z_DEFLATED</code>, </td>
726 </tr>
727 <tr>
728 <td class="paramkey"></td>
729 <td></td>
730 <td class="paramtype">int&#160;</td>
731 <td class="paramname"><em>level</em> = <code>Z_DEFAULT_COMPRESSION</code>, </td>
732 </tr>
733 <tr>
734 <td class="paramkey"></td>
735 <td></td>
736 <td class="paramtype">bool&#160;</td>
737 <td class="paramname"><em>raw</em> = <code>false</code>, </td>
738 </tr>
739 <tr>
740 <td class="paramkey"></td>
741 <td></td>
742 <td class="paramtype">int&#160;</td>
743 <td class="paramname"><em>windowBits</em> = <code>-MAX_WBITS</code>, </td>
744 </tr>
745 <tr>
746 <td class="paramkey"></td>
747 <td></td>
748 <td class="paramtype">int&#160;</td>
749 <td class="paramname"><em>memLevel</em> = <code>DEF_MEM_LEVEL</code>, </td>
750 </tr>
751 <tr>
752 <td class="paramkey"></td>
753 <td></td>
754 <td class="paramtype">int&#160;</td>
755 <td class="paramname"><em>strategy</em> = <code>Z_DEFAULT_STRATEGY</code>&#160;</td>
756 </tr>
757 <tr>
758 <td></td>
759 <td>)</td>
760 <td></td><td></td>
761 </tr>
762 </table>
763</div>
764<div class="memdoc">
765
766<p>Opens a file for writing. </p>
767<p><em>info</em> argument specifies information about file. It should at least specify a correct file name. Also, it is a good idea to specify correct timestamp (by default, current time will be used). See <a class="el" href="structQuaZipNewInfo.html" title="Information about a file to be created.">QuaZipNewInfo</a>.</p>
768<p>The <em>password</em> argument specifies the password for crypting. Pass NULL if you don't need any crypting. The <em>crc</em> argument was supposed to be used for crypting too, but then it turned out that it's false information, so you need to set it to 0 unless you want to use the raw mode (see below).</p>
769<p>Arguments <em>method</em> and <em>level</em> specify compression method and level. The only method supported is Z_DEFLATED, but you may also specify 0 for no compression. If all of the files in the archive use both method 0 and either level 0 is explicitly specified or data descriptor writing is disabled with <a class="el" href="classQuaZip.html#a6c23a12af88f7ea5edd4f9c0a24b9453" title="Changes the data descriptor writing mode.">QuaZip::setDataDescriptorWritingEnabled()</a>, then the resulting archive is supposed to be compatible with the 1.0 ZIP format version, should you need that. Except for this, <em>level</em> has no other effects with method 0.</p>
770<p>If <em>raw</em> is <code>true</code>, no compression is performed. In this case, <em>crc</em> and uncompressedSize field of the <em>info</em> are required.</p>
771<p>Arguments <em>windowBits</em>, <em>memLevel</em>, <em>strategy</em> provide zlib algorithms tuning. See deflateInit2() in zlib. </p>
772
773<p>References <a class="el" href="structQuaZipNewInfo.html#ae24b1d38c3550b4724862ffcf8f20924">QuaZipNewInfo::comment</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#constData">QByteArray::constData()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdatetime.html#date">QDateTime::date()</a>, <a class="el" href="structQuaZipNewInfo.html#aec7f3ac72c72a2e10b82ad64c2fa3453">QuaZipNewInfo::dateTime</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdate.html#day">QDate::day()</a>, <a class="el" href="structQuaZipNewInfo.html#affd1a9700d302e1395bd04f0864da7d0">QuaZipNewInfo::externalAttr</a>, <a class="el" href="structQuaZipNewInfo.html#abda207eb3949db3a88761c1b06e6bd58">QuaZipNewInfo::extraGlobal</a>, <a class="el" href="structQuaZipNewInfo.html#ab377a81c51cf495c7aeee4f19340a43f">QuaZipNewInfo::extraLocal</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtextcodec.html#fromUnicode">QTextCodec::fromUnicode()</a>, <a class="el" href="classQuaZip.html#a008260161781d8b5d2a0a28493fddaf4">QuaZip::getCommentCodec()</a>, <a class="el" href="classQuaZip.html#a27b866aa2c75ea6f9c438cbb6e32b43c">QuaZip::getFileNameCodec()</a>, <a class="el" href="classQuaZip.html#a129ceff04d28fb00531f7bf7f9329664">QuaZip::getMode()</a>, <a class="el" href="classQuaZip.html#a425043a4d7cc31e2fe2bba73d954f15c">QuaZip::getZipFile()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtime.html#hour">QTime::hour()</a>, <a class="el" href="structQuaZipNewInfo.html#a59ce9776c2ac7547ade8cb4c404c77ab">QuaZipNewInfo::internalAttr</a>, <a class="el" href="classQuaZip.html#ae5c665a59447c2d30e63e9c6df48ebb7">QuaZip::isDataDescriptorWritingEnabled()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, <a class="el" href="classQuaZip.html#a1b638566390d7599ba5982e844b151f4">QuaZip::isZip64Enabled()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#length">QByteArray::length()</a>, <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a22c745f349f06add449af523254fdaec">QuaZip::mdAdd</a>, <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4ab807f0c65653a16d77b365801fd25582">QuaZip::mdAppend</a>, <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a25ae05b12590540af8c66ae8298b928e">QuaZip::mdCreate</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtime.html#minute">QTime::minute()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdate.html#month">QDate::month()</a>, <a class="el" href="structQuaZipNewInfo.html#a2bdef01b6ac3326e48598e32bfa5fbe8">QuaZipNewInfo::name</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qtime.html#second">QTime::second()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#setOpenMode">QIODevice::setOpenMode()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdatetime.html#time">QDateTime::time()</a>, <a class="el" href="structQuaZipNewInfo.html#a18c079b3f2f5ab6eecdd61d6dbe93be6">QuaZipNewInfo::uncompressedSize</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qdate.html#year">QDate::year()</a>.</p>
774
775</div>
776</div>
777<a class="anchor" id="a90fd55dab83eca7f95df50b2c41b7f22"></a><!-- doxytag: member="QuaZipFile::pos" ref="a90fd55dab83eca7f95df50b2c41b7f22" args="() const " -->
778<div class="memitem">
779<div class="memproto">
780 <table class="memname">
781 <tr>
782 <td class="memname">qint64 QuaZipFile::pos </td>
783 <td>(</td>
784 <td class="paramname"></td><td>)</td>
785 <td> const<code> [virtual]</code></td>
786 </tr>
787 </table>
788</div>
789<div class="memdoc">
790
791<p>Returns current position in the file. </p>
792<p>Implementation of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#pos">QIODevice::pos()</a>. When reading, this function is a wrapper to the ZIP/UNZIP unztell(), therefore it is unable to keep track of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#ungetChar">ungetChar()</a> calls (which is non-virtual and therefore is dangerous to reimplement). So if you are using <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#ungetChar">ungetChar()</a> feature of the <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html">QIODevice</a>, this function reports incorrect value until you get back characters which you ungot.</p>
793<p>When writing, <a class="el" href="classQuaZipFile.html#a90fd55dab83eca7f95df50b2c41b7f22" title="Returns current position in the file.">pos()</a> returns number of bytes already written (uncompressed unless you use raw mode).</p>
794<dl class="note"><dt><b>Note:</b></dt><dd>Although <a class="el" href="classQuaZipFile.html#quazipfile-sequential">QuaZipFile is a sequential device</a> and therefore <a class="el" href="classQuaZipFile.html#a90fd55dab83eca7f95df50b2c41b7f22" title="Returns current position in the file.">pos()</a> should always return zero, it does not, because it would be misguiding. Keep this in mind.</dd></dl>
795<p>This function returns -1 if the file or archive is not open.</p>
796<p>Error code returned by <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> is not affected by this function call. </p>
797
798<p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#pos">QIODevice</a>.</p>
799
800<p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#bytesAvailable">QIODevice::bytesAvailable()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#openMode">QIODevice::openMode()</a>.</p>
801
802<p>Referenced by <a class="el" href="classQuaZipFile.html#a29fbfb34677f69394ae7c986ffd3a0c1">bytesAvailable()</a>.</p>
803
804</div>
805</div>
806<a class="anchor" id="a1e3f4c3c075da98af426fc167440cfc3"></a><!-- doxytag: member="QuaZipFile::atEnd" ref="a1e3f4c3c075da98af426fc167440cfc3" args="() const " -->
807<div class="memitem">
808<div class="memproto">
809 <table class="memname">
810 <tr>
811 <td class="memname">bool QuaZipFile::atEnd </td>
812 <td>(</td>
813 <td class="paramname"></td><td>)</td>
814 <td> const<code> [virtual]</code></td>
815 </tr>
816 </table>
817</div>
818<div class="memdoc">
819
820<p>Returns <code>true</code> if the end of file was reached. </p>
821<p>This function returns <code>false</code> in the case of error. This means that you called this function on either not open file, or a file in the not open archive or even on a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive.">QuaZipFile</a> instance that does not even have <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> instance associated. Do not do that because there is no means to determine whether <code>false</code> is returned because of error or because end of file was reached. Well, on the other side you may interpret <code>false</code> return value as "there is no file open to check for end of file and there is
822 no end of file therefore".</p>
823<p>When writing, this function always returns <code>true</code> (because you are always writing to the end of file).</p>
824<p>Error code returned by <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> is not affected by this function call. </p>
825
826<p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#atEnd">QIODevice</a>.</p>
827
828<p>References <a class="el" href="classQuaZipFile.html#a29fbfb34677f69394ae7c986ffd3a0c1">bytesAvailable()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#openMode">QIODevice::openMode()</a>.</p>
829
830</div>
831</div>
832<a class="anchor" id="ad1a17cc690a01c3edfb82984c3a4c8f0"></a><!-- doxytag: member="QuaZipFile::size" ref="ad1a17cc690a01c3edfb82984c3a4c8f0" args="() const " -->
833<div class="memitem">
834<div class="memproto">
835 <table class="memname">
836 <tr>
837 <td class="memname">qint64 QuaZipFile::size </td>
838 <td>(</td>
839 <td class="paramname"></td><td>)</td>
840 <td> const<code> [virtual]</code></td>
841 </tr>
842 </table>
843</div>
844<div class="memdoc">
845
846<p>Returns file size. </p>
847<p>This function returns <a class="el" href="classQuaZipFile.html#ac4da08e5cdec368a2a686775f7dc5639" title="Returns compressed file size.">csize()</a> if the file is open for reading in raw mode, <a class="el" href="classQuaZipFile.html#a4814b5e6e39fb254737b81ea10964f50" title="Returns uncompressed file size.">usize()</a> if it is open for reading in normal mode and <a class="el" href="classQuaZipFile.html#a90fd55dab83eca7f95df50b2c41b7f22" title="Returns current position in the file.">pos()</a> if it is open for writing.</p>
848<p>Returns -1 on error, call <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> to get error code.</p>
849<dl class="note"><dt><b>Note:</b></dt><dd>This function returns file size despite that <a class="el" href="classQuaZipFile.html#quazipfile-sequential">QuaZipFile is considered to be sequential device</a>, for which <a class="el" href="classQuaZipFile.html#ad1a17cc690a01c3edfb82984c3a4c8f0" title="Returns file size.">size()</a> should return <a class="el" href="classQuaZipFile.html#a29fbfb34677f69394ae7c986ffd3a0c1" title="Returns the number of bytes available for reading.">bytesAvailable()</a> instead. But its name would be very misguiding otherwise, so just keep in mind this inconsistence. </dd></dl>
850
851<p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#size">QIODevice</a>.</p>
852
853<p>References <a class="el" href="classQuaZipFile.html#ac4da08e5cdec368a2a686775f7dc5639">csize()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#openMode">QIODevice::openMode()</a>, and <a class="el" href="classQuaZipFile.html#a4814b5e6e39fb254737b81ea10964f50">usize()</a>.</p>
854
855<p>Referenced by <a class="el" href="classQuaZipFile.html#a29fbfb34677f69394ae7c986ffd3a0c1">bytesAvailable()</a>.</p>
856
857</div>
858</div>
859<a class="anchor" id="ac4da08e5cdec368a2a686775f7dc5639"></a><!-- doxytag: member="QuaZipFile::csize" ref="ac4da08e5cdec368a2a686775f7dc5639" args="() const " -->
860<div class="memitem">
861<div class="memproto">
862 <table class="memname">
863 <tr>
864 <td class="memname">qint64 QuaZipFile::csize </td>
865 <td>(</td>
866 <td class="paramname"></td><td>)</td>
867 <td> const</td>
868 </tr>
869 </table>
870</div>
871<div class="memdoc">
872
873<p>Returns compressed file size. </p>
874<p>Equivalent to calling <a class="el" href="classQuaZipFile.html#ad3f5807329321be21b12c1ba5798b359" title="Gets information about current file.">getFileInfo()</a> and then getting compressedSize field, but more convenient and faster.</p>
875<p>File must be open for reading before calling this function.</p>
876<p>Returns -1 on error, call <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> to get error code. </p>
877
878<p>References <a class="el" href="classQuaZip.html#a129ceff04d28fb00531f7bf7f9329664">QuaZip::getMode()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, and <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>.</p>
879
880<p>Referenced by <a class="el" href="classQuaZipFile.html#ad1a17cc690a01c3edfb82984c3a4c8f0">size()</a>.</p>
881
882</div>
883</div>
884<a class="anchor" id="a4814b5e6e39fb254737b81ea10964f50"></a><!-- doxytag: member="QuaZipFile::usize" ref="a4814b5e6e39fb254737b81ea10964f50" args="() const " -->
885<div class="memitem">
886<div class="memproto">
887 <table class="memname">
888 <tr>
889 <td class="memname">qint64 QuaZipFile::usize </td>
890 <td>(</td>
891 <td class="paramname"></td><td>)</td>
892 <td> const</td>
893 </tr>
894 </table>
895</div>
896<div class="memdoc">
897
898<p>Returns uncompressed file size. </p>
899<p>Equivalent to calling <a class="el" href="classQuaZipFile.html#ad3f5807329321be21b12c1ba5798b359" title="Gets information about current file.">getFileInfo()</a> and then getting uncompressedSize field, but more convenient and faster. See <a class="el" href="classQuaZipFile.html#ad3f5807329321be21b12c1ba5798b359" title="Gets information about current file.">getFileInfo()</a> for a warning.</p>
900<p>File must be open for reading before calling this function.</p>
901<p>Returns -1 on error, call <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> to get error code. </p>
902
903<p>References <a class="el" href="classQuaZip.html#a129ceff04d28fb00531f7bf7f9329664">QuaZip::getMode()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, and <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>.</p>
904
905<p>Referenced by <a class="el" href="classQuaZipFile.html#ad1a17cc690a01c3edfb82984c3a4c8f0">size()</a>.</p>
906
907</div>
908</div>
909<a class="anchor" id="ad3f5807329321be21b12c1ba5798b359"></a><!-- doxytag: member="QuaZipFile::getFileInfo" ref="ad3f5807329321be21b12c1ba5798b359" args="(QuaZipFileInfo *info)" -->
910<div class="memitem">
911<div class="memproto">
912 <table class="memname">
913 <tr>
914 <td class="memname">bool QuaZipFile::getFileInfo </td>
915 <td>(</td>
916 <td class="paramtype"><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a> *&#160;</td>
917 <td class="paramname"><em>info</em></td><td>)</td>
918 <td></td>
919 </tr>
920 </table>
921</div>
922<div class="memdoc">
923
924<p>Gets information about current file. </p>
925<p>This function does the same thing as calling <a class="el" href="classQuaZip.html#a9c91a53ed4c2038e153c64bdc097ebe8" title="Retrieves information about the current file.">QuaZip::getCurrentFileInfo()</a> on the associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> object, but you can not call getCurrentFileInfo() if the associated <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> is internal (because you do not have access to it), while you still can call this function in that case.</p>
926<p>File must be open for reading before calling this function.</p>
927<dl class="return"><dt><b>Returns:</b></dt><dd><code>false</code> in the case of an error.</dd></dl>
928<p>This function doesn't support zip64, but will still work fine on zip64 archives if file sizes are below 4 GB, otherwise the values will be set as if converted using <a class="el" href="structQuaZipFileInfo64.html#ada29945c7ee4c9df6fbe95864793aade" title="Converts to QuaZipFileInfo.">QuaZipFileInfo64::toQuaZipFileInfo()</a>.</p>
929<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#af35876a5ac6e9c35234275a9e503110d" title="Gets information about current file with zip64 support.">getFileInfo(QuaZipFileInfo64*)</a> </dd></dl>
930
931<p>References <a class="el" href="structQuaZipFileInfo64.html#ada29945c7ee4c9df6fbe95864793aade">QuaZipFileInfo64::toQuaZipFileInfo()</a>.</p>
932
933</div>
934</div>
935<a class="anchor" id="af35876a5ac6e9c35234275a9e503110d"></a><!-- doxytag: member="QuaZipFile::getFileInfo" ref="af35876a5ac6e9c35234275a9e503110d" args="(QuaZipFileInfo64 *info)" -->
936<div class="memitem">
937<div class="memproto">
938 <table class="memname">
939 <tr>
940 <td class="memname">bool QuaZipFile::getFileInfo </td>
941 <td>(</td>
942 <td class="paramtype"><a class="el" href="structQuaZipFileInfo64.html">QuaZipFileInfo64</a> *&#160;</td>
943 <td class="paramname"><em>info</em></td><td>)</td>
944 <td></td>
945 </tr>
946 </table>
947</div>
948<div class="memdoc">
949
950<p>Gets information about current file with zip64 support. </p>
951<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
952<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classQuaZipFile.html#ad3f5807329321be21b12c1ba5798b359" title="Gets information about current file.">getFileInfo(QuaZipFileInfo*)</a> </dd></dl>
953
954<p>References <a class="el" href="classQuaZip.html#a9c91a53ed4c2038e153c64bdc097ebe8">QuaZip::getCurrentFileInfo()</a>, <a class="el" href="classQuaZip.html#a129ceff04d28fb00531f7bf7f9329664">QuaZip::getMode()</a>, <a class="el" href="classQuaZip.html#a28b91a6282ddd9382c96a069572c6fb4">QuaZip::getZipError()</a>, and <a class="el" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>.</p>
955
956</div>
957</div>
958<a class="anchor" id="a42a39b12619bccd3d419ee60bbb3fcf6"></a><!-- doxytag: member="QuaZipFile::close" ref="a42a39b12619bccd3d419ee60bbb3fcf6" args="()" -->
959<div class="memitem">
960<div class="memproto">
961 <table class="memname">
962 <tr>
963 <td class="memname">void QuaZipFile::close </td>
964 <td>(</td>
965 <td class="paramname"></td><td>)</td>
966 <td><code> [virtual]</code></td>
967 </tr>
968 </table>
969</div>
970<div class="memdoc">
971
972<p>Closes the file. </p>
973<p>Call <a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0" title="Returns the error code returned by the last ZIP/UNZIP API call.">getZipError()</a> to determine if the close was successful. </p>
974
975<p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#close">QIODevice</a>.</p>
976
977<p>References <a class="el" href="classQuaZip.html#a7a4323b73e12f3b4470109f200728f9f">QuaZip::close()</a>, <a class="el" href="classQuaZip.html#a3b78a652f296ff4a678a791e8294e642">QuaZip::getUnzFile()</a>, <a class="el" href="classQuaZip.html#a28b91a6282ddd9382c96a069572c6fb4">QuaZip::getZipError()</a>, <a class="el" href="classQuaZip.html#a425043a4d7cc31e2fe2bba73d954f15c">QuaZip::getZipFile()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isOpen">QIODevice::isOpen()</a>, <a class="el" href="classQuaZip.html#a5b869a9c0d4f49955b759592fec08888">QuaZip::isOpen()</a>, <a class="el" href="classQuaZipFile.html#a0df3db94c2a34c8d17ddaa0f54fc32c1">isRaw()</a>, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#openMode">QIODevice::openMode()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#setOpenMode">QIODevice::setOpenMode()</a>.</p>
978
979<p>Referenced by <a class="el" href="classQuaZipFile.html#aa1e5a0cf491bafae6cc73e649caa97fc">~QuaZipFile()</a>.</p>
980
981</div>
982</div>
983<hr/>The documentation for this class was generated from the following files:<ul>
984<li>quazip/<a class="el" href="quazipfile_8h_source.html">quazipfile.h</a></li>
985<li>quazip/quazipfile.cpp</li>
986</ul>
987</div>
988<hr class="footer"/><address class="footer"><small>Generated on Sun Apr 3 2016 08:26:25 for QuaZIP by&#160;
989<a href="http://www.doxygen.org/index.html">
990<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
991</body>
992</html>
Note: See TracBrowser for help on using the repository browser.