[1096] | 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: QuaGzipFile 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 <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 Page</span></a></li>
|
---|
| 26 | <li><a href="pages.html"><span>Related 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 List</span></a></li>
|
---|
| 35 | <li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
---|
| 36 | <li><a href="functions.html"><span>Class 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> |
|
---|
| 43 | <a href="#pro-methods">Protected Member Functions</a> </div>
|
---|
| 44 | <div class="headertitle">
|
---|
| 45 | <div class="title">QuaGzipFile Class Reference</div> </div>
|
---|
| 46 | </div>
|
---|
| 47 | <div class="contents">
|
---|
| 48 | <!-- doxytag: class="QuaGzipFile" --><!-- doxytag: inherits="QIODevice" -->
|
---|
| 49 | <p>GZIP file.
|
---|
| 50 | <a href="classQuaGzipFile.html#details">More...</a></p>
|
---|
| 51 |
|
---|
| 52 | <p><code>#include <<a class="el" href="quagzipfile_8h_source.html">quagzipfile.h</a>></code></p>
|
---|
| 53 | <div class="dynheader">
|
---|
| 54 | Inheritance diagram for QuaGzipFile:</div>
|
---|
| 55 | <div class="dyncontent">
|
---|
| 56 | <div class="center"><img src="classQuaGzipFile__inherit__graph.png" border="0" usemap="#QuaGzipFile_inherit__map" alt="Inheritance graph"/></div>
|
---|
| 57 | <map name="QuaGzipFile_inherit__map" id="QuaGzipFile_inherit__map">
|
---|
| 58 | <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="11,80,93,107"/>
|
---|
| 59 | <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="17,5,87,32"/>
|
---|
| 60 | </map>
|
---|
| 61 | <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
---|
| 62 | <div class="dynheader">
|
---|
| 63 | Collaboration diagram for QuaGzipFile:</div>
|
---|
| 64 | <div class="dyncontent">
|
---|
| 65 | <div class="center"><img src="classQuaGzipFile__coll__graph.png" border="0" usemap="#QuaGzipFile_coll__map" alt="Collaboration graph"/></div>
|
---|
| 66 | <map name="QuaGzipFile_coll__map" id="QuaGzipFile_coll__map">
|
---|
| 67 | <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="11,80,93,107"/>
|
---|
| 68 | <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="17,5,87,32"/>
|
---|
| 69 | </map>
|
---|
| 70 | <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
---|
| 71 |
|
---|
| 72 | <p><a href="classQuaGzipFile-members.html">List of all members.</a></p>
|
---|
| 73 | <table class="memberdecls">
|
---|
| 74 | <tr><td colspan="2"><h2><a name="pub-methods"></a>
|
---|
| 75 | Public Member Functions</h2></td></tr>
|
---|
| 76 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a709608207b41ca81d5beed2b34982809">QuaGzipFile</a> ()</td></tr>
|
---|
| 77 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Empty constructor. <a href="#a709608207b41ca81d5beed2b34982809"></a><br/></td></tr>
|
---|
| 78 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a13996f5db660c4a29645f8d208b9ca6b">QuaGzipFile</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>
|
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Empty constructor with a parent. <a href="#a13996f5db660c4a29645f8d208b9ca6b"></a><br/></td></tr>
|
---|
| 80 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#ac7f7703bda9c6169c001aa15641bb2ea">QuaGzipFile</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> &fileName, <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>
|
---|
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#ac7f7703bda9c6169c001aa15641bb2ea"></a><br/></td></tr>
|
---|
| 82 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1200bc76f36bb2e1991e1e0467befbf2"></a><!-- doxytag: member="QuaGzipFile::~QuaGzipFile" ref="a1200bc76f36bb2e1991e1e0467befbf2" args="()" -->
|
---|
| 83 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a1200bc76f36bb2e1991e1e0467befbf2">~QuaGzipFile</a> ()</td></tr>
|
---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br/></td></tr>
|
---|
| 85 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a253fbaf410a3d4ae0a719505c5525149"></a><!-- doxytag: member="QuaGzipFile::setFileName" ref="a253fbaf410a3d4ae0a719505c5525149" args="(const QString &fileName)" -->
|
---|
| 86 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a253fbaf410a3d4ae0a719505c5525149">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> &fileName)</td></tr>
|
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the name of the GZIP file to be opened. <br/></td></tr>
|
---|
| 88 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a0954a1db1fcf2aeba0530239bce71c"></a><!-- doxytag: member="QuaGzipFile::getFileName" ref="a9a0954a1db1fcf2aeba0530239bce71c" args="() const " -->
|
---|
| 89 | <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a9a0954a1db1fcf2aeba0530239bce71c">getFileName</a> () const </td></tr>
|
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the GZIP file. <br/></td></tr>
|
---|
| 91 | <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#ae97f4e15d86c965c156df33d00318176">isSequential</a> () const </td></tr>
|
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true. <a href="#ae97f4e15d86c965c156df33d00318176"></a><br/></td></tr>
|
---|
| 93 | <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a1d560babdfff3a3441d704099a5bc1e4">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">QIODevice::OpenMode</a> mode)</td></tr>
|
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Opens the file. <a href="#a1d560babdfff3a3441d704099a5bc1e4"></a><br/></td></tr>
|
---|
| 95 | <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#adf5a954bb9bfda2d33cd336a213e2549">open</a> (int fd, <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#OpenModeFlag-enum">QIODevice::OpenMode</a> mode)</td></tr>
|
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Opens the file. <a href="#adf5a954bb9bfda2d33cd336a213e2549"></a><br/></td></tr>
|
---|
| 97 | <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#ab745f345b727c81abbc3eb5af4dca844">flush</a> ()</td></tr>
|
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flushes data to file. <a href="#ab745f345b727c81abbc3eb5af4dca844"></a><br/></td></tr>
|
---|
| 99 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a273205350b1235a242a1eb5cbf586434"></a><!-- doxytag: member="QuaGzipFile::close" ref="a273205350b1235a242a1eb5cbf586434" args="()" -->
|
---|
| 100 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a273205350b1235a242a1eb5cbf586434">close</a> ()</td></tr>
|
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Closes the file. <br/></td></tr>
|
---|
| 102 | <tr><td colspan="2"><h2><a name="pro-methods"></a>
|
---|
| 103 | Protected Member Functions</h2></td></tr>
|
---|
| 104 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9eab41b46367e63e0c269c42ca883d82"></a><!-- doxytag: member="QuaGzipFile::readData" ref="a9eab41b46367e63e0c269c42ca883d82" args="(char *data, qint64 maxSize)" -->
|
---|
| 105 | virtual qint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a9eab41b46367e63e0c269c42ca883d82">readData</a> (char *data, qint64 maxSize)</td></tr>
|
---|
| 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Implementation of <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>
|
---|
| 107 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dd09d41d8a51c96b0f2134eff37f676"></a><!-- doxytag: member="QuaGzipFile::writeData" ref="a6dd09d41d8a51c96b0f2134eff37f676" args="(const char *data, qint64 maxSize)" -->
|
---|
| 108 | virtual qint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaGzipFile.html#a6dd09d41d8a51c96b0f2134eff37f676">writeData</a> (const char *data, qint64 maxSize)</td></tr>
|
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Implementation of <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>
|
---|
| 110 | </table>
|
---|
| 111 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
---|
| 112 | <div class="textblock"><p>GZIP file. </p>
|
---|
| 113 | <p>This class is a wrapper around GZIP file access functions in zlib. Unlike <a class="el" href="classQuaZip.html" title="ZIP archive.">QuaZip</a> classes, it doesn't allow reading from a GZIP file opened as <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html">QIODevice</a>, for example, if your GZIP file is in <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbuffer.html">QBuffer</a>. It only provides <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html">QIODevice</a> access to a GZIP file contents, but the GZIP file itself must be identified by its name on disk or by descriptor id. </p>
|
---|
| 114 | </div><hr/><h2>Constructor & Destructor Documentation</h2>
|
---|
| 115 | <a class="anchor" id="a709608207b41ca81d5beed2b34982809"></a><!-- doxytag: member="QuaGzipFile::QuaGzipFile" ref="a709608207b41ca81d5beed2b34982809" args="()" -->
|
---|
| 116 | <div class="memitem">
|
---|
| 117 | <div class="memproto">
|
---|
| 118 | <table class="memname">
|
---|
| 119 | <tr>
|
---|
| 120 | <td class="memname">QuaGzipFile::QuaGzipFile </td>
|
---|
| 121 | <td>(</td>
|
---|
| 122 | <td class="paramname"></td><td>)</td>
|
---|
| 123 | <td></td>
|
---|
| 124 | </tr>
|
---|
| 125 | </table>
|
---|
| 126 | </div>
|
---|
| 127 | <div class="memdoc">
|
---|
| 128 |
|
---|
| 129 | <p>Empty constructor. </p>
|
---|
| 130 | <p>Must call <a class="el" href="classQuaGzipFile.html#a253fbaf410a3d4ae0a719505c5525149" title="Sets the name of the GZIP file to be opened.">setFileName()</a> before trying to open. </p>
|
---|
| 131 |
|
---|
| 132 | </div>
|
---|
| 133 | </div>
|
---|
| 134 | <a class="anchor" id="a13996f5db660c4a29645f8d208b9ca6b"></a><!-- doxytag: member="QuaGzipFile::QuaGzipFile" ref="a13996f5db660c4a29645f8d208b9ca6b" args="(QObject *parent)" -->
|
---|
| 135 | <div class="memitem">
|
---|
| 136 | <div class="memproto">
|
---|
| 137 | <table class="memname">
|
---|
| 138 | <tr>
|
---|
| 139 | <td class="memname">QuaGzipFile::QuaGzipFile </td>
|
---|
| 140 | <td>(</td>
|
---|
| 141 | <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> * </td>
|
---|
| 142 | <td class="paramname"><em>parent</em></td><td>)</td>
|
---|
| 143 | <td></td>
|
---|
| 144 | </tr>
|
---|
| 145 | </table>
|
---|
| 146 | </div>
|
---|
| 147 | <div class="memdoc">
|
---|
| 148 |
|
---|
| 149 | <p>Empty constructor with a parent. </p>
|
---|
| 150 | <p>Must call <a class="el" href="classQuaGzipFile.html#a253fbaf410a3d4ae0a719505c5525149" title="Sets the name of the GZIP file to be opened.">setFileName()</a> before trying to open. </p>
|
---|
| 151 | <dl><dt><b>Parameters:</b></dt><dd>
|
---|
| 152 | <table class="params">
|
---|
| 153 | <tr><td class="paramname">parent</td><td>The parent object, as per <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> logic. </td></tr>
|
---|
| 154 | </table>
|
---|
| 155 | </dd>
|
---|
| 156 | </dl>
|
---|
| 157 |
|
---|
| 158 | </div>
|
---|
| 159 | </div>
|
---|
| 160 | <a class="anchor" id="ac7f7703bda9c6169c001aa15641bb2ea"></a><!-- doxytag: member="QuaGzipFile::QuaGzipFile" ref="ac7f7703bda9c6169c001aa15641bb2ea" args="(const QString &fileName, QObject *parent=NULL)" -->
|
---|
| 161 | <div class="memitem">
|
---|
| 162 | <div class="memproto">
|
---|
| 163 | <table class="memname">
|
---|
| 164 | <tr>
|
---|
| 165 | <td class="memname">QuaGzipFile::QuaGzipFile </td>
|
---|
| 166 | <td>(</td>
|
---|
| 167 | <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> & </td>
|
---|
| 168 | <td class="paramname"><em>fileName</em>, </td>
|
---|
| 169 | </tr>
|
---|
| 170 | <tr>
|
---|
| 171 | <td class="paramkey"></td>
|
---|
| 172 | <td></td>
|
---|
| 173 | <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> * </td>
|
---|
| 174 | <td class="paramname"><em>parent</em> = <code>NULL</code> </td>
|
---|
| 175 | </tr>
|
---|
| 176 | <tr>
|
---|
| 177 | <td></td>
|
---|
| 178 | <td>)</td>
|
---|
| 179 | <td></td><td></td>
|
---|
| 180 | </tr>
|
---|
| 181 | </table>
|
---|
| 182 | </div>
|
---|
| 183 | <div class="memdoc">
|
---|
| 184 |
|
---|
| 185 | <p>Constructor. </p>
|
---|
| 186 | <dl><dt><b>Parameters:</b></dt><dd>
|
---|
| 187 | <table class="params">
|
---|
| 188 | <tr><td class="paramname">fileName</td><td>The name of the GZIP file. </td></tr>
|
---|
| 189 | <tr><td class="paramname">parent</td><td>The parent object, as per <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qobject.html">QObject</a> logic. </td></tr>
|
---|
| 190 | </table>
|
---|
| 191 | </dd>
|
---|
| 192 | </dl>
|
---|
| 193 |
|
---|
| 194 | </div>
|
---|
| 195 | </div>
|
---|
| 196 | <hr/><h2>Member Function Documentation</h2>
|
---|
| 197 | <a class="anchor" id="ae97f4e15d86c965c156df33d00318176"></a><!-- doxytag: member="QuaGzipFile::isSequential" ref="ae97f4e15d86c965c156df33d00318176" args="() const " -->
|
---|
| 198 | <div class="memitem">
|
---|
| 199 | <div class="memproto">
|
---|
| 200 | <table class="memname">
|
---|
| 201 | <tr>
|
---|
| 202 | <td class="memname">bool QuaGzipFile::isSequential </td>
|
---|
| 203 | <td>(</td>
|
---|
| 204 | <td class="paramname"></td><td>)</td>
|
---|
| 205 | <td> const<code> [virtual]</code></td>
|
---|
| 206 | </tr>
|
---|
| 207 | </table>
|
---|
| 208 | </div>
|
---|
| 209 | <div class="memdoc">
|
---|
| 210 |
|
---|
| 211 | <p>Returns true. </p>
|
---|
| 212 | <p>Strictly speaking, zlib supports seeking for GZIP files, but it is poorly implemented, because there is no way to implement it properly. For reading, seeking backwards is very slow, and for writing, it is downright impossible. Therefore, <a class="el" href="classQuaGzipFile.html" title="GZIP file.">QuaGzipFile</a> does not support seeking at all. </p>
|
---|
| 213 |
|
---|
| 214 | <p>Reimplemented from <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#isSequential">QIODevice</a>.</p>
|
---|
| 215 |
|
---|
| 216 | </div>
|
---|
| 217 | </div>
|
---|
| 218 | <a class="anchor" id="a1d560babdfff3a3441d704099a5bc1e4"></a><!-- doxytag: member="QuaGzipFile::open" ref="a1d560babdfff3a3441d704099a5bc1e4" args="(QIODevice::OpenMode mode)" -->
|
---|
| 219 | <div class="memitem">
|
---|
| 220 | <div class="memproto">
|
---|
| 221 | <table class="memname">
|
---|
| 222 | <tr>
|
---|
| 223 | <td class="memname">bool QuaGzipFile::open </td>
|
---|
| 224 | <td>(</td>
|
---|
| 225 | <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">QIODevice::OpenMode</a> </td>
|
---|
| 226 | <td class="paramname"><em>mode</em></td><td>)</td>
|
---|
| 227 | <td><code> [virtual]</code></td>
|
---|
| 228 | </tr>
|
---|
| 229 | </table>
|
---|
| 230 | </div>
|
---|
| 231 | <div class="memdoc">
|
---|
| 232 |
|
---|
| 233 | <p>Opens the file. </p>
|
---|
| 234 | <dl><dt><b>Parameters:</b></dt><dd>
|
---|
| 235 | <table class="params">
|
---|
| 236 | <tr><td class="paramname">mode</td><td>Can be either QIODevice::Write or QIODevice::Read. ReadWrite and Append aren't supported. </td></tr>
|
---|
| 237 | </table>
|
---|
| 238 | </dd>
|
---|
| 239 | </dl>
|
---|
| 240 |
|
---|
| 241 | <p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#setErrorString">QIODevice::setErrorString()</a>.</p>
|
---|
| 242 |
|
---|
| 243 | <p>Referenced by <a class="el" href="classQuaGzipFile.html#adf5a954bb9bfda2d33cd336a213e2549">open()</a>.</p>
|
---|
| 244 |
|
---|
| 245 | </div>
|
---|
| 246 | </div>
|
---|
| 247 | <a class="anchor" id="adf5a954bb9bfda2d33cd336a213e2549"></a><!-- doxytag: member="QuaGzipFile::open" ref="adf5a954bb9bfda2d33cd336a213e2549" args="(int fd, QIODevice::OpenMode mode)" -->
|
---|
| 248 | <div class="memitem">
|
---|
| 249 | <div class="memproto">
|
---|
| 250 | <table class="memname">
|
---|
| 251 | <tr>
|
---|
| 252 | <td class="memname">bool QuaGzipFile::open </td>
|
---|
| 253 | <td>(</td>
|
---|
| 254 | <td class="paramtype">int </td>
|
---|
| 255 | <td class="paramname"><em>fd</em>, </td>
|
---|
| 256 | </tr>
|
---|
| 257 | <tr>
|
---|
| 258 | <td class="paramkey"></td>
|
---|
| 259 | <td></td>
|
---|
| 260 | <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">QIODevice::OpenMode</a> </td>
|
---|
| 261 | <td class="paramname"><em>mode</em> </td>
|
---|
| 262 | </tr>
|
---|
| 263 | <tr>
|
---|
| 264 | <td></td>
|
---|
| 265 | <td>)</td>
|
---|
| 266 | <td></td><td><code> [virtual]</code></td>
|
---|
| 267 | </tr>
|
---|
| 268 | </table>
|
---|
| 269 | </div>
|
---|
| 270 | <div class="memdoc">
|
---|
| 271 |
|
---|
| 272 | <p>Opens the file. </p>
|
---|
| 273 | <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
|
---|
| 274 | <dl><dt><b>Parameters:</b></dt><dd>
|
---|
| 275 | <table class="params">
|
---|
| 276 | <tr><td class="paramname">fd</td><td>The file descriptor to read/write the GZIP file from/to. </td></tr>
|
---|
| 277 | <tr><td class="paramname">mode</td><td>Can be either QIODevice::Write or QIODevice::Read. ReadWrite and Append aren't supported. </td></tr>
|
---|
| 278 | </table>
|
---|
| 279 | </dd>
|
---|
| 280 | </dl>
|
---|
| 281 |
|
---|
| 282 | <p>References <a class="el" href="classQuaGzipFile.html#a1d560babdfff3a3441d704099a5bc1e4">open()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qiodevice.html#setErrorString">QIODevice::setErrorString()</a>.</p>
|
---|
| 283 |
|
---|
| 284 | </div>
|
---|
| 285 | </div>
|
---|
| 286 | <a class="anchor" id="ab745f345b727c81abbc3eb5af4dca844"></a><!-- doxytag: member="QuaGzipFile::flush" ref="ab745f345b727c81abbc3eb5af4dca844" args="()" -->
|
---|
| 287 | <div class="memitem">
|
---|
| 288 | <div class="memproto">
|
---|
| 289 | <table class="memname">
|
---|
| 290 | <tr>
|
---|
| 291 | <td class="memname">bool QuaGzipFile::flush </td>
|
---|
| 292 | <td>(</td>
|
---|
| 293 | <td class="paramname"></td><td>)</td>
|
---|
| 294 | <td><code> [virtual]</code></td>
|
---|
| 295 | </tr>
|
---|
| 296 | </table>
|
---|
| 297 | </div>
|
---|
| 298 | <div class="memdoc">
|
---|
| 299 |
|
---|
| 300 | <p>Flushes data to file. </p>
|
---|
| 301 | <p>The data is written using Z_SYNC_FLUSH mode. Doesn't make any sense when reading. </p>
|
---|
| 302 |
|
---|
| 303 | </div>
|
---|
| 304 | </div>
|
---|
| 305 | <hr/>The documentation for this class was generated from the following files:<ul>
|
---|
| 306 | <li>quazip/<a class="el" href="quagzipfile_8h_source.html">quagzipfile.h</a></li>
|
---|
| 307 | <li>quazip/quagzipfile.cpp</li>
|
---|
| 308 | </ul>
|
---|
| 309 | </div>
|
---|
| 310 | <hr class="footer"/><address class="footer"><small>Generated on Sun Apr 3 2016 08:26:25 for QuaZIP by 
|
---|
| 311 | <a href="http://www.doxygen.org/index.html">
|
---|
| 312 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
|
---|
| 313 | </body>
|
---|
| 314 | </html>
|
---|