Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release > by-pkgid > 004fd8e0018ea6f0df74e9703299ee08 > files > 116

fgx-2.8.0-8.mga6.armv5tl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>FGx: QuaZipFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FGx
   &#160;<span id="projectnumber">1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classQuaZipFile-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QuaZipFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A file inside ZIP archive.  
 <a href="classQuaZipFile.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="quazipfile_8h_source.html">quazip/quazipfile.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for QuaZipFile:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classQuaZipFile.png" usemap="#QuaZipFile_map" alt=""/>
  <map id="QuaZipFile_map" name="QuaZipFile_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad31592e0e8a9eaa009c6c0e2040a2158"><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>
<tr class="memdesc:ad31592e0e8a9eaa009c6c0e2040a2158"><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">More...</a><br /></td></tr>
<tr class="separator:ad31592e0e8a9eaa009c6c0e2040a2158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1349ad27f1947bc3e346d83dbf9586c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a1349ad27f1947bc3e346d83dbf9586c4">QuaZipFile</a> (QObject *parent)</td></tr>
<tr class="memdesc:a1349ad27f1947bc3e346d83dbf9586c4"><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">More...</a><br /></td></tr>
<tr class="separator:a1349ad27f1947bc3e346d83dbf9586c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae614495d6b2404a6c59d7cfca5c3f6fd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ae614495d6b2404a6c59d7cfca5c3f6fd">QuaZipFile</a> (const QString &amp;zipName, QObject *parent=NULL)</td></tr>
<tr class="memdesc:ae614495d6b2404a6c59d7cfca5c3f6fd"><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">More...</a><br /></td></tr>
<tr class="separator:ae614495d6b2404a6c59d7cfca5c3f6fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6e883b5a5d3a58c9c56eb497dd91220"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#ac6e883b5a5d3a58c9c56eb497dd91220">QuaZipFile</a> (const QString &amp;zipName, const QString &amp;fileName, <a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> cs=<a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbeac3cca8c0b976cf6397a28a5c84e75253">QuaZip::csDefault</a>, QObject *parent=NULL)</td></tr>
<tr class="memdesc:ac6e883b5a5d3a58c9c56eb497dd91220"><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">More...</a><br /></td></tr>
<tr class="separator:ac6e883b5a5d3a58c9c56eb497dd91220"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e944a6b3d27030f64c8f30d2cc33bb"><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, QObject *parent=NULL)</td></tr>
<tr class="memdesc:a54e944a6b3d27030f64c8f30d2cc33bb"><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">More...</a><br /></td></tr>
<tr class="separator:a54e944a6b3d27030f64c8f30d2cc33bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e5a0cf491bafae6cc73e649caa97fc"><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>
<tr class="memdesc:aa1e5a0cf491bafae6cc73e649caa97fc"><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">More...</a><br /></td></tr>
<tr class="separator:aa1e5a0cf491bafae6cc73e649caa97fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f034a714aa94631367590de3f8f4e22"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a6f034a714aa94631367590de3f8f4e22">getZipName</a> () const </td></tr>
<tr class="memdesc:a6f034a714aa94631367590de3f8f4e22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the ZIP archive file name.  <a href="#a6f034a714aa94631367590de3f8f4e22">More...</a><br /></td></tr>
<tr class="separator:a6f034a714aa94631367590de3f8f4e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abba38eaa52178120ee1f840c86026637"><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#abba38eaa52178120ee1f840c86026637">getZip</a> () const </td></tr>
<tr class="memdesc:abba38eaa52178120ee1f840c86026637"><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="#abba38eaa52178120ee1f840c86026637">More...</a><br /></td></tr>
<tr class="separator:abba38eaa52178120ee1f840c86026637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6999362e70a5b2396fba5cfb30095ff9"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9">getFileName</a> () const </td></tr>
<tr class="memdesc:a6999362e70a5b2396fba5cfb30095ff9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns file name.  <a href="#a6999362e70a5b2396fba5cfb30095ff9">More...</a><br /></td></tr>
<tr class="separator:a6999362e70a5b2396fba5cfb30095ff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25dbfddc589bf6b69b39905f3c3bcc73"><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>
<tr class="memdesc:a25dbfddc589bf6b69b39905f3c3bcc73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns case sensitivity of the file name.  <a href="#a25dbfddc589bf6b69b39905f3c3bcc73">More...</a><br /></td></tr>
<tr class="separator:a25dbfddc589bf6b69b39905f3c3bcc73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8e3c39026855cd98661a1b2815c220"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a7b8e3c39026855cd98661a1b2815c220">getActualFileName</a> () const </td></tr>
<tr class="memdesc:a7b8e3c39026855cd98661a1b2815c220"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the actual file name in the archive.  <a href="#a7b8e3c39026855cd98661a1b2815c220">More...</a><br /></td></tr>
<tr class="separator:a7b8e3c39026855cd98661a1b2815c220"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8109e9a5c19bea75982ff6986b5cb1e"><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 QString &amp;zipName)</td></tr>
<tr class="memdesc:ac8109e9a5c19bea75982ff6986b5cb1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the ZIP archive file name.  <a href="#ac8109e9a5c19bea75982ff6986b5cb1e">More...</a><br /></td></tr>
<tr class="separator:ac8109e9a5c19bea75982ff6986b5cb1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0df3db94c2a34c8d17ddaa0f54fc32c1"><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>
<tr class="memdesc:a0df3db94c2a34c8d17ddaa0f54fc32c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the file was opened in raw mode.  <a href="#a0df3db94c2a34c8d17ddaa0f54fc32c1">More...</a><br /></td></tr>
<tr class="separator:a0df3db94c2a34c8d17ddaa0f54fc32c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7939a26d1e8de2f6aca54f49a12b980"><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>
<tr class="memdesc:ab7939a26d1e8de2f6aca54f49a12b980"><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">More...</a><br /></td></tr>
<tr class="separator:ab7939a26d1e8de2f6aca54f49a12b980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3732ca7704379d457b6a27db8837de95"><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 QString &amp;fileName, <a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> cs=<a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbeac3cca8c0b976cf6397a28a5c84e75253">QuaZip::csDefault</a>)</td></tr>
<tr class="memdesc:a3732ca7704379d457b6a27db8837de95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the file name.  <a href="#a3732ca7704379d457b6a27db8837de95">More...</a><br /></td></tr>
<tr class="separator:a3732ca7704379d457b6a27db8837de95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c20c0ef00ae79c9a59eafe2906c9384"><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> (OpenMode mode)</td></tr>
<tr class="memdesc:a4c20c0ef00ae79c9a59eafe2906c9384"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading.  <a href="#a4c20c0ef00ae79c9a59eafe2906c9384">More...</a><br /></td></tr>
<tr class="separator:a4c20c0ef00ae79c9a59eafe2906c9384"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bff0d15bbcd70306dc4a553a55776b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a0bff0d15bbcd70306dc4a553a55776b9">open</a> (OpenMode mode, const char *password)</td></tr>
<tr class="memdesc:a0bff0d15bbcd70306dc4a553a55776b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading.  <a href="#a0bff0d15bbcd70306dc4a553a55776b9">More...</a><br /></td></tr>
<tr class="separator:a0bff0d15bbcd70306dc4a553a55776b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed75bace51f2bb4c3e4f656ab4493aac"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#aed75bace51f2bb4c3e4f656ab4493aac">open</a> (OpenMode mode, int *method, int *level, bool raw, const char *password=NULL)</td></tr>
<tr class="memdesc:aed75bace51f2bb4c3e4f656ab4493aac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for reading.  <a href="#aed75bace51f2bb4c3e4f656ab4493aac">More...</a><br /></td></tr>
<tr class="separator:aed75bace51f2bb4c3e4f656ab4493aac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2429ea59c77371d7af56d739db130b18"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a2429ea59c77371d7af56d739db130b18">open</a> (OpenMode 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>
<tr class="memdesc:a2429ea59c77371d7af56d739db130b18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a file for writing.  <a href="#a2429ea59c77371d7af56d739db130b18">More...</a><br /></td></tr>
<tr class="separator:a2429ea59c77371d7af56d739db130b18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64430ec50820c8096f963a7e5f53001f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64430ec50820c8096f963a7e5f53001f"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a64430ec50820c8096f963a7e5f53001f">isSequential</a> () const </td></tr>
<tr class="memdesc:a64430ec50820c8096f963a7e5f53001f"><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>
<tr class="separator:a64430ec50820c8096f963a7e5f53001f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90fd55dab83eca7f95df50b2c41b7f22"><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>
<tr class="memdesc:a90fd55dab83eca7f95df50b2c41b7f22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns current position in the file.  <a href="#a90fd55dab83eca7f95df50b2c41b7f22">More...</a><br /></td></tr>
<tr class="separator:a90fd55dab83eca7f95df50b2c41b7f22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e3f4c3c075da98af426fc167440cfc3"><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>
<tr class="memdesc:a1e3f4c3c075da98af426fc167440cfc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the end of file was reached.  <a href="#a1e3f4c3c075da98af426fc167440cfc3">More...</a><br /></td></tr>
<tr class="separator:a1e3f4c3c075da98af426fc167440cfc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1a17cc690a01c3edfb82984c3a4c8f0"><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>
<tr class="memdesc:ad1a17cc690a01c3edfb82984c3a4c8f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns file size.  <a href="#ad1a17cc690a01c3edfb82984c3a4c8f0">More...</a><br /></td></tr>
<tr class="separator:ad1a17cc690a01c3edfb82984c3a4c8f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4da08e5cdec368a2a686775f7dc5639"><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>
<tr class="memdesc:ac4da08e5cdec368a2a686775f7dc5639"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compressed file size.  <a href="#ac4da08e5cdec368a2a686775f7dc5639">More...</a><br /></td></tr>
<tr class="separator:ac4da08e5cdec368a2a686775f7dc5639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4814b5e6e39fb254737b81ea10964f50"><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>
<tr class="memdesc:a4814b5e6e39fb254737b81ea10964f50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns uncompressed file size.  <a href="#a4814b5e6e39fb254737b81ea10964f50">More...</a><br /></td></tr>
<tr class="separator:a4814b5e6e39fb254737b81ea10964f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3f5807329321be21b12c1ba5798b359"><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>
<tr class="memdesc:ad3f5807329321be21b12c1ba5798b359"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets information about current file.  <a href="#ad3f5807329321be21b12c1ba5798b359">More...</a><br /></td></tr>
<tr class="separator:ad3f5807329321be21b12c1ba5798b359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42a39b12619bccd3d419ee60bbb3fcf6"><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>
<tr class="memdesc:a42a39b12619bccd3d419ee60bbb3fcf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the file.  <a href="#a42a39b12619bccd3d419ee60bbb3fcf6">More...</a><br /></td></tr>
<tr class="separator:a42a39b12619bccd3d419ee60bbb3fcf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26d2ee56aad947193b73052f80597ef0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26d2ee56aad947193b73052f80597ef0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#a26d2ee56aad947193b73052f80597ef0">getZipError</a> () const </td></tr>
<tr class="memdesc:a26d2ee56aad947193b73052f80597ef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the error code returned by the last ZIP/UNZIP API call. <br /></td></tr>
<tr class="separator:a26d2ee56aad947193b73052f80597ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aa1f2274e1579327855a17d67a9046ec2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1f2274e1579327855a17d67a9046ec2"></a>
qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#aa1f2274e1579327855a17d67a9046ec2">readData</a> (char *data, qint64 maxSize)</td></tr>
<tr class="memdesc:aa1f2274e1579327855a17d67a9046ec2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of the QIODevice::readData(). <br /></td></tr>
<tr class="separator:aa1f2274e1579327855a17d67a9046ec2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd07949a6fcc2ef094d2be5398bc8e7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd07949a6fcc2ef094d2be5398bc8e7c"></a>
qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaZipFile.html#abd07949a6fcc2ef094d2be5398bc8e7c">writeData</a> (const char *data, qint64 maxSize)</td></tr>
<tr class="memdesc:abd07949a6fcc2ef094d2be5398bc8e7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implementation of the QIODevice::writeData(). <br /></td></tr>
<tr class="separator:abd07949a6fcc2ef094d2be5398bc8e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:abeded291f2788ca39fe2256d78f95266"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abeded291f2788ca39fe2256d78f95266"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>QuaZipFilePrivate</b></td></tr>
<tr class="separator:abeded291f2788ca39fe2256d78f95266"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A file inside ZIP archive. </p>
<p>This is the most interesting class. Not only it provides C++ interface to the ZIP/UNZIP package, but also integrates it with Qt by subclassing QIODevice. This makes possible to access files inside ZIP archive using QTextStream or QDataStream, for example. Actually, this is the main purpose of the whole QuaZIP library.</p>
<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>
<h1><a class="anchor" id="quazipfile-sequential"></a>
Sequential or random-access?</h1>
<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 seek() operation and the only way to implement it is through reopening the file and re-reading to the required position, but this is prohibitely slow.</p>
<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 ungetChar() operation (QIODevice does not implement it properly for non-sequential devices unless they support seek()). 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>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad31592e0e8a9eaa009c6c0e2040a2158"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::QuaZipFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<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>

