Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_send_as2_example_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/Messaging/SendAs2Example/SendAs2Example.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/Messaging/SendAs2Example/SendAs2Example.cpp File Reference</h1>
<p><a href="_send_as2_example_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="a1214665e5c99e0c89d4c9da210983293"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a1214665e5c99e0c89d4c9da210983293" args="(KBodyText,&quot;You are limited only by your fears. Remember it is attitude, more than aptitude,that determines your altitude&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KBodyText,&quot;You are limited only by your fears. Remember it is attitude, more than aptitude,that determines your altitude&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0494f7ef8de896e3a0196a1af468966e"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a0494f7ef8de896e3a0196a1af468966e" args="(KAddress1,&quot;ban&#45;sindhub01@ban&#45;sindhub01.intra&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAddress1,&quot;ban-sindhub01@ban-sindhub01.intra&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae4fdf753127a2d543ad3e2fa042a0ec9"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="ae4fdf753127a2d543ad3e2fa042a0ec9" args="(KAddress3,&quot;ban&#45;sindhub01@ban&#45;sindhub01.intra&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAddress3,&quot;ban-sindhub01@ban-sindhub01.intra&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f58761a0eb6e71998d92cb65a41d6e5"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a3f58761a0eb6e71998d92cb65a41d6e5" args="(KAddress4,&quot;test1@nokia.com&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAddress4,&quot;test1@nokia.com&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7416d0d5920319788b8092d513b831bc"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a7416d0d5920319788b8092d513b831bc" args="(KAlias1,&quot;Alias1&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAlias1,&quot;Alias1&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84ec7c31a3a7f07c9253c81fbc2b63f0"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a84ec7c31a3a7f07c9253c81fbc2b63f0" args="(KAlias2,&quot;Alias2&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAlias2,&quot;Alias2&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9900ab0a8237064910ec1206cc2d22fc"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a9900ab0a8237064910ec1206cc2d22fc" args="(KAccount1,&quot; \n SendAs Account1 \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAccount1,&quot; \n SendAs Account1 \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66854f5b3778a1e6d26b9b33ba00f5dc"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a66854f5b3778a1e6d26b9b33ba00f5dc" args="(KAccount2,&quot; \n SendAs Account2 \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAccount2,&quot; \n SendAs Account2 \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84e2f78625d56dc325a7f9fe24a9302d"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a84e2f78625d56dc325a7f9fe24a9302d" args="(KAccount3,&quot; \n SendAs Account3 \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAccount3,&quot; \n SendAs Account3 \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac3770842be3a235fb0c26f02c3eb7964"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="ac3770842be3a235fb0c26f02c3eb7964" args="(KAccountNames,&quot;\n The list of accounts present are: \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAccountNames,&quot;\n The list of accounts present are: \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f9cdf44f9b6f3acbcede63be9a1eba2"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a2f9cdf44f9b6f3acbcede63be9a1eba2" args="(KTextWelcome,&quot; SendAs2 Example \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextWelcome,&quot; SendAs2 Example \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0e8a9753ad3d47fa2cc131f85e796ae"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="af0e8a9753ad3d47fa2cc131f85e796ae" args="(KTextStartApp,&quot;\n Starting the SendAs2 Example application .... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextStartApp,&quot;\n Starting the SendAs2 Example application .... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a58a33d051c558def3189778e81594d08"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a58a33d051c558def3189778e81594d08" args="(KTextPressAKey,&quot;\n Press any key to step through the example .... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAKey,&quot;\n Press any key to step through the example .... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6442319e3b49194ffbd84784e3532774"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a6442319e3b49194ffbd84784e3532774" args="(KTextConn,&quot;\n Connecting to sendAs server .... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextConn,&quot;\n Connecting to sendAs server .... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e3dd5a7a5818b2a34790cea293f9f77"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a6e3dd5a7a5818b2a34790cea293f9f77" args="(KTextErrInn,&quot;\n Connection is successful\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextErrInn,&quot;\n Connection is successful\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa112c5688d4d3815b245c4765a8487fd"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="aa112c5688d4d3815b245c4765a8487fd" args="(KTextErrOut,&quot;\n\n Connection has failed\n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextErrOut,&quot;\n\n Connection has failed\n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a199b8d7afcad5497f0f50093d4f02e"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a0a199b8d7afcad5497f0f50093d4f02e" args="(KTextCreate,&quot;\n Creating a SendAs message .... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextCreate,&quot;\n Creating a SendAs message .... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9eee86bace1ecebf4f384fcb5533116"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="ad9eee86bace1ecebf4f384fcb5533116" args="(KTextSend,&quot;\n Sending the sendAs message .... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextSend,&quot;\n Sending the sendAs message .... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1049094e113ae38f6b4e04e0ab3b4dff"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a1049094e113ae38f6b4e04e0ab3b4dff" args="(KTextClose,&quot;\n The SendAs message has been sent \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextClose,&quot;\n The SendAs message has been sent \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2dd1d7cf47abb9c7665f52b39d81acc0"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a2dd1d7cf47abb9c7665f52b39d81acc0" args="(KPressAnyKey,&quot;\n Press any key.... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAnyKey,&quot;\n Press any key.... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24195ee0583fd0e9f40d9a4c416a15af"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a24195ee0583fd0e9f40d9a4c416a15af" args="(KExitKey,&quot;\n Press any key to exit the application.... \n&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExitKey,&quot;\n Press any key to exit the application.... \n&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a76a149ed700a80d849accde3409d7d"></a><!-- doxytag: member="SendAs2Example.cpp::_LIT" ref="a4a76a149ed700a80d849accde3409d7d" args="(KSmsClient,&quot;SMS Client&quot;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSmsClient,&quot;SMS Client&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="_send_as2_example_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="_send_as2_example_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="_send_as2_example_8cpp_source.html">SendAs2Example.cpp</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="SendAs2Example.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="_send_as2_example_8cpp_source.html#l00295">295</a> of file <a class="el" href="_send_as2_example_8cpp_source.html">SendAs2Example.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="SendAs2Example.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>Definition at line <a class="el" href="_send_as2_example_8cpp_source.html#l00314">314</a> of file <a class="el" href="_send_as2_example_8cpp_source.html">SendAs2Example.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>