Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/centrepexample_8cpp.html
<!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/CentRepExample/centrepexample.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/CentRepExample/centrepexample.cpp File Reference</h1>
<p><a href="centrepexample_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="acffbf43bbe111f4f3669658ce5d7a4dd"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="acffbf43bbe111f4f3669658ce5d7a4dd" args="(KTitle,"Central repository example")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTitle,"Central repository example")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1bc8a0562f6a9402175902a473e0b4f0"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a1bc8a0562f6a9402175902a473e0b4f0" args="(KTextPressAKey,"\n\nPress any key to step through the example")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAKey,"\n\nPress any key to step through the example")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55275423706c7625ff69bfab9ed0109c"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a55275423706c7625ff69bfab9ed0109c" args="(KExit,"\nPress any key to exit the application ")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExit,"\nPress any key to exit the application ")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe7269e632d6878521fc75373ae7869e"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="abe7269e632d6878521fc75373ae7869e" args="(KPressAKey,"\nPress any key to continue \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAKey,"\nPress any key to continue \n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27a380f23a1b8c717058ac1d9d039927"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a27a380f23a1b8c717058ac1d9d039927" args="(KErr,"\nThe repository file has not been set up. Please see the instructions in centrepexample.cpp for how to do this")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KErr,"\nThe repository file has not been set up. Please see the instructions in centrepexample.cpp <a class="el" href="interfacefor.html">for</a> how to do this")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a369df0f107e442f948a1b7bedd8b9379"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a369df0f107e442f948a1b7bedd8b9379" args="(KOpen,"\n\nOpening the repository and displaying some initial settings")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOpen,"\n\nOpening the repository and displaying some initial settings")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65a8a4bf6776ab76f4b177eff0d0f04f"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a65a8a4bf6776ab76f4b177eff0d0f04f" args="(KChangeSet,"\nChanging some settings in the repository")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KChangeSet,"\nChanging some settings in the repository")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a1ba0ac4b36d6b6eff1689d427c48e6"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a3a1ba0ac4b36d6b6eff1689d427c48e6" args="(KReadSet,"\nReading the changed settings")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReadSet,"\nReading the changed settings")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97d17b7f39d092596de80df2d8a1b084"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a97d17b7f39d092596de80df2d8a1b084" args="(KTransact,"\n\nPerforming read and write transactions")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTransact,"\n\nPerforming read and write transactions")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2133f47241ab715517c3c873b4a7d472"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a2133f47241ab715517c3c873b4a7d472" args="(KDelete,"\n\nCreating integer and real number settings and deleting them")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDelete,"\n\nCreating integer and real number settings and deleting them")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad77116706d836af732e8949af2488d31"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="ad77116706d836af732e8949af2488d31" args="(KMove,"\n\nMoving the key to target position")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KMove,"\n\nMoving the key to target position")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48cbaa988528b5a0e136cc0447a29533"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a48cbaa988528b5a0e136cc0447a29533" args="(KReset,"\nResetting settings to default values, and getting notifications that the changes have occurred")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReset,"\nResetting settings to default values, and getting notifications that the changes have occurred")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8f03539144b46fd07b7e8981a5fae56"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="ad8f03539144b46fd07b7e8981a5fae56" args="(KFind,"\nFinding settings for simple and structured data")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFind,"\nFinding settings <a class="el" href="interfacefor.html">for</a> simple and structured data")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8e1df87687281050a2106702481cace"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="af8e1df87687281050a2106702481cace" args="(KNonExisting,"\n\nValue of new setting is %d")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KNonExisting,"\n\nValue of new setting is %d")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91097917bddef93fe2e7830c02fcab48"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a91097917bddef93fe2e7830c02fcab48" args="(KInt,"\nValue of setting with key x01 is %d")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KInt,"\nValue of setting with key x01 is %d")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb756f5af91efc38b83efebc64190373"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="aeb756f5af91efc38b83efebc64190373" args="(KReal,"\nValue of setting with key x02 is %f")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReal,"\nValue of setting with key x02 is %f")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0453984ddd9716ef0643da0a42d70548"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a0453984ddd9716ef0643da0a42d70548" args="(KInteg,"\nValue of setting with key x06 is %d \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KInteg,"\nValue of setting with key x06 is %d \n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a100720fb0dc586e3048f2636e5474bb1"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a100720fb0dc586e3048f2636e5474bb1" args="(KIntBefore,"\nValue of setting with key x01 before reset is %d")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIntBefore,"\nValue of setting with key x01 before reset is %d")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a859d0a5996ef0d1cc2801630bf18fc9f"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a859d0a5996ef0d1cc2801630bf18fc9f" args="(KIntAfter,"\nValue of setting with key x01 after reset is %d")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIntAfter,"\nValue of setting with key x01 after reset is %d")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad200bbbc8e51052b461c8785e0be8b29"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="ad200bbbc8e51052b461c8785e0be8b29" args="(KIdsFound,"\nFound %d settings")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIdsFound,"\nFound %d settings")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95052892ae146e109f2146df8f33e25e"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a95052892ae146e109f2146df8f33e25e" args="(KStringName,"Another string")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KStringName,"Another string")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4911d2649328fe41e8db35cbe9c12b35"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="a4911d2649328fe41e8db35cbe9c12b35" args="(KString1_UpdatedValue,"Value of setting with key x05 is %s")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KString1_UpdatedValue,"Value of setting with key x05 is %s")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LOCAL_C void </td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#a689e0bf9aa924a1d7dc108665d44736c">MainL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#a0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a841be22d434bc6f5e7cde00b629124ba"></a><!-- doxytag: member="centrepexample.cpp::KNonExistentSetting" ref="a841be22d434bc6f5e7cde00b629124ba" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KNonExistentSetting</b> = 0x10</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab51e13a40abcd0929cdb185e3420131b"></a><!-- doxytag: member="centrepexample.cpp::KInt1" ref="ab51e13a40abcd0929cdb185e3420131b" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KInt1</b> = 0x01</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c89e8423be52fd1bc368cf5543196e9"></a><!-- doxytag: member="centrepexample.cpp::KInt3" ref="a8c89e8423be52fd1bc368cf5543196e9" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KInt3</b> = 0x06</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5338c35514ac188dafdba0e9083fa14"></a><!-- doxytag: member="centrepexample.cpp::KReal1" ref="ab5338c35514ac188dafdba0e9083fa14" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KReal1</b> = 0x02</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9cac7b725e3b7db4f0996569491a8754"></a><!-- doxytag: member="centrepexample.cpp::KString1" ref="a9cac7b725e3b7db4f0996569491a8754" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KString1</b> = 0x05</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26522c5a6e5b261136ca16173dc58921"></a><!-- doxytag: member="centrepexample.cpp::KInt1_InitialValue" ref="a26522c5a6e5b261136ca16173dc58921" args="" -->
const TInt </td><td class="memItemRight" valign="bottom"><b>KInt1_InitialValue</b> = 1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a72c6ed80162c86177f369a50d3015a47"></a><!-- doxytag: member="centrepexample.cpp::KInt1_UpdatedValue" ref="a72c6ed80162c86177f369a50d3015a47" args="" -->
const TInt </td><td class="memItemRight" valign="bottom"><b>KInt1_UpdatedValue</b> = 73</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6283fcdef4584a1fdfc129c9588fccaf"></a><!-- doxytag: member="centrepexample.cpp::KReal1_InitialValue" ref="a6283fcdef4584a1fdfc129c9588fccaf" args="" -->
const TReal </td><td class="memItemRight" valign="bottom"><b>KReal1_InitialValue</b> = 14.91</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2a0ec821823376147d2f52e9668cdf2"></a><!-- doxytag: member="centrepexample.cpp::KReal1_UpdatedValue" ref="ad2a0ec821823376147d2f52e9668cdf2" args="" -->
const TReal </td><td class="memItemRight" valign="bottom"><b>KReal1_UpdatedValue</b> = 72.8</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf75a270116ff145ce1037613fbc2465"></a><!-- doxytag: member="centrepexample.cpp::KMoveTarget" ref="aaf75a270116ff145ce1037613fbc2465" args="" -->
const TUint32 </td><td class="memItemRight" valign="bottom"><b>KMoveTarget</b> = 0x30</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition in file <a class="el" href="centrepexample_8cpp_source.html">centrepexample.cpp</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="centrepexample.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> ) </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="centrepexample_8cpp_source.html#l00445">445</a> of file <a class="el" href="centrepexample_8cpp_source.html">centrepexample.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="centrepexample.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> ) </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="centrepexample_8cpp_source.html#l00484">484</a> of file <a class="el" href="centrepexample_8cpp_source.html">centrepexample.cpp</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>