Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/ezlibexample_8cpp.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!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"/>
<title>TB9.2 Example Applications: examples/SysLibs/EzlibExample/ezlibexample.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>examples/SysLibs/EzlibExample/ezlibexample.cpp File Reference</h1>
<p><a href="ezlibexample_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91358f786f36e8cde6adf64e432d089b"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a91358f786f36e8cde6adf64e432d089b" args="(KTitle,&quot;Ezlib example&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTitle,&quot;Ezlib example&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ac2fb0a63f089fdce518a302f37b9d5"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a0ac2fb0a63f089fdce518a302f37b9d5" args="(KTextPressAKey,&quot;\n\nPress any key to step through the example\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAKey,&quot;\n\nPress any key to step through the example\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0fa1f356ccf64e0a3f03e9a0c202b66"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="af0fa1f356ccf64e0a3f03e9a0c202b66" args="(KExit,&quot;\nPress any key to exit the application&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExit,&quot;\nPress any key to exit the application&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe7269e632d6878521fc75373ae7869e"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="abe7269e632d6878521fc75373ae7869e" args="(KPressAKey,&quot;\nPress any key to continue \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAKey,&quot;\nPress any key to continue \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bd15b47128bddec1af46c49518c574e"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a9bd15b47128bddec1af46c49518c574e" args="(KProperties,&quot;Press any key to have a look at the properties of the zipped files \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KProperties,&quot;Press any key to have a look at the properties of the zipped files \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4214317a9701a42bb2fec46fd7359851"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a4214317a9701a42bb2fec46fd7359851" args="(KDecompress,&quot;Gzip file successfully decompressed\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDecompress,&quot;Gzip file successfully decompressed\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad34cfa5bcf85b79901baaa334193a8b2"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="ad34cfa5bcf85b79901baaa334193a8b2" args="(KCompress,&quot;\nFile successfully compressed to gzip format and saved\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCompress,&quot;\nFile successfully compressed to gzip format and saved\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49f4b2cfd960ec553e843cf9995cd6b7"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a49f4b2cfd960ec553e843cf9995cd6b7" args="(KNoFilesFound,&quot;No appropriate files located in this folder.\r\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KNoFilesFound,&quot;No appropriate files located in this folder.\r\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d945ef35bc90466e1c12601f90c8002"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a9d945ef35bc90466e1c12601f90c8002" args="(KLineSpace,&quot;\r\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KLineSpace,&quot;\r\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c0bc1721015b5a892ddb36211bdbf76"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a7c0bc1721015b5a892ddb36211bdbf76" args="(KFileInfo,&quot;\nCompressing file %S&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFileInfo,&quot;\nCompressing file %S&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0ec5115d864359d5e5ffdb46380bf11"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="ae0ec5115d864359d5e5ffdb46380bf11" args="(KFileOpen,&quot;\nOpening file: %S\r\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFileOpen,&quot;\nOpening file: %S\r\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a628ac8d503e5848f4d466167dbf5bb8d"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a628ac8d503e5848f4d466167dbf5bb8d" args="(KFileExtract,&quot;\nExtracting the file %S\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFileExtract,&quot;\nExtracting the file %S\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c8d5e3da26f7ae72bc2c40bb422d8da"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a9c8d5e3da26f7ae72bc2c40bb422d8da" args="(KFileZipExtract,&quot;\nExtracting files from the zip file %S\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFileZipExtract,&quot;\nExtracting files from the zip file %S\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b214a75f7564e18522bc08496aaaeb5"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a1b214a75f7564e18522bc08496aaaeb5" args="(KZipName,&quot;\nName:			%S	&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KZipName,&quot;\nName:			%S	&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12b95f99d1194b7a04e696062dc6ddec"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a12b95f99d1194b7a04e696062dc6ddec" args="(KZipCRC32,&quot;\nCRC32:			%X	&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KZipCRC32,&quot;\nCRC32:			%X	&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae15239d075fddaa0d0369dc431eaacff"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="ae15239d075fddaa0d0369dc431eaacff" args="(KZipCSize,&quot;\nCompressed Size:	%d&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KZipCSize,&quot;\nCompressed Size:	%d&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17ad10ae717ea33502be464227946f03"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a17ad10ae717ea33502be464227946f03" args="(KZipUCSize,&quot;\nUncompressed Size:	%d&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KZipUCSize,&quot;\nUncompressed Size:	%d&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e10467cfcc7d0f4b0ad36daa26d639a"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a9e10467cfcc7d0f4b0ad36daa26d639a" args="(KOpenedSuccessfully,&quot;%S opened successfully.\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOpenedSuccessfully,&quot;%S opened successfully.\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa70e107f213cb827296da09d51688554"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="aa70e107f213cb827296da09d51688554" args="(KExtractZipPathMulti,&quot;\\private\\E80000B7\\zip\\extracts\\&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExtractZipPathMulti,&quot;\\private\\E80000B7\\zip\\extracts\\&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa720fcede100cc8800dae62f6078ca40"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="aa720fcede100cc8800dae62f6078ca40" args="(KExtractZipPathSingle,&quot;\\private\\E80000B7\\zip\\extracts\\singlefile\\&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExtractZipPathSingle,&quot;\\private\\E80000B7\\zip\\extracts\\singlefile\\&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adff0f1bc4db537ad40756b8733ed38ec"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="adff0f1bc4db537ad40756b8733ed38ec" args="(KCompressGzipPath,&quot;\\private\\E80000B7\\gzip\\extracts\\&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCompressGzipPath,&quot;\\private\\E80000B7\\gzip\\extracts\\&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82c6c8e8562fa1013fc824e2dc80fea4"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="a82c6c8e8562fa1013fc824e2dc80fea4" args="(KCompressZipFile,&quot;icon.bmp&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCompressZipFile,&quot;icon.bmp&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad95647b7b9250b5a02236c544a233fd0"></a><!-- doxytag: member="ezlibexample.cpp::_LIT" ref="ad95647b7b9250b5a02236c544a233fd0" args="(KExtractGzipFile,&quot;error.wav&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExtractGzipFile,&quot;error.wav&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LOCAL_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ezlibexample_8cpp.html#a689e0bf9aa924a1d7dc108665d44736c">MainL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLDEF_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ezlibexample_8cpp.html#a0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition in file <a class="el" href="ezlibexample_8cpp_source.html">ezlibexample.cpp</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="ezlibexample.cpp::MainL" ref="a689e0bf9aa924a1d7dc108665d44736c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LOCAL_C void MainL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Much simpler MainL(), uses the new Rendezvous() call to sync with the client</p>
<p>Secure variant Much simpler, uses the new Rendezvous() call to sync with the client </p>

<p>Definition at line <a class="el" href="ezlibexample_8cpp_source.html#l00407">407</a> of file <a class="el" href="ezlibexample_8cpp_source.html">ezlibexample.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="ezlibexample.cpp::E32Main" ref="a0f358e9c4355138f629b8c4f37310295" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLDEF_C TInt E32Main </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns standard error code on exit</p>
<p>Secure variant only Process entry point. Called by client using RProcess API </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Standard Epoc error code on process exit</dd>
<dd>
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API</dd></dl>
<p>Entry point for the example</p>
<p>The below section is added to make the code compatible with v9.1 This is because only exe files are compatible with v9.1</p>
<p>Standard entry point function.</p>
<p>A normal Symbian OS executable provides an E32Main() function which is called by the operating system to start the program. </p>

<p>Definition at line <a class="el" href="ezlibexample_8cpp_source.html#l00452">452</a> of file <a class="el" href="ezlibexample_8cpp_source.html">ezlibexample.cpp</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>