Sophie

Sophie

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

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" />
<!-- qabstractgallery.cpp -->
  <title>Qt Mobility 1.2: QAbstractGallery 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="qtgallery.html">QtGallery</a></li>
<li>QAbstractGallery</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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAbstractGallery Class Reference</h1>
<!-- $$$QAbstractGallery-brief -->
<p>The QAbstractGallery class provides a base class for gallery implementations. <a href="#details">More...</a></p>
<!-- @@@QAbstractGallery -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAbstractGallery&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="qdocumentgallery.html">QDocumentGallery</a>.</p>
<p>This class was introduced in Qt Mobility 1.1.</p>
<ul>
<li><a href="qabstractgallery-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="qabstractgallery.html#QAbstractGallery">QAbstractGallery</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstractgallery.html#dtor.QAbstractGallery">~QAbstractGallery</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractgallery.html#isRequestSupported">isRequestSupported</a></b> ( QGalleryAbstractRequest::RequestType <i>type</i> ) const = 0</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"> virtual QGalleryAbstractResponse * </td><td class="memItemRight bottomAlign"><b><a href="qabstractgallery.html#createResponse">createResponse</a></b> ( QGalleryAbstractRequest * <i>request</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>
<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>
<!-- $$$QAbstractGallery-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAbstractGallery class provides a base class for gallery implementations.</p>
<p>Classes implementing the QAbstractGallery interface allow <a href="qgalleryabstractrequest.html">QGalleryAbstractRequest</a> implementations to connect to a gallery and execute a query or perform an action.</p>
<p>The types of request that can be executed by a gallery are defined in <a href="qgalleryabstractrequest.html#RequestType-enum">QGalleryAbstractRequest::RequestType</a>. If a gallery supports a request the isRequestSupportedFunction() will return true when given the type of the request, and false if it is not supported.</p>
<p>When a <a href="qgalleryabstractrequest.html">QGalleryAbstractRequest</a> is executed it will call <a href="qabstractgallery.html#createResponse">createResponse</a>() on its gallery and pass a pointer to itself. The gallery will then use the <a href="qgalleryabstractrequest.html#type">type</a> property of the request to determine its type and cast to the correct class. Using the properties of the request a gallery can then create a <a href="qgalleryabstractresponse.html">QGalleryAbstractResponse</a> which executes the requested task and returns any results. Some requests will require the response to implement additional interfaces such as <a href="qgalleryresultset.html">QGalleryResultSet</a> to access the data produced in the response.</p>
</div>
<p><b>See also </b><a href="qgalleryabstractrequest.html">QGalleryAbstractRequest</a>.</p>
<!-- @@@QAbstractGallery -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractGallery[overload1]$$$QAbstractGalleryQObject* -->
<h3 class="fn"><a name="QAbstractGallery"></a>QAbstractGallery::<span class="name">QAbstractGallery</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a new gallery.</p>
<p>The <i>parent</i> is passed to <a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a>.</p>
<!-- @@@QAbstractGallery -->
<!-- $$$~QAbstractGallery[overload1]$$$~QAbstractGallery -->
<h3 class="fn"><a name="dtor.QAbstractGallery"></a>QAbstractGallery::<span class="name">~QAbstractGallery</span> ()</h3>
<p>Destroys a gallery.</p>
<!-- @@@~QAbstractGallery -->
<!-- $$$createResponse[overload1]$$$createResponseQGalleryAbstractRequest* -->
<h3 class="fn"><a name="createResponse"></a><span class="type"><a href="qgalleryabstractresponse.html">QGalleryAbstractResponse</a></span> * QAbstractGallery::<span class="name">createResponse</span> ( <span class="type"><a href="qgalleryabstractrequest.html">QGalleryAbstractRequest</a></span> * <i>request</i> )<tt> [pure virtual protected]</tt></h3>
<p>Creates a response to a gallery <i>request</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@createResponse -->
<!-- $$$isRequestSupported[overload1]$$$isRequestSupportedQGalleryAbstractRequest::RequestType -->
<h3 class="fn"><a name="isRequestSupported"></a><span class="type">bool</span> QAbstractGallery::<span class="name">isRequestSupported</span> ( <span class="type"><a href="qgalleryabstractrequest.html#RequestType-enum">QGalleryAbstractRequest::RequestType</a></span> <i>type</i> ) const<tt> [pure virtual]</tt></h3>
<p>Identifies if a gallery supports a request <i>type</i>.</p>
<p>Returns true if the request is supported, and false otherwise.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@isRequestSupported -->
</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>