</div>
</div>
<a class="anchor" id="a1349ad27f1947bc3e346d83dbf9586c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::QuaZipFile </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<p><em>parent</em> argument specifies this object's parent object.</p>
<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>

</div>
</div>
<a class="anchor" id="ae614495d6b2404a6c59d7cfca5c3f6fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::QuaZipFile </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>zipName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<p><em>parent</em> argument specifies this object's parent object and <em>zipName</em> specifies ZIP archive file name.</p>
<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>
<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>

</div>
</div>
<a class="anchor" id="ac6e883b5a5d3a58c9c56eb497dd91220"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::QuaZipFile </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>zipName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a>&#160;</td>
          <td class="paramname"><em>cs</em> = <code><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbeac3cca8c0b976cf6397a28a5c84e75253">QuaZip::csDefault</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<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>
<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>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899" title="Sets current file by its name. ">QuaZip::setCurrentFile()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a54e944a6b3d27030f64c8f30d2cc33bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::QuaZipFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classQuaZip.html">QuaZip</a> *&#160;</td>
          <td class="paramname"><em>zip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<p><em>parent</em> argument specifies this object's parent object.</p>
<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>
<dl class="section warning"><dt>Warning</dt><dd>Using this constructor for reading current file can be tricky. Let's take the following example: <div class="fragment"><div class="line"><a class="code" href="classQuaZip.html">QuaZip</a> zip(<span class="stringliteral">&quot;archive.zip&quot;</span>);</div><div class="line">zip.open(<a class="code" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>);</div><div class="line">zip.setCurrentFile(<span class="stringliteral">&quot;file-in-archive&quot;</span>);</div><div class="line"><a class="code" href="classQuaZipFile.html">QuaZipFile</a> file(&amp;zip);</div><div class="line">file.open(QIODevice::ReadOnly);</div><div class="line"><span class="comment">// ok, now we can read from the file</span></div><div class="line">file.read(somewhere, some);</div><div class="line">zip.setCurrentFile(<span class="stringliteral">&quot;another-file-in-archive&quot;</span>); <span class="comment">// oops...</span></div><div class="line"><a class="code" href="classQuaZipFile.html">QuaZipFile</a> anotherFile(&amp;zip);</div><div class="line">anotherFile.open(QIODevice::ReadOnly);</div><div class="line">anotherFile.read(somewhere, some); <span class="comment">// this is still ok...</span></div><div class="line">file.read(somewhere, some); <span class="comment">// and this is NOT</span></div></div><!-- fragment --> 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>
<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><div class="fragment"><div class="line"><a class="code" href="classQuaZip.html">QuaZip</a> zip(<span class="stringliteral">&quot;archive.zip&quot;</span>);</div><div class="line">zip.open(<a class="code" href="classQuaZip.html#a47e28d4116ee716fdd6b431b821d0be4a803a371910c2dc830d111e9ce5b58897">QuaZip::mdUnzip</a>);</div><div class="line"><span class="comment">// first, we need some information about archive itself</span></div><div class="line">QByteArray comment=zip.getComment();</div><div class="line"><span class="comment">// and now we are going to access files inside it</span></div><div class="line"><a class="code" href="classQuaZipFile.html">QuaZipFile</a> file(&amp;zip);</div><div class="line"><span class="keywordflow">for</span>(<span class="keywordtype">bool</span> more=zip.goToFirstFile(); more; more=zip.goToNextFile()) {</div><div class="line">  file.open(QIODevice::ReadOnly);</div><div class="line">  <span class="comment">// do something cool with file here</span></div><div class="line">  file.close(); <span class="comment">// do not forget to close!</span></div><div class="line">}</div><div class="line">zip.close();</div></div><!-- fragment --> 
</div>
</div>
<a class="anchor" id="aa1e5a0cf491bafae6cc73e649caa97fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QuaZipFile::~QuaZipFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destroys a <a class="el" href="classQuaZipFile.html" title="A file inside ZIP archive. ">QuaZipFile</a> instance. </p>
<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>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1e3f4c3c075da98af426fc167440cfc3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::atEnd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns <code>true</code> if the end of file was reached. </p>
<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
no end of file therefore".</p>
<p>When writing, this function always returns <code>true</code> (because you are always writing to the end of file).</p>
<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>

