Sophie

Sophie

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

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" />
<!-- qmediacontrol.cpp -->
  <title>Qt Mobility 1.2: QMediaControl 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="qtmultimediakit.html">QtMultimediaKit</a></li>
<li>QMediaControl</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-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#macros">Macros</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMediaControl Class Reference</h1>
<!-- $$$QMediaControl-brief -->
<p>The QMediaControl class provides a base interface for media service controls. <a href="#details">More...</a></p>
<!-- @@@QMediaControl -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QMediaControl&gt;</span></pre><p><b>Inherits: </b><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a>.</p>
<p><b>Inherited by: </b><a href="qaudioencodercontrol.html">QAudioEncoderControl</a>, <a href="qaudioendpointselector.html">QAudioEndpointSelector</a>, <a href="qcameracapturebufferformatcontrol.html">QCameraCaptureBufferFormatControl</a>, <a href="qcameracapturedestinationcontrol.html">QCameraCaptureDestinationControl</a>, <a href="qcameracontrol.html">QCameraControl</a>, <a href="qcameraexposurecontrol.html">QCameraExposureControl</a>, <a href="qcameraflashcontrol.html">QCameraFlashControl</a>, <a href="qcamerafocuscontrol.html">QCameraFocusControl</a>, <a href="qcameraimagecapturecontrol.html">QCameraImageCaptureControl</a>, <a href="qcameraimageprocessingcontrol.html">QCameraImageProcessingControl</a>, <a href="qcameralockscontrol.html">QCameraLocksControl</a>, <a href="qimageencodercontrol.html">QImageEncoderControl</a>, <a href="qmediacontainercontrol.html">QMediaContainerControl</a>, <a href="qmedianetworkaccesscontrol.html">QMediaNetworkAccessControl</a>, <a href="qmediaplayercontrol.html">QMediaPlayerControl</a>, <a href="qmediaplaylistcontrol.html">QMediaPlaylistControl</a>, <a href="qmediaplaylistsourcecontrol.html">QMediaPlaylistSourceControl</a>, <a href="qmediarecordercontrol.html">QMediaRecorderControl</a>, <a href="qmediastreamscontrol.html">QMediaStreamsControl</a>, <a href="qmetadatareadercontrol.html">QMetaDataReaderControl</a>, <a href="qmetadatawritercontrol.html">QMetaDataWriterControl</a>, <a href="qradiotunercontrol.html">QRadioTunerControl</a>, <a href="qvideodevicecontrol.html">QVideoDeviceControl</a>, <a href="qvideoencodercontrol.html">QVideoEncoderControl</a>, <a href="qvideorenderercontrol.html">QVideoRendererControl</a>, <a href="qvideowidgetcontrol.html">QVideoWidgetControl</a>, and <a href="qvideowindowcontrol.html">QVideoWindowControl</a>.</p>
<p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qmediacontrol-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontrol.html#dtor.QMediaControl">~QMediaControl</a></b> ()</td></tr>
</table>
<ul>
<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>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontrol.html#QMediaControl">QMediaControl</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
</table>
<ul>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="macros"></a>
<h2>Macros</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontrol.html#Q_MEDIA_DECLARE_CONTROL">Q_MEDIA_DECLARE_CONTROL</a></b> (  <i>Class</i>,  <i>IId</i> )</td></tr>
</table>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
<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">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>
<!-- $$$QMediaControl-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMediaControl class provides a base interface for media service controls.</p>
<p>Media controls provide an interface to individual features provided by a media service. Most services implement a principal control which exposes the core functionality of the service and a number optional controls which expose any additional functionality.</p>
<p>A pointer to a control implemented by a media service can be obtained using the <a href="qmediaservice.html#requestControl">QMediaService::requestControl</a>() member of <a href="qmediaservice.html">QMediaService</a>. If the service doesn't implement a control it will instead return a null pointer.</p>
<pre class="cpp"> <span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span>control <span class="operator">=</span> qobject_cast<span class="operator">&lt;</span><span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span><span class="operator">&gt;</span>(
         mediaService<span class="operator">-</span><span class="operator">&gt;</span>requestControl(<span class="string">&quot;com.nokia.Qt.QMediaPlayerControl/1.0&quot;</span>));</pre>
<p>Alternatively if the IId of the control has been declared using Q_MEDIA_DECLARE_CONTROL the template version of <a href="qmediaservice.html#requestControl">QMediaService::requestControl</a>() can be used to request the service without explicitly passing the IId.</p>
<pre class="cpp"> <span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span>control <span class="operator">=</span> mediaService<span class="operator">-</span><span class="operator">&gt;</span>requestControl<span class="operator">&lt;</span><span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span><span class="operator">&gt;</span>();</pre>
<p>Most application code will not interface directly with a media service's controls, instead the <a href="qmediaobject.html">QMediaObject</a> which owns the service acts as an intermediary between one or more controls and the application.</p>
</div>
<p><b>See also </b><a href="qmediaservice.html">QMediaService</a> and <a href="qmediaobject.html">QMediaObject</a>.</p>
<!-- @@@QMediaControl -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMediaControl[overload1]$$$QMediaControlQObject* -->
<h3 class="fn"><a name="QMediaControl"></a>QMediaControl::<span class="name">QMediaControl</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )<tt> [protected]</tt></h3>
<p>Constructs a media control with the given <i>parent</i>.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@QMediaControl -->
<!-- $$$~QMediaControl[overload1]$$$~QMediaControl -->
<h3 class="fn"><a name="dtor.QMediaControl"></a>QMediaControl::<span class="name">~QMediaControl</span> ()</h3>
<p>Destroys a media control.</p>
<!-- @@@~QMediaControl -->
</div>
<div class="macros">
<h2>Macro Documentation</h2>
<!-- $$$Q_MEDIA_DECLARE_CONTROL[overload1]$$$Q_MEDIA_DECLARE_CONTROL -->
<h3 class="fn"><a name="Q_MEDIA_DECLARE_CONTROL"></a><span class="name">Q_MEDIA_DECLARE_CONTROL</span> (  <i>Class</i>,  <i>IId</i> )</h3>
<p>The Q_MEDIA_DECLARE_CONTROL macro declares an <i>IId</i> for a <i>Class</i> that inherits from <a href="qmediacontrol.html">QMediaControl</a>.</p>
<p>Declaring an IId for a <a href="qmediacontrol.html">QMediaControl</a> allows an instance of that control to be requested from <a href="qmediaservice.html#requestControl">QMediaService::requestControl</a>() without explicitly passing the IId.</p>
<pre class="cpp"> <span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span>control <span class="operator">=</span> mediaService<span class="operator">-</span><span class="operator">&gt;</span>requestControl<span class="operator">&lt;</span><span class="type"><a href="qmediaplayercontrol.html">QMediaPlayerControl</a></span> <span class="operator">*</span><span class="operator">&gt;</span>();</pre>
<p><b>See also </b><a href="qmediaservice.html#requestControl">QMediaService::requestControl</a>().</p>
<!-- @@@Q_MEDIA_DECLARE_CONTROL -->
</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>