Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/centrepexample_8cpp.html
changeset 1 25a17d01db0c
child 6 43e37759235e
equal deleted inserted replaced
0:89d6a7a84779 1:25a17d01db0c
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
       
     3 <title>TB10.1 Example Applications: examples/SysLibs/CentRepExample/centrepexample.cpp File Reference</title>
       
     4 <link href="doxygen.css" rel="stylesheet" type="text/css">
       
     5 <link href="tabs.css" rel="stylesheet" type="text/css">
       
     6 </head><body>
       
     7 <!-- Generated by Doxygen 1.5.3 -->
       
     8 <h1>examples/SysLibs/CentRepExample/centrepexample.cpp File Reference</h1>
       
     9 <p>
       
    10 <a href="centrepexample_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
       
    11 <tr><td></td></tr>
       
    12 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
       
    13 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cffbf43bbe111f4f3669658ce5d7a4dd"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="cffbf43bbe111f4f3669658ce5d7a4dd" args="(KTitle,&quot;Central repository example&quot;)" -->
       
    14 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTitle,&quot;Central repository example&quot;)</td></tr>
       
    15 
       
    16 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1bc8a0562f6a9402175902a473e0b4f0"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="1bc8a0562f6a9402175902a473e0b4f0" args="(KTextPressAKey,&quot;\n\nPress any key to step through the example&quot;)" -->
       
    17 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAKey,&quot;\n\nPress any key to step through the example&quot;)</td></tr>
       
    18 
       
    19 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="55275423706c7625ff69bfab9ed0109c"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="55275423706c7625ff69bfab9ed0109c" args="(KExit,&quot;\nPress any key to exit the application &quot;)" -->
       
    20 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExit,&quot;\nPress any key to exit the application &quot;)</td></tr>
       
    21 
       
    22 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="be7269e632d6878521fc75373ae7869e"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="be7269e632d6878521fc75373ae7869e" args="(KPressAKey,&quot;\nPress any key to continue \n&quot;)" -->
       
    23 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAKey,&quot;\nPress any key to continue \n&quot;)</td></tr>
       
    24 
       
    25 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="27a380f23a1b8c717058ac1d9d039927"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="27a380f23a1b8c717058ac1d9d039927" args="(KErr,&quot;\nThe repository file has not been set up. Please see the instructions in centrepexample.cpp for how to do this&quot;)" -->
       
    26 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KErr,&quot;\nThe repository file has not been set up. Please see the instructions in centrepexample.cpp for how to do this&quot;)</td></tr>
       
    27 
       
    28 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="369df0f107e442f948a1b7bedd8b9379"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="369df0f107e442f948a1b7bedd8b9379" args="(KOpen,&quot;\n\nOpening the repository and displaying some initial settings&quot;)" -->
       
    29 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOpen,&quot;\n\nOpening the repository and displaying some initial settings&quot;)</td></tr>
       
    30 
       
    31 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65a8a4bf6776ab76f4b177eff0d0f04f"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="65a8a4bf6776ab76f4b177eff0d0f04f" args="(KChangeSet,&quot;\nChanging some settings in the repository&quot;)" -->
       
    32 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KChangeSet,&quot;\nChanging some settings in the repository&quot;)</td></tr>
       
    33 
       
    34 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a1ba0ac4b36d6b6eff1689d427c48e6"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="3a1ba0ac4b36d6b6eff1689d427c48e6" args="(KReadSet,&quot;\nReading the changed settings&quot;)" -->
       
    35 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReadSet,&quot;\nReading the changed settings&quot;)</td></tr>
       
    36 
       
    37 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="97d17b7f39d092596de80df2d8a1b084"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="97d17b7f39d092596de80df2d8a1b084" args="(KTransact,&quot;\n\nPerforming read and write transactions&quot;)" -->
       
    38 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTransact,&quot;\n\nPerforming read and write transactions&quot;)</td></tr>
       
    39 
       
    40 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2133f47241ab715517c3c873b4a7d472"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="2133f47241ab715517c3c873b4a7d472" args="(KDelete,&quot;\n\nCreating integer and real number settings and deleting them&quot;)" -->
       
    41 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDelete,&quot;\n\nCreating integer and real number settings and deleting them&quot;)</td></tr>
       
    42 
       
    43 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d77116706d836af732e8949af2488d31"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="d77116706d836af732e8949af2488d31" args="(KMove,&quot;\n\nMoving the key to target position&quot;)" -->
       
    44 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KMove,&quot;\n\nMoving the key to target position&quot;)</td></tr>
       
    45 
       
    46 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="48cbaa988528b5a0e136cc0447a29533"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="48cbaa988528b5a0e136cc0447a29533" args="(KReset,&quot;\nResetting settings to default values, and getting notifications that the changes have occurred&quot;)" -->
       
    47 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReset,&quot;\nResetting settings to default values, and getting notifications that the changes have occurred&quot;)</td></tr>
       
    48 
       
    49 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8f03539144b46fd07b7e8981a5fae56"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="d8f03539144b46fd07b7e8981a5fae56" args="(KFind,&quot;\nFinding settings for simple and structured data&quot;)" -->
       
    50 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KFind,&quot;\nFinding settings for simple and structured data&quot;)</td></tr>
       
    51 
       
    52 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e1df87687281050a2106702481cace"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="f8e1df87687281050a2106702481cace" args="(KNonExisting,&quot;\n\nValue of new setting is %d&quot;)" -->
       
    53 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KNonExisting,&quot;\n\nValue of new setting is %d&quot;)</td></tr>
       
    54 
       
    55 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="91097917bddef93fe2e7830c02fcab48"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="91097917bddef93fe2e7830c02fcab48" args="(KInt,&quot;\nValue of setting with key x01 is %d&quot;)" -->
       
    56 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KInt,&quot;\nValue of setting with key x01 is %d&quot;)</td></tr>
       
    57 
       
    58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb756f5af91efc38b83efebc64190373"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="eb756f5af91efc38b83efebc64190373" args="(KReal,&quot;\nValue of setting with key x02 is %f&quot;)" -->
       
    59 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KReal,&quot;\nValue of setting with key x02 is %f&quot;)</td></tr>
       
    60 
       
    61 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0453984ddd9716ef0643da0a42d70548"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="0453984ddd9716ef0643da0a42d70548" args="(KInteg,&quot;\nValue of setting with key x06 is %d \n&quot;)" -->
       
    62 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KInteg,&quot;\nValue of setting with key x06 is %d \n&quot;)</td></tr>
       
    63 
       
    64 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="100720fb0dc586e3048f2636e5474bb1"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="100720fb0dc586e3048f2636e5474bb1" args="(KIntBefore,&quot;\nValue of setting with key x01 before reset is %d&quot;)" -->
       
    65 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIntBefore,&quot;\nValue of setting with key x01 before reset is %d&quot;)</td></tr>
       
    66 
       
    67 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="859d0a5996ef0d1cc2801630bf18fc9f"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="859d0a5996ef0d1cc2801630bf18fc9f" args="(KIntAfter,&quot;\nValue of setting with key x01 after reset is %d&quot;)" -->
       
    68 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIntAfter,&quot;\nValue of setting with key x01 after reset is %d&quot;)</td></tr>
       
    69 
       
    70 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d200bbbc8e51052b461c8785e0be8b29"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="d200bbbc8e51052b461c8785e0be8b29" args="(KIdsFound,&quot;\nFound %d settings&quot;)" -->
       
    71 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KIdsFound,&quot;\nFound %d settings&quot;)</td></tr>
       
    72 
       
    73 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="95052892ae146e109f2146df8f33e25e"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="95052892ae146e109f2146df8f33e25e" args="(KStringName,&quot;Another string&quot;)" -->
       
    74 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KStringName,&quot;Another string&quot;)</td></tr>
       
    75 
       
    76 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4911d2649328fe41e8db35cbe9c12b35"></a><!-- doxytag: member="centrepexample.cpp::_LIT" ref="4911d2649328fe41e8db35cbe9c12b35" args="(KString1_UpdatedValue,&quot;Value of setting with key x05 is %s&quot;)" -->
       
    77 &nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KString1_UpdatedValue,&quot;Value of setting with key x05 is %s&quot;)</td></tr>
       
    78 
       
    79 <tr><td class="memItemLeft" nowrap align="right" valign="top">LOCAL_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#689e0bf9aa924a1d7dc108665d44736c">MainL</a> ()</td></tr>
       
    80 
       
    81 <tr><td class="memItemLeft" nowrap align="right" valign="top">GLDEF_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
       
    82 
       
    83 <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
       
    84 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="841be22d434bc6f5e7cde00b629124ba"></a><!-- doxytag: member="centrepexample.cpp::KNonExistentSetting" ref="841be22d434bc6f5e7cde00b629124ba" args="" -->
       
    85 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#841be22d434bc6f5e7cde00b629124ba">KNonExistentSetting</a> = 0x10</td></tr>
       
    86 
       
    87 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b51e13a40abcd0929cdb185e3420131b"></a><!-- doxytag: member="centrepexample.cpp::KInt1" ref="b51e13a40abcd0929cdb185e3420131b" args="" -->
       
    88 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#b51e13a40abcd0929cdb185e3420131b">KInt1</a> = 0x01</td></tr>
       
    89 
       
    90 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c89e8423be52fd1bc368cf5543196e9"></a><!-- doxytag: member="centrepexample.cpp::KInt3" ref="8c89e8423be52fd1bc368cf5543196e9" args="" -->
       
    91 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#8c89e8423be52fd1bc368cf5543196e9">KInt3</a> = 0x06</td></tr>
       
    92 
       
    93 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b5338c35514ac188dafdba0e9083fa14"></a><!-- doxytag: member="centrepexample.cpp::KReal1" ref="b5338c35514ac188dafdba0e9083fa14" args="" -->
       
    94 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#b5338c35514ac188dafdba0e9083fa14">KReal1</a> = 0x02</td></tr>
       
    95 
       
    96 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9cac7b725e3b7db4f0996569491a8754"></a><!-- doxytag: member="centrepexample.cpp::KString1" ref="9cac7b725e3b7db4f0996569491a8754" args="" -->
       
    97 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#9cac7b725e3b7db4f0996569491a8754">KString1</a> = 0x05</td></tr>
       
    98 
       
    99 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26522c5a6e5b261136ca16173dc58921"></a><!-- doxytag: member="centrepexample.cpp::KInt1_InitialValue" ref="26522c5a6e5b261136ca16173dc58921" args="" -->
       
   100 const TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#26522c5a6e5b261136ca16173dc58921">KInt1_InitialValue</a> = 1</td></tr>
       
   101 
       
   102 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72c6ed80162c86177f369a50d3015a47"></a><!-- doxytag: member="centrepexample.cpp::KInt1_UpdatedValue" ref="72c6ed80162c86177f369a50d3015a47" args="" -->
       
   103 const TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#72c6ed80162c86177f369a50d3015a47">KInt1_UpdatedValue</a> = 73</td></tr>
       
   104 
       
   105 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6283fcdef4584a1fdfc129c9588fccaf"></a><!-- doxytag: member="centrepexample.cpp::KReal1_InitialValue" ref="6283fcdef4584a1fdfc129c9588fccaf" args="" -->
       
   106 const TReal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#6283fcdef4584a1fdfc129c9588fccaf">KReal1_InitialValue</a> = 14.91</td></tr>
       
   107 
       
   108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2a0ec821823376147d2f52e9668cdf2"></a><!-- doxytag: member="centrepexample.cpp::KReal1_UpdatedValue" ref="d2a0ec821823376147d2f52e9668cdf2" args="" -->
       
   109 const TReal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#d2a0ec821823376147d2f52e9668cdf2">KReal1_UpdatedValue</a> = 72.8</td></tr>
       
   110 
       
   111 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af75a270116ff145ce1037613fbc2465"></a><!-- doxytag: member="centrepexample.cpp::KMoveTarget" ref="af75a270116ff145ce1037613fbc2465" args="" -->
       
   112 const TUint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="centrepexample_8cpp.html#af75a270116ff145ce1037613fbc2465">KMoveTarget</a> = 0x30</td></tr>
       
   113 
       
   114 </table>
       
   115 <hr><a name="_details"></a><h2>Detailed Description</h2>
       
   116 
       
   117 <p>Definition in file <a class="el" href="centrepexample_8cpp-source.html">centrepexample.cpp</a>.</p>
       
   118 <hr><h2>Function Documentation</h2>
       
   119 <a class="anchor" name="689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="centrepexample.cpp::MainL" ref="689e0bf9aa924a1d7dc108665d44736c" args="()" -->
       
   120 <div class="memitem">
       
   121 <div class="memproto">
       
   122       <table class="memname">
       
   123         <tr>
       
   124           <td class="memname">LOCAL_C void MainL           </td>
       
   125           <td>(</td>
       
   126           <td class="paramname">          </td>
       
   127           <td>&nbsp;)&nbsp;</td>
       
   128           <td width="100%"></td>
       
   129         </tr>
       
   130       </table>
       
   131 </div>
       
   132 <div class="memdoc">
       
   133 
       
   134 <p>
       
   135 Much simpler <a class="el" href="circularbuffer_8cpp.html#5fb473d4ee18739183215b04dcad6e12">MainL()</a>, uses the new Rendezvous() call to sync with the client<p>
       
   136 Secure variant Much simpler, uses the new Rendezvous() call to sync with the client 
       
   137 <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>
       
   138 
       
   139 </div>
       
   140 </div><p>
       
   141 <a class="anchor" name="0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="centrepexample.cpp::E32Main" ref="0f358e9c4355138f629b8c4f37310295" args="()" -->
       
   142 <div class="memitem">
       
   143 <div class="memproto">
       
   144       <table class="memname">
       
   145         <tr>
       
   146           <td class="memname">GLDEF_C TInt E32Main           </td>
       
   147           <td>(</td>
       
   148           <td class="paramname">          </td>
       
   149           <td>&nbsp;)&nbsp;</td>
       
   150           <td width="100%"></td>
       
   151         </tr>
       
   152       </table>
       
   153 </div>
       
   154 <div class="memdoc">
       
   155 
       
   156 <p>
       
   157 Returns standard error code on exit<p>
       
   158 Secure variant only Process entry point. Called by client using RProcess API <dl class="return" compact><dt><b>Returns:</b></dt><dd>Standard Epoc error code on process exit<p>
       
   159 Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API</dd></dl>
       
   160 Entry point for the example<p>
       
   161 The E32main function is the main entry point for the code.<p>
       
   162 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>
       
   163 Standard entry point function. 
       
   164 <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>
       
   165 
       
   166 </div>
       
   167 </div><p>
       
   168 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by&nbsp;
       
   169 <a href="http://www.doxygen.org/index.html">
       
   170 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
       
   171 </body>
       
   172 </html>