Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 585

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qambientlightsensor.cpp -->
  <title>Qt Mobility 1.2: QAmbientLightReading Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtsensors.html">QtSensors</a></li>
<li>QAmbientLightReading</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#qambientlightreading-units">QAmbientLightReading Units</a></li>
</ul>
</div>
<h1 class="title">QAmbientLightReading Class Reference</h1>
<!-- $$$QAmbientLightReading-brief -->
<p>The QAmbientLightReading class represents one reading from the ambient light sensor. <a href="#details">More...</a></p>
<!-- @@@QAmbientLightReading -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAmbientLightReading&gt;</span></pre><p><b>Inherits: </b><a href="qsensorreading.html">QSensorReading</a>.</p>
<p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qambientlightreading-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qambientlightreading.html#LightLevel-enum">LightLevel</a></b> { Undefined, Dark, Twilight, Light, Bright, Sunny }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><a href="qambientlightreading.html#lightLevel-prop">lightLevel</a></b> : const LightLevel</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="qsensorreading.html#properties">QSensorReading</a></li>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> LightLevel </td><td class="memItemRight bottomAlign"><b><a href="qambientlightreading.html#lightLevel-prop">lightLevel</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qambientlightreading.html#setLightLevel">setLightLevel</a></b> ( LightLevel <i>lightLevel</i> )</td></tr>
</table>
<ul>
<li class="fn">4 public functions inherited from <a href="qsensorreading.html#public-functions">QSensorReading</a></li>
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAmbientLightReading-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAmbientLightReading class represents one reading from the ambient light sensor.</p>
<a name="qambientlightreading-units"></a>
<h4>QAmbientLightReading Units</h4>
<p>The ambient light sensor returns the intensity of the ambient light using the pre-defined values found in the <a href="qambientlightreading.html#LightLevel-enum">QAmbientLightReading::LightLevel</a> enum.</p>
</div>
<!-- @@@QAmbientLightReading -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$LightLevel$$$Undefined$$$Dark$$$Twilight$$$Light$$$Bright$$$Sunny -->
<h3 class="fn"><a name="LightLevel-enum"></a>enum QAmbientLightReading::<span class="name">LightLevel</span></h3>
<p>This enum represents the ambient light level.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Undefined</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The light level is unknown.</td></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Dark</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">It is dark.</td></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Twilight</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">It is moderately dark.</td></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Light</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">It is light (eg. internal lights).</td></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Bright</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">It is bright (eg. shade).</td></tr>
<tr><td class="topAlign"><tt>QAmbientLightReading::Sunny</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">It is very bright (eg. direct sunlight).</td></tr>
</table>
<!-- @@@LightLevel -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$lightLevel-prop$$$lightLevel -->
<h3 class="fn"><a name="lightLevel-prop"></a><span class="name">lightLevel</span> : const <span class="type"><a href="qambientlightreading.html#LightLevel-enum">LightLevel</a></span></h3>
<p>This property holds the ambient light level.</p>
<p>The value represents the ambient light and comes from <a href="qambientlightreading.html#LightLevel-enum">QAmbientLightReading::LightLevel</a>.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> LightLevel </td><td class="memItemRight bottomAlign"><span class="name"><b>lightLevel</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qambientlightreading.html#qambientlightreading-units">QAmbientLightReading Units</a>.</p>
<!-- @@@lightLevel -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$setLightLevel[overload1]$$$setLightLevelLightLevel -->
<h3 class="fn"><a name="setLightLevel"></a><span class="type">void</span> QAmbientLightReading::<span class="name">setLightLevel</span> ( <span class="type"><a href="qambientlightreading.html#LightLevel-enum">LightLevel</a></span> <i>lightLevel</i> )</h3>
<p>Sets the ambient light level to <i>lightLevel</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qambientlightreading.html#lightLevel-prop">lightLevel</a>().</p>
<!-- @@@setLightLevel -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>