Sophie

Sophie

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

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" />
<!-- hapticsplayer.qdoc -->
  <title>Qt Mobility 1.2: Haptics Player</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="http://qt.nokia.com/doc/4.7/all-examples.html">Examples</a></li>
<li>Haptics Player</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#overview">Overview</a></li>
<li class="level2"><a href="#use-case">Use Case</a></li>
<li class="level2"><a href="#interface">Interface</a></li>
<li class="level2"><a href="#known-issues">Known Issues</a></li>
</ul>
</div>
<h1 class="title">Haptics Player</h1>
<span class="subtitle"></span>
<!-- $$$hapticsplayer-description -->
<div class="descr"> <a name="details"></a>
<p>Files:</p>
<ul>
<li><a href="hapticsplayer-hapticsplayer-cpp.html">hapticsplayer/hapticsplayer.cpp</a></li>
<li><a href="hapticsplayer-hapticsplayer-h.html">hapticsplayer/hapticsplayer.h</a></li>
<li><a href="hapticsplayer-hapticsplayer-ui.html">hapticsplayer/hapticsplayer.ui</a></li>
<li><a href="hapticsplayer-main-cpp.html">hapticsplayer/main.cpp</a></li>
<li><a href="hapticsplayer-hapticsplayer-pro.html">hapticsplayer/hapticsplayer.pro</a></li>
</ul>
<a name="overview"></a>
<h2>Overview</h2>
<p>This example shows how to use various haptic effects in an application via the <a href="feedback.html">QtMobility Feedback API</a>.</p>
<p>It provides an example of how to use the QtMobility libraries to:</p>
<ul>
<li>play &quot;system theme&quot; haptic effects corresponding to certain predefined events</li>
<li>play a dynamic custom effect, single or repeating</li>
<li>play a custom effect which is stored in a file</li>
</ul>
<a name="use-case"></a>
<h3>Use Case</h3>
<p>This example is more feature complete than the <a href="hapticsquare.html">Haptic Square</a> example, but is intended more as a way to test the haptics provider plugins which are available on a system, than as an example for application developers.</p>
<p>It is useful for people who wish to learn how to use the API to create and play custom effects dynamically, or to allow users of an application to select which haptic effect to play when a particular event occurs. It is also useful to test how effects are implemented on specific devices.</p>
<p>It is a more complex example than the <a href="hapticsquare.html">Haptic Square</a> example, so it is suggested that developers look at that example first.</p>
<a name="interface"></a>
<h3>Interface</h3>
<p>The application is designed to work on desktop and mobile platforms with minimal differences in code between the platforms. The interface consists of three tabs which allow the user to select and play different custom, system theme, and file effects, respectively. The custom effect tab also allows the user to modify the custom effect dynamically, and see the effect of attack and fade, intensity and duration, and periodicity, on the user experience.</p>
<a name="known-issues"></a>
<h3>Known Issues</h3>
<p>The example will not work correctly on platforms which do not have a QFeedbackHapticInterface (haptic effect provider) plugin loaded. On such platforms, the example will do nothing.</p>
</div>
<!-- @@@hapticsplayer -->
  <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>