</div>
</div>
<a class="anchor" id="a42a39b12619bccd3d419ee60bbb3fcf6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QuaZipFile::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Closes the file. </p>
<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>

</div>
</div>
<a class="anchor" id="ac4da08e5cdec368a2a686775f7dc5639"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QuaZipFile::csize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compressed file size. </p>
<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>
<p>File must be open for reading before calling this function.</p>
<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>

</div>
</div>
<a class="anchor" id="a7b8e3c39026855cd98661a1b2815c220"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QuaZipFile::getActualFileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the actual file name in the archive. </p>
<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>
<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><div class="fragment"><div class="line"><a class="code" href="classQuaZipFile.html">QuaZipFile</a> file(<span class="stringliteral">&quot;somezip.zip&quot;</span>);</div><div class="line">file.setFileName(<span class="stringliteral">&quot;somefile&quot;</span>);</div><div class="line">QString name=file.getName(); <span class="comment">// name==&quot;somefile&quot;</span></div><div class="line">QString actual=file.getActualFileName(); <span class="comment">// actual is null string</span></div><div class="line">file.open(QIODevice::ReadOnly);</div><div class="line">QString actual=file.getActualFileName(); <span class="comment">// actual can be &quot;SoMeFiLe&quot; on Windows</span></div></div><!-- fragment --><dl class="section see"><dt>See also</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>

