Symbian3/PDK/Source/GUID-DFDDF0C5-0E66-4394-A746-7FE35EEA4E6A.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept id="GUID-DFDDF0C5-0E66-4394-A746-7FE35EEA4E6A" xml:lang="en"><title>Switching
    12 <concept id="GUID-DFDDF0C5-0E66-4394-A746-7FE35EEA4E6A" xml:lang="en"><title>Switching
    13 views in the view architecture</title><prolog><metadata><keywords/></metadata></prolog><conbody>
    13 views in the view architecture</title><prolog><metadata><keywords/></metadata></prolog><conbody>
    14 <section id="GUID-5D19303A-8318-4F7B-84CF-FAAE630225FD"><title>Local switching</title>
    14 <section id="GUID-5D19303A-8318-4F7B-84CF-FAAE630225FD"><title>Local switching</title>
    15 <p>To switch between views within an application, you can use <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknViewAppUi.html#65e2d009edf0f2f2678ff88788907683" format="application/java-archive"><parmname>CAknViewAppUI::ActivateLocalViewL()</parmname></xref>.</p>
    15 <p>To switch between views within an application, you can use <xref href="GUID-26F8606A-0803-3693-A022-3BB620D64C0E.dita#GUID-26F8606A-0803-3693-A022-3BB620D64C0E/GUID-BA4DF836-625E-3AE6-8538-8B1C5A36900B"><apiname>CAknViewAppUI::ActivateLocalViewL()</apiname></xref>.</p>
    16 <p>An example implementation of switching between views in an application
    16 <p>An example implementation of switching between views in an application
    17 as a result of <xref href="GUID-4941C035-C359-4968-9BD5-31F44EE5F810.dita">command
    17 as a result of <xref href="GUID-4941C035-C359-4968-9BD5-31F44EE5F810.dita">command
    18 handling</xref> is as follows:</p>
    18 handling</xref> is as follows:</p>
    19 <codeblock id="GUID-4CC3D27C-CB0B-4BF2-AFEB-13CC054D509A" xml:space="preserve">case EMyViewAppCmdView1Cmd1:
    19 <codeblock id="GUID-4CC3D27C-CB0B-4BF2-AFEB-13CC054D509A" xml:space="preserve">case EMyViewAppCmdView1Cmd1:
    20             {
    20             {
    37 </codeblock>
    37 </codeblock>
    38 </section>
    38 </section>
    39 <section id="GUID-A8098599-D103-4DB6-B7BE-1E01AF10B88A"><title>Remote switching</title>
    39 <section id="GUID-A8098599-D103-4DB6-B7BE-1E01AF10B88A"><title>Remote switching</title>
    40 <p>In remote view switching, an application initiates the remote target
    40 <p>In remote view switching, an application initiates the remote target
    41 application to change its view. If the application is not running, it is started.</p>
    41 application to change its view. If the application is not running, it is started.</p>
    42 <p>In the application, call the <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-cpp/Control_Environment/CCoeAppUiClass.html#%3a%3aCCoeAppUi%3a%3aActivateViewL%28const%20TVwsViewId%20%26amp%3b%29" format="application/java-archive"><parmname>CCoeAppUi::ActivateViewL()</parmname></xref> function, giving <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-cpp/View_Server/TVwsViewIdClass.html" format="application/java-archive"><parmname>TVwsViewId</parmname></xref> containing the target application’s UID and the target view
    42 <p>In the application, call the <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita#GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90/GUID-013EC4FB-9B9D-352A-B3F5-9C37B4458032"><apiname>CCoeAppUi::ActivateViewL()</apiname></xref> function,
    43 UID. </p>
    43 giving <xref href="GUID-3DEA9A17-CB50-3DCD-87AC-0E91B377FB0E.dita"><apiname>TVwsViewId</apiname></xref> containing the target application’s UID
       
    44 and the target view UID. </p>
    44 <p>Optionally, if the remote application view requires, give a message
    45 <p>Optionally, if the remote application view requires, give a message
    45 ID and the descriptor data, which the view needs for its initialization. The
    46 ID and the descriptor data, which the view needs for its initialization. The
    46 remote application view documentation publishes the required parameters.</p>
    47 remote application view documentation publishes the required parameters.</p>
    47 <p>Note that the calling and target application are independent of each
    48 <p>Note that the calling and target application are independent of each
    48 other. When the target application exits, it will not exit the calling application.
    49 other. When the target application exits, it will not exit the calling application.