Week 12 contribution of SDK documentation_content. See release notes for details. Fixes Bug 1892, Bug 1522, Bug 1520, Bug 394, Bug 1319, Bug 344, Bug 1897
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/SysLibs/SqlExample/sqlexample.cpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>examples/SysLibs/SqlExample/sqlexample.cpp File Reference</h1>
<p>
<a href="sqlexample_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f1d0f49b16aef74fefa62b77424d36c5"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="f1d0f49b16aef74fefa62b77424d36c5" args="(KTitle,"SQL example")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTitle,"SQL example")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ac2fb0a63f089fdce518a302f37b9d5"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="0ac2fb0a63f089fdce518a302f37b9d5" args="(KTextPressAKey,"\n\nPress any key to step through the example\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAKey,"\n\nPress any key to step through the example\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="955581697443c31bed3184da8ff35099"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="955581697443c31bed3184da8ff35099" args="(KExit,"Press any key to exit the application ")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExit,"Press any key to exit the application ")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5bc2564a54db2d4e4e7b19b59a006638"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="5bc2564a54db2d4e4e7b19b59a006638" args="(KPressAKey,"Press any key to continue \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAKey,"Press any key to continue \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb80aad055e3d273aa01a11aa1d70e12"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="eb80aad055e3d273aa01a11aa1d70e12" args="(KNonSecure,"\nCreating a non secure database \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KNonSecure,"\nCreating a non secure database \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22e698a7865251297a64a60569087cfd"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="22e698a7865251297a64a60569087cfd" args="(KSecure,"\nCreating a secure database \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSecure,"\nCreating a secure database \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c42a193d5dc20817c9c632a0ee6b7238"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="c42a193d5dc20817c9c632a0ee6b7238" args="(KOpen,"Opening the secure database \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOpen,"Opening the secure database \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8fcfa1b6457a549f2e84ad0772271efd"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="8fcfa1b6457a549f2e84ad0772271efd" args="(KDelete,"Deleting the database(s)\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDelete,"Deleting the database(s)\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ca3c9f779bc10076646c6e36914988c"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="2ca3c9f779bc10076646c6e36914988c" args="(KClose,"Closing the database(s)\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KClose,"Closing the database(s)\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b3c1a72ee62d77dfcf74abfb84cea63"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="8b3c1a72ee62d77dfcf74abfb84cea63" args="(KCopyNonSec,"\nCopying a non secure database to another non secure one \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCopyNonSec,"\nCopying a non secure database to another non secure one \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11d977ecaf213fed3bab9e984fcd5e8"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="a11d977ecaf213fed3bab9e984fcd5e8" args="(KCopySecure,"\nCopying a secure database to another secure database \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCopySecure,"\nCopying a secure database to another secure database \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94e83af748c531655130484164982f6f"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="94e83af748c531655130484164982f6f" args="(KAttach,"\nOpen a secure database and attach another secure database\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAttach,"\nOpen a secure database and attach another secure database\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec52b6ed450faf79ed6f05abcf197ae7"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="ec52b6ed450faf79ed6f05abcf197ae7" args="(KCreateTable,"\nCreating a table\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KCreateTable,"\nCreating a table\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa32558a2fc26dc0b042e59fe01f1288"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="aa32558a2fc26dc0b042e59fe01f1288" args="(KInsert,"Inserting records into the table\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KInsert,"Inserting records into the table\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56338faabedabd31650f8810884abe63"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="56338faabedabd31650f8810884abe63" args="(KPrepare,"Preparing a query\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPrepare,"Preparing a query\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840c3e5f82b0a46a7a0f9a4512aa5ff9"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="840c3e5f82b0a46a7a0f9a4512aa5ff9" args="(KExecute,"Executing a query\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExecute,"Executing a query\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ffd06b943ebb712e4594c2d37111edc9"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="ffd06b943ebb712e4594c2d37111edc9" args="(KDbName,"\\Example_db.db")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDbName,"\\Example_db.db")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2791b2f989d4a018eb405044d4ddcf8"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="d2791b2f989d4a018eb405044d4ddcf8" args="(KAnotherDbName,"\\Example_Anotherdb.db")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAnotherDbName,"\\Example_Anotherdb.db")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54b2f2fc6c9f10f840dc591614620106"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="54b2f2fc6c9f10f840dc591614620106" args="(KSecureDb1,"[E80000AF]db1.db")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSecureDb1,"[E80000AF]db1.db")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aaee21072a0941d7633a58f446e1d73e"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="aaee21072a0941d7633a58f446e1d73e" args="(KSecureDb2,"[E80000AF]db2.db")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSecureDb2,"[E80000AF]db2.db")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7e3ba5605476a47d4d25cae45c544f8"></a><!-- doxytag: member="sqlexample.cpp::_LIT" ref="b7e3ba5605476a47d4d25cae45c544f8" args="(KDatabase,"\\Sqlscalarfullselect.db")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KDatabase,"\\Sqlscalarfullselect.db")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c7d0dae6d6c914c43f81797fc7d26c37"></a><!-- doxytag: member="sqlexample.cpp::KPolicy1" ref="c7d0dae6d6c914c43f81797fc7d26c37" args="(ECapabilityReadUserData, ECapabilityNetworkControl, ECapabilityWriteUserData)" -->
const TSecurityPolicy </td><td class="memItemRight" valign="bottom"><b>KPolicy1</b> (ECapabilityReadUserData, ECapabilityNetworkControl, ECapabilityWriteUserData)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7014ba0f4e6eb1696afd8fbc4d0dfe1a"></a><!-- doxytag: member="sqlexample.cpp::KPolicy2" ref="7014ba0f4e6eb1696afd8fbc4d0dfe1a" args="(ECapabilityReadUserData)" -->
const TSecurityPolicy </td><td class="memItemRight" valign="bottom"><b>KPolicy2</b> (ECapabilityReadUserData)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">LOCAL_C void </td><td class="memItemRight" valign="bottom"><a class="el" href="sqlexample_8cpp.html#689e0bf9aa924a1d7dc108665d44736c">MainL</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="sqlexample_8cpp.html#0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition in file <a class="el" href="sqlexample_8cpp-source.html">sqlexample.cpp</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="sqlexample.cpp::MainL" ref="689e0bf9aa924a1d7dc108665d44736c" 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 width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Much simpler <a class="el" href="circularbuffer_8cpp.html#5fb473d4ee18739183215b04dcad6e12">MainL()</a>, uses the new Rendezvous() call to sync with the client<p>
Secure variant Much simpler, uses the new Rendezvous() call to sync with the client
<p>Definition at line <a class="el" href="sqlexample_8cpp-source.html#l00542">542</a> of file <a class="el" href="sqlexample_8cpp-source.html">sqlexample.cpp</a>.</p>
</div>
</div><p>
<a class="anchor" name="0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="sqlexample.cpp::E32Main" ref="0f358e9c4355138f629b8c4f37310295" 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 width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns standard error code on exit<p>
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>
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API</dd></dl>
Entry point for the example<p>
The E32main function is the main entry point for the code.<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>
Standard entry point function.
<p>Definition at line <a class="el" href="sqlexample_8cpp-source.html#l00577">577</a> of file <a class="el" href="sqlexample_8cpp-source.html">sqlexample.cpp</a>.</p>
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>