</div>
</div>
<a class="anchor" id="a25dbfddc589bf6b69b39905f3c3bcc73"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a> QuaZipFile::getCaseSensitivity </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns case sensitivity of the file name. </p>
<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>
<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>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQuaZipFile.html#a6999362e70a5b2396fba5cfb30095ff9" title="Returns file name. ">getFileName</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad3f5807329321be21b12c1ba5798b359"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::getFileInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a> *&#160;</td>
          <td class="paramname"><em>info</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets information about current file. </p>
<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>
<p>File must be open for reading before calling this function.</p>
<p>Returns <code>false</code> in the case of an error. </p>

</div>
</div>
<a class="anchor" id="a6999362e70a5b2396fba5cfb30095ff9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QuaZipFile::getFileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns file name. </p>
<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>
<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>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQuaZipFile.html#a7b8e3c39026855cd98661a1b2815c220" title="Returns the actual file name in the archive. ">getActualFileName</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abba38eaa52178120ee1f840c86026637"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classQuaZip.html">QuaZip</a>* QuaZipFile::getZip </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a pointer to the associated <a class="el" href="classQuaZip.html" title="ZIP archive. ">QuaZip</a> object. </p>
<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>

</div>
</div>
<a class="anchor" id="a6f034a714aa94631367590de3f8f4e22"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QuaZipFile::getZipName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the ZIP archive file name. </p>
<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 <a class="el" href="classQuaZip.html" title="ZIP archive. ">QuaZip</a>'s file name (or null string if that object does not have file name yet).</p>
<p>Otherwise, returns associated ZIP archive file name or null string if there are no name set yet.</p>
<dl class="section see"><dt>See also</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>

