org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-7DD6AB91-0582-4A46-9E19-2F12DC2FE674.html
changeset 229 716254ccbcc0
equal deleted inserted replaced
228:913c9751c067 229:716254ccbcc0
       
     1 
       
     2 <!DOCTYPE html
       
     3   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="Criteria for launching an application"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C"/><meta name="DC.Relation" scheme="URI" content="GUID-2D651505-F68C-4053-B565-9FF826C5B897"/><meta name="DC.Relation" scheme="URI" content="GUID-697AFF1F-24C7-43BD-A072-8352B3BE973C"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-7DD6AB91-0582-4A46-9E19-2F12DC2FE674"/><title>Criteria for
       
     5 launching an application </title><script type="text/javascript">
       
     6       function initPage() {}
       
     7     </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-7DD6AB91-0582-4A46-9E19-2F12DC2FE674"><span>Criteria</span> for
       
     8 launching an application</h1><div>
       
     9 <p>The <code>criteria</code> object specifies the application
       
    10 to launch.</p>
       
    11 <p>The <code>criteria</code> object has three main properties: <code>ApplicationID</code>, <code>CmdLine</code>,
       
    12 and <code>Options</code>. These are described in the following table.
       
    13 Properties enclosed in brackets are optional.</p>
       
    14 <div class="tablenoborder"><a name="GUID-3D39CA8F-461E-4CEF-BFC6-0B3E4EC2A738"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-3D39CA8F-461E-4CEF-BFC6-0B3E4EC2A738" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object properties</caption>
       
    15 <thead align="left">
       
    16 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e18569">
       
    17 <p>Property</p>
       
    18 </th><th class="cellrowborder" valign="top" width="25%" id="d0e18574">
       
    19 <p>Description</p>
       
    20 </th><th class="cellrowborder" valign="top" width="25%" id="d0e18579">
       
    21 <p>Type</p>
       
    22 </th><th class="cellrowborder" valign="top" width="25%" id="d0e18584">
       
    23 <p>Value</p>
       
    24 </th></tr>
       
    25 </thead>
       
    26 <tbody>
       
    27 <tr class="">
       
    28 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
    29 <p><code>criteria.ApplicationID</code></p>
       
    30 </td>
       
    31 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">
       
    32 <p>Specifies a unique ID for the application binary (EXE or DLL).</p>
       
    33 <p>Use the <a href="GUID-4A2480A8-4D79-4F5D-9614-74A8934B8952.html#GUID-4A2480A8-4D79-4F5D-9614-74A8934B8952"><code>GetList</code></a> method
       
    34 to retrieve this ID.</p>
       
    35 </td>
       
    36 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
    37 <p>string</p>
       
    38 </td>
       
    39 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">
       
    40 <p>For example: <code>"s60uid://0x101F857A"</code></p>
       
    41 </td>
       
    42 </tr>
       
    43 <tr class="bg ">
       
    44 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
    45 <p><code>[criteria.CmdLine]</code></p>
       
    46 </td>
       
    47 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">
       
    48 <p>Specifies a command line argument which is passed to the application
       
    49 being launched.</p>
       
    50 </td>
       
    51 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
    52 <p>string</p>
       
    53 </td>
       
    54 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">&nbsp;</td>
       
    55 </tr>
       
    56 <tr class="">
       
    57 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
    58 <p><code>[critia.Options]</code></p>
       
    59 </td>
       
    60 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">&nbsp;</td>
       
    61 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
    62 <p>object</p>
       
    63 </td>
       
    64 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">
       
    65 <p>Object with the properties specified below.</p>
       
    66 </td>
       
    67 </tr>
       
    68 <tr class="bg ">
       
    69 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
    70 <p><code>[critia.Options.Mode]</code></p>
       
    71 </td>
       
    72 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">
       
    73 <p>Specifies whether the launched application is embedded within the application
       
    74 that called <code>LaunchApp</code> (chained) or whether the applications
       
    75 are independent of each other (stand-alone). For more information on chained
       
    76 and stand-along applications, see section <a href="GUID-E092BF10-C076-4476-9E80-87919940201B.html#GUID-E092BF10-C076-4476-9E80-87919940201B">Accessing and launching installed applications</a>.</p>
       
    77 <p>If this property is not specified, the default is <code>"Standalone"</code>.</p>
       
    78 </td>
       
    79 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
    80 <p>string</p>
       
    81 </td>
       
    82 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">
       
    83 <p>Possible values:</p>
       
    84 <ul>
       
    85 <li><p><code>"Chained"</code> - The application is embedded
       
    86 within the application that called <code>LaunchApp</code>.</p>
       
    87 </li>
       
    88 <li><p><code>"Standalone"</code> - The applications are
       
    89 independent of each other.</p></li>
       
    90 </ul>
       
    91 <p/>
       
    92 </td>
       
    93 </tr>
       
    94 <tr class="">
       
    95 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
    96 <p><code>[critia.Options.Position]</code></p>
       
    97 </td>
       
    98 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">
       
    99 <p>Specifies whether a stand-alone application is launched in the background
       
   100 or foreground.</p>
       
   101 <p>This property is not valid if the <code>Mode</code> is <code>"Chained"</code> (embedded).
       
   102 Embedded applications are automatically launched in the foreground.</p>
       
   103 <p>If this property is not specified, the default is <code>"Foreground"</code>.</p>
       
   104 </td>
       
   105 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
   106 <p>string</p>
       
   107 </td>
       
   108 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">
       
   109 <p>Possible values:</p>
       
   110 <ul>
       
   111 <li><p><code>"Background"</code> - The stand-alone application
       
   112 is launched in the background.</p></li>
       
   113 <li><p><code>"Foreground"</code> - The stand-alone application
       
   114 is launched in the foreground.</p></li>
       
   115 </ul>
       
   116 </td>
       
   117 </tr>
       
   118 <tr class="bg ">
       
   119 <td class="cellrowborder" valign="top" width="25%" headers="d0e18569 ">
       
   120 <p><code>[critia.Options.DocumentPath]</code></p>
       
   121 </td>
       
   122 <td class="cellrowborder" valign="top" width="25%" headers="d0e18574 ">
       
   123 <p>Specifies the full path, including the file name, to the document to
       
   124 launch.</p>
       
   125 </td>
       
   126 <td class="cellrowborder" valign="top" width="25%" headers="d0e18579 ">
       
   127 <p>string</p>
       
   128 </td>
       
   129 <td class="cellrowborder" valign="top" width="25%" headers="d0e18584 ">
       
   130 <p>For example: <code>"C:\\Data\\abc.txt"</code></p>
       
   131 </td>
       
   132 </tr>
       
   133 </tbody>
       
   134 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>