Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_msg_editor_service_resolver.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: MsgEditorServiceResolver Class 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>MsgEditorServiceResolver Class Reference</h1><!-- doxytag: class="MsgEditorServiceResolver" -->
<p><a href="class_msg_editor_service_resolver-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TUid&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_editor_service_resolver.html#a16b552abe0c8d4cc1a50519ca10af04e">DiscoverL</a> (const <a class="el" href="class_t_editor_parameters.html">TEditorParameters</a> aParams, TUid aMtmType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_editor_service_resolver.html#a61f943efa43f4e0bc57f5bdb8a69d2bf">TryMatchL</a> (const <a class="el" href="class_t_editor_parameters.html">TEditorParameters</a> aParams, TUid aMtmType, const TApaAppServiceInfo aInfo, TUid &amp;aAppUid)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="class_msg_editor_service_resolver.html">MsgEditorServiceResolver</a></p>
<p>Helper class to resolver right service</p>
<p>For internal use of <a class="el" href="class_viewer_starter.html">ViewerStarter</a> </p>

<p>Definition at line <a class="el" href="_txt_viewer_starter_8h_source.html#l00245">245</a> of file <a class="el" href="_txt_viewer_starter_8h_source.html">TxtViewerStarter.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a16b552abe0c8d4cc1a50519ca10af04e"></a><!-- doxytag: member="MsgEditorServiceResolver::DiscoverL" ref="a16b552abe0c8d4cc1a50519ca10af04e" args="(const TEditorParameters aParams, TUid aMtmType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static TUid MsgEditorServiceResolver::DiscoverL </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_t_editor_parameters.html">TEditorParameters</a>&nbsp;</td>
          <td class="paramname"> <em>aParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TUid&nbsp;</td>
          <td class="paramname"> <em>aMtmType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>DiscoverL Finds the right application id to be started and returns it. First checks if TEditorParameters.iSpecialAppId is set. If it is, returns that. Then connects RApaLsSession and initializes it with GetServerApps command. Then gets all the services that implement the service by using GetServiceImplementationsLC. Calls TryMatchL for each service and if there's a match, the appId is returned. If no implementation is found, 0 is returned. </p>

</div>
</div>
<a class="anchor" id="a61f943efa43f4e0bc57f5bdb8a69d2bf"></a><!-- doxytag: member="MsgEditorServiceResolver::TryMatchL" ref="a61f943efa43f4e0bc57f5bdb8a69d2bf" args="(const TEditorParameters aParams, TUid aMtmType, const TApaAppServiceInfo aInfo, TUid &amp;aAppUid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static TBool MsgEditorServiceResolver::TryMatchL </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_t_editor_parameters.html">TEditorParameters</a>&nbsp;</td>
          <td class="paramname"> <em>aParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TUid&nbsp;</td>
          <td class="paramname"> <em>aMtmType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TApaAppServiceInfo&nbsp;</td>
          <td class="paramname"> <em>aInfo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TUid &amp;&nbsp;</td>
          <td class="paramname"> <em>aAppUid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>TryMatchL (Internal) If TEditorParameters.iFlags has either EMsgReadOnly or EMsgPreviewMessage bit set, this function looks for a service that implements the KMsgServiceView part of the service. Otherwise looks for KMsgServiceEdit part. Reads the parameters ( service type (View/Edit), MtmType) from the opaque data. If type and mtm match, sets aAppUi as the application id and returns ETrue. If not found, returns EFalse. </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>