</div>
</div>
<a class="anchor" id="a0df3db94c2a34c8d17ddaa0f54fc32c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::isRaw </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns <code>true</code> if the file was opened in raw mode. </p>
<p>If the file is not open, the returned value is undefined.</p>
<dl class="section see"><dt>See also</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>

</div>
</div>
<a class="anchor" id="a4c20c0ef00ae79c9a59eafe2906c9384"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::open </td>
          <td>(</td>
          <td class="paramtype">OpenMode&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Opens a file for reading. </p>
<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>
<dl class="section note"><dt>Note</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>

</div>
</div>
<a class="anchor" id="a0bff0d15bbcd70306dc4a553a55776b9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::open </td>
          <td>(</td>
          <td class="paramtype">OpenMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>password</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Opens a file for reading. </p>
<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>

</div>
</div>
<a class="anchor" id="aed75bace51f2bb4c3e4f656ab4493aac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::open </td>
          <td>(</td>
          <td class="paramtype">OpenMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>method</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>password</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens a file for reading. </p>
<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>
<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>
<p>If raw is <code>true</code> then no decompression is performed.</p>
<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>

</div>
</div>
<a class="anchor" id="a2429ea59c77371d7af56d739db130b18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QuaZipFile::open </td>
          <td>(</td>
          <td class="paramtype">OpenMode&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structQuaZipNewInfo.html">QuaZipNewInfo</a> &amp;&#160;</td>
          <td class="paramname"><em>info</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>password</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">quint32&#160;</td>
          <td class="paramname"><em>crc</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>method</em> = <code>Z_DEFLATED</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>level</em> = <code>Z_DEFAULT_COMPRESSION</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>raw</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>windowBits</em> = <code>-MAX_WBITS</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>memLevel</em> = <code>DEF_MEM_LEVEL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>strategy</em> = <code>Z_DEFAULT_STRATEGY</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Opens a file for writing. </p>
<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>
<p>Arguments <em>password</em> and <em>crc</em> provide necessary information for crypting. Note that you should specify both of them if you need crypting. If you do not, pass <code>NULL</code> as password, but you still need to specify <em>crc</em> if you are going to use raw mode (see below).</p>
<p>Arguments <em>method</em> and <em>level</em> specify compression method and level.</p>
<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>
<p>Arguments <em>windowBits</em>, <em>memLevel</em>, <em>strategy</em> provide zlib algorithms tuning. See deflateInit2() in zlib. </p>

</div>
</div>
<a class="anchor" id="a90fd55dab83eca7f95df50b2c41b7f22"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QuaZipFile::pos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns current position in the file. </p>
<p>Implementation of the QIODevice::pos(). When reading, this function is a wrapper to the ZIP/UNZIP unztell(), therefore it is unable to keep track of the ungetChar() calls (which is non-virtual and therefore is dangerous to reimplement). So if you are using ungetChar() feature of the QIODevice, this function reports incorrect value until you get back characters which you ungot.</p>
<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>
<dl class="section note"><dt>Note</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>
<p>This function returns -1 if the file or archive is not open.</p>
<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>

</div>
</div>
<a class="anchor" id="a3732ca7704379d457b6a27db8837de95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QuaZipFile::setFileName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbe">QuaZip::CaseSensitivity</a>&#160;</td>
          <td class="paramname"><em>cs</em> = <code><a class="el" href="classQuaZip.html#a6053a1d249ed210a85c9d5eb7cf9cdbeac3cca8c0b976cf6397a28a5c84e75253">QuaZip::csDefault</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the file name. </p>
<p>Will do nothing if at least one of the following conditions is met:</p><ul>
<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>
<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 <a class="el" href="classQuaZip.html" title="ZIP archive. ">QuaZip</a>'s setCurrentFile() function instead!</li>
<li>File is already open so setting the name is meaningless.</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQuaZip.html#a6c657bfcfccb59d728e0da24c677d899" title="Sets current file by its name. ">QuaZip::setCurrentFile</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab7939a26d1e8de2f6aca54f49a12b980"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QuaZipFile::setZip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classQuaZip.html">QuaZip</a> *&#160;</td>
          <td class="paramname"><em>zip</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Binds to the existing <a class="el" href="classQuaZip.html" title="ZIP archive. ">QuaZip</a> instance. </p>
<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>
<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>

</div>
</div>
<a class="anchor" id="ac8109e9a5c19bea75982ff6986b5cb1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QuaZipFile::setZipName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>zipName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the ZIP archive file name. </p>
<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>
<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>

</div>
</div>
<a class="anchor" id="ad1a17cc690a01c3edfb82984c3a4c8f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QuaZipFile::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns file size. </p>
<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>
<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>
<dl class="section note"><dt>Note</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 bytesAvailable() instead. But its name would be very misguiding otherwise, so just keep in mind this inconsistence. </dd></dl>

</div>
</div>
<a class="anchor" id="a4814b5e6e39fb254737b81ea10964f50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QuaZipFile::usize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns uncompressed file size. </p>
<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>
<p>File must be open for reading before calling this function.</p>
<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>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/utilities/quazip/<a class="el" href="quazipfile_8h_source.html">quazipfile.h</a></li>
<li>src/utilities/quazip/quazipfile.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 4 2016 13:59:24 for FGx by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>