org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-7B5D75D4-33A1-43A7-84EC-51CEB1CE8D51.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-41FAD7DA-0DB7-48E7-BD60-58D6BFD785DA"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-7B5D75D4-33A1-43A7-84EC-51CEB1CE8D51"/><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-7B5D75D4-33A1-43A7-84EC-51CEB1CE8D51"><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>Document</code>, <code>MimeType</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-12440A98-60E1-4084-938A-33AB1BCA083F"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-12440A98-60E1-4084-938A-33AB1BCA083F" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> </caption>
       
    15 <thead align="left">
       
    16 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e19292">
       
    17 <p>Property</p>
       
    18 </th><th class="cellrowborder" valign="top" width="25%" id="d0e19297">
       
    19 <p>Description</p>
       
    20 </th><th class="cellrowborder" valign="top" width="25%" id="d0e19302">
       
    21 <p>Type</p>
       
    22 </th><th class="cellrowborder" valign="top" width="25%" id="d0e19307">
       
    23 <p>Value</p>
       
    24 </th></tr>
       
    25 </thead>
       
    26 <tbody>
       
    27 <tr class="">
       
    28 <td class="cellrowborder" valign="top" width="25%" headers="d0e19292 ">
       
    29 <p><code>criteria.Document</code></p>
       
    30 </td>
       
    31 <td class="cellrowborder" valign="top" width="25%" headers="d0e19297 ">
       
    32 <p>Specifies the document to launch.</p>
       
    33 <p>If <code>MIMEType</code> is not specified, this property is
       
    34 mandatory.</p>
       
    35 </td>
       
    36 <td class="cellrowborder" valign="top" width="25%" headers="d0e19302 ">
       
    37 <p>object</p>
       
    38 </td>
       
    39 <td class="cellrowborder" valign="top" width="25%" headers="d0e19307 ">
       
    40 <p>Object with the properties specified below</p>
       
    41 </td>
       
    42 </tr>
       
    43 <tr class="bg ">
       
    44 <td class="cellrowborder" valign="top" width="25%" headers="d0e19292 ">
       
    45 <p><code>criteria.Document.DocumentPath</code></p>
       
    46 </td>
       
    47 <td class="cellrowborder" valign="top" width="25%" headers="d0e19297 ">
       
    48 <p>Specifies the full path and file name of the document to launch.</p>
       
    49 </td>
       
    50 <td class="cellrowborder" valign="top" width="25%" headers="d0e19302 ">
       
    51 <p>string</p>
       
    52 </td>
       
    53 <td class="cellrowborder" valign="top" width="25%" headers="d0e19307 ">
       
    54 <p>For example, <code>"C:\\Data\\abc.txt"</code>.</p>
       
    55 </td>
       
    56 </tr>
       
    57 <tr class="">
       
    58 <td class="cellrowborder" valign="top" width="25%" headers="d0e19292 ">
       
    59 <p><code>criteria.MIMEType</code></p>
       
    60 </td>
       
    61 <td class="cellrowborder" valign="top" width="25%" headers="d0e19297 ">
       
    62 <p>Specifies the MIME type of the application to launch.</p>
       
    63 <p>If <code>MIMEType</code> is specified, the application being
       
    64 launched determines whether a new document is created.</p>
       
    65 <p>If <code>Document</code> is not specified, this property is
       
    66 mandatory.</p>
       
    67 </td>
       
    68 <td class="cellrowborder" valign="top" width="25%" headers="d0e19302 ">
       
    69 <p>string</p>
       
    70 </td>
       
    71 <td class="cellrowborder" valign="top" width="25%" headers="d0e19307 ">
       
    72 <p>For example: <code>image/jpg</code>.</p>
       
    73 </td>
       
    74 </tr>
       
    75 <tr class="bg ">
       
    76 <td class="cellrowborder" valign="top" width="25%" headers="d0e19292 ">
       
    77 <p><code>[criteria.Options]</code></p>
       
    78 </td>
       
    79 <td class="cellrowborder" valign="top" width="25%" headers="d0e19297 ">
       
    80 <p>Specifies the mode for launching the application based on the given <code>Document</code> or <code>MimeType</code>.</p>
       
    81 </td>
       
    82 <td class="cellrowborder" valign="top" width="25%" headers="d0e19302 ">
       
    83 <p>object</p>
       
    84 </td>
       
    85 <td class="cellrowborder" valign="top" width="25%" headers="d0e19307 ">
       
    86 <p>Object with the properties specified below.</p>
       
    87 </td>
       
    88 </tr>
       
    89 <tr class="">
       
    90 <td class="cellrowborder" valign="top" width="25%" headers="d0e19292 ">
       
    91 <p><code>criteria.Options.Mode</code></p>
       
    92 </td>
       
    93 <td class="cellrowborder" valign="top" width="25%" headers="d0e19297 ">
       
    94 <p>Specifies whether the launched application is embedded within the application
       
    95 that called <code>LaunchDoc</code> (chained) or whether the applications
       
    96 are independent of each other (stand-alone). For more information on chained
       
    97 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>
       
    98 <p>If this property is not specified, the default is <code>"Standalone"</code>.</p>
       
    99 </td>
       
   100 <td class="cellrowborder" valign="top" width="25%" headers="d0e19302 ">
       
   101 <p>string</p>
       
   102 </td>
       
   103 <td class="cellrowborder" valign="top" width="25%" headers="d0e19307 ">
       
   104 <p>Possible values:</p>
       
   105 <ul>
       
   106 <li><p><code>"Chained"</code> - the application is embedded
       
   107 within the application that called <code>LaunchDoc</code>.</p>
       
   108 </li>
       
   109 <li><p><code>"Standalone"</code> - the applications are
       
   110 independent of each other.</p></li>
       
   111 </ul>
       
   112 </td>
       
   113 </tr>
       
   114 </tbody>
       
   115 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>