org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-ABF4EC7E-557F-4C6D-8B2C-F734A0BBC082.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 change notifications"/><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-AEB26A58-1DE2-46CB-81EC-6DB3A477B7A3"/><meta name="DC.Relation" scheme="URI" content="GUID-7978FAFD-5BAC-45FD-9C44-5CF7BC484A1E"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-ABF4EC7E-557F-4C6D-8B2C-F734A0BBC082"/><title>Criteria for
       
     5 change notifications </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-ABF4EC7E-557F-4C6D-8B2C-F734A0BBC082"><span>Criteria</span> for
       
     8 change notifications</h1><div>
       
     9 <p/>
       
    10 <p>The <code>criteria</code> object specifies the <a href="GUID-B796D072-4E51-4BC7-9259-84530DB3539D.html#GUID-B796D072-4E51-4BC7-9259-84530DB3539D">system attribute</a> to
       
    11 monitor for changes.</p>
       
    12 <p>The <code>criteria</code> object has a three properties: <code>Entity</code>, <code>Key</code>,
       
    13 and <code>SystemData</code>. These are described in the following
       
    14 table. Properties enclosed in brackets are optional.</p>
       
    15 <div class="tablenoborder"><a name="GUID-C903B191-5828-48F3-8E39-363ECFA79856"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-C903B191-5828-48F3-8E39-363ECFA79856" frame="border" border="1" rules="all"><caption><strong>Table: </strong><span>Criteria</span> object properties</caption>
       
    16 
       
    17 <thead align="left">
       
    18 <tr class="title "><th class="cellrowborder" valign="top" width="25%" id="d0e69004">
       
    19 <p>Property</p>
       
    20 </th><th class="cellrowborder" valign="top" width="25%" id="d0e69009">
       
    21 <p>Description</p>
       
    22 </th><th class="cellrowborder" valign="top" width="25%" id="d0e69014">
       
    23 <p>Type</p>
       
    24 </th><th class="cellrowborder" valign="top" width="25%" id="d0e69019">
       
    25 <p>Value</p>
       
    26 </th></tr>
       
    27 </thead>
       
    28 <tbody>
       
    29 <tr class="">
       
    30 <td class="cellrowborder" valign="top" width="25%" headers="d0e69004 ">
       
    31 <p><code>criteria.Entity</code></p>
       
    32 </td>
       
    33 <td class="cellrowborder" valign="top" width="25%" headers="d0e69009 ">
       
    34 <p>Specifies the entity of the system attribute.</p>
       
    35 <p>Together with <code>Key</code>, this specifies the system attribute
       
    36 to monitor.</p>
       
    37 <p>For more information about entities, see section <a href="GUID-B796D072-4E51-4BC7-9259-84530DB3539D.html#GUID-B796D072-4E51-4BC7-9259-84530DB3539D">System attributes</a>.</p>
       
    38 </td>
       
    39 <td class="cellrowborder" valign="top" width="25%" headers="d0e69014 ">
       
    40 <p>string</p>
       
    41 </td>
       
    42 <td class="cellrowborder" valign="top" width="25%" headers="d0e69019 ">
       
    43 <p>For a complete list of supported entities, see section <a href="GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D.html#GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D">Supported system attributes (entities and keys)</a>.</p>
       
    44 <p>For example: <code>"Battery"</code></p>
       
    45 </td>
       
    46 </tr>
       
    47 <tr class="bg ">
       
    48 <td class="cellrowborder" valign="top" width="25%" headers="d0e69004 ">
       
    49 <p><code>criteria.Key</code></p>
       
    50 </td>
       
    51 <td class="cellrowborder" valign="top" width="25%" headers="d0e69009 ">
       
    52 <p>Specifies the key of the system attribute. The available keys depend
       
    53 on the entity.</p>
       
    54 <p>Together with <code>Entity</code>, this specifies the system
       
    55 attribute to monitor.</p>
       
    56 <p>For more information about keys, see section <a href="GUID-B796D072-4E51-4BC7-9259-84530DB3539D.html#GUID-B796D072-4E51-4BC7-9259-84530DB3539D">System attributes</a>.</p>
       
    57 </td>
       
    58 <td class="cellrowborder" valign="top" width="25%" headers="d0e69014 ">
       
    59 <p>string</p>
       
    60 </td>
       
    61 <td class="cellrowborder" valign="top" width="25%" headers="d0e69019 ">
       
    62 <p>For a complete list of supported keys per entity, see the <strong>Key</strong> column
       
    63 of the tables in section <a href="GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D.html#GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D">Supported system attributes (entities and keys)</a>.</p>
       
    64 <p>For example: <code>"BatteryStrength"</code></p>
       
    65 </td>
       
    66 </tr>
       
    67 <tr class="">
       
    68 <td class="cellrowborder" valign="top" width="25%" headers="d0e69004 ">
       
    69 <p><code>[criteria.SystemData]</code></p>
       
    70 </td>
       
    71 <td class="cellrowborder" valign="top" width="25%" headers="d0e69009 ">
       
    72 <p>Specifies the value of the system attribute.</p>
       
    73 <p>Some system attributes require this property as input for <a href="GUID-7978FAFD-5BAC-45FD-9C44-5CF7BC484A1E.html#GUID-7978FAFD-5BAC-45FD-9C44-5CF7BC484A1E"><code>GetNotification</code></a>. To find out which attributes, see the <strong>Input</strong> column of the
       
    74 tables in section <a href="GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D.html#GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D">Supported system attributes (entities and keys)</a>.</p>
       
    75 <p>The <code>SystemData</code> object has one or more properties
       
    76 that together represent the system attribute value. The exact set of properties
       
    77 depends on the system attribute (specifically, on the system data type used
       
    78 for input).</p>
       
    79 <p>For more information about system attribute values, see sections <a href="GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D.html#GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D">Supported system attributes (entities and keys)</a>.</p>
       
    80 </td>
       
    81 <td class="cellrowborder" valign="top" width="25%" headers="d0e69014 ">
       
    82 <p>object</p>
       
    83 </td>
       
    84 <td class="cellrowborder" valign="top" width="25%" headers="d0e69019 ">
       
    85 <p>The object properties depend on the system attribute. See the <strong>Input</strong> column
       
    86 cell for the appropriate system attribute in section <a href="GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D.html#GUID-DBB90F32-C1FA-4B0C-9BCA-89177140A60D">Supported system attributes (entities and keys)</a>.</p>
       
    87 <p>For example, the <code>Battery - BatteryStrength</code> system
       
    88 attribute takes <a href="GUID-4C79E511-1C1A-475D-BBBB-4F1F6D406340.html#GUID-EBD34604-6A55-4CEA-9F2E-8F00F681D50A"><code>Status</code></a> information as input for <code>GetNotification</code>:</p>
       
    89 <p><code>SystemData.Status = 50</code></p>
       
    90 </td>
       
    91 </tr>
       
    92 </tbody>
       
    93 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>