Sophie

Sophie

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

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" />
<!-- qgalleryfilter.cpp -->
  <title>Qt Mobility 1.2: QGalleryFilter 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>QGalleryFilter</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="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGalleryFilter Class Reference</h1>
<!-- $$$QGalleryFilter-brief -->
<p>The QGalleryFilter class provides filtering criteria for gallery requests. <a href="#details">More...</a></p>
<!-- @@@QGalleryFilter -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGalleryFilter&gt;</span></pre><p>This class was introduced in Qt Mobility 1.1.</p>
<ul>
<li><a href="qgalleryfilter-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="qgalleryfilter.html#Comparator-enum">Comparator</a></b> { Equals, LessThan, GreaterThan, LessThanEquals, ..., RegExp }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#Type-enum">Type</a></b> { Invalid, Intersection, Union, MetaData }</td></tr>
</table>
<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="qgalleryfilter.html#QGalleryFilter">QGalleryFilter</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#QGalleryFilter-2">QGalleryFilter</a></b> ( const QGalleryFilter &amp; <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#QGalleryFilter-3">QGalleryFilter</a></b> ( const QGalleryIntersectionFilter &amp; <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#QGalleryFilter-4">QGalleryFilter</a></b> ( const QGalleryUnionFilter &amp; <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#QGalleryFilter-5">QGalleryFilter</a></b> ( const QGalleryMetaDataFilter &amp; <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#dtor.QGalleryFilter">~QGalleryFilter</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGalleryIntersectionFilter </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#toIntersectionFilter">toIntersectionFilter</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGalleryMetaDataFilter </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#toMetaDataFilter">toMetaDataFilter</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGalleryUnionFilter </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#toUnionFilter">toUnionFilter</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Type </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#type">type</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGalleryFilter &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgalleryfilter.html#operator-eq">operator=</a></b> ( const QGalleryFilter &amp; <i>filter</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGalleryFilter-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGalleryFilter class provides filtering criteria for gallery requests.</p>
<p>A gallery filter may be a {QGalleryMetaData}{meta-data}, {<a href="qgalleryunionfilter.html">QGalleryUnionFilter</a>}{union}, or {<a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a>}{intersection} filter. The type of a QGalleryFilter is given by the <a href="qgalleryfilter.html#type">type</a>() function, and a filter can be cast to its specific type using one of toMetaFilter(), <a href="qgalleryfilter.html#toUnionFilter">toUnionFilter</a>() or <a href="qgalleryfilter.html#toIntersectionFilter">toIntersectionFilter</a>(). Casting to different type of filter will always result in an invalid filter.</p>
</div>
<p><b>See also </b><a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a>, <a href="qgalleryunionfilter.html">QGalleryUnionFilter</a>, and <a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a>.</p>
<!-- @@@QGalleryFilter -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Comparator$$$Equals$$$LessThan$$$GreaterThan$$$LessThanEquals$$$GreaterThanEquals$$$Contains$$$StartsWith$$$EndsWith$$$Wildcard$$$RegExp -->
<h3 class="fn"><a name="Comparator-enum"></a>enum QGalleryFilter::<span class="name">Comparator</span></h3>
<p>Identifies the comparison made by a <a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a>.</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>QGalleryFilter::Equals</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The filter tests if a meta-data property is equal to a value.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::LessThan</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The filter tests if a meta-data property is less than a value.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::GreaterThan</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The filter tests if a meta-data property is greater than a value.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::LessThanEquals</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The filter tests if a meta-data property is less than or equal to a value.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::GreaterThanEquals</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The filter tests if a meta-data property is greater than or equal to a value.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::Contains</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The filter tests if a meta-data property contains a sub-string.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::StartsWith</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The filter tests if a meta-data property starts with a string.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::EndsWith</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The filter tests if a meta-data property ends with a string.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::Wildcard</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">The filter tests if a meta-data property matches a wildcard string.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::RegExp</tt></td><td class="topAlign"><tt>9</tt></td><td class="topAlign">The filter tests if a meta-data property matches a regular expression.</td></tr>
</table>
<!-- @@@Comparator -->
<!-- $$$Type$$$Invalid$$$Intersection$$$Union$$$MetaData -->
<h3 class="fn"><a name="Type-enum"></a>enum QGalleryFilter::<span class="name">Type</span></h3>
<p>Identifies the type of a filter.</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>QGalleryFilter::Invalid</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The filter is a null <a href="qgalleryfilter.html">QGalleryFilter</a>.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::Intersection</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The filter is a <a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a>.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::Union</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The filter is a <a href="qgalleryunionfilter.html">QGalleryUnionFilter</a>.</td></tr>
<tr><td class="topAlign"><tt>QGalleryFilter::MetaData</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The filter is a <a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a>.</td></tr>
</table>
<!-- @@@Type -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGalleryFilter[overload1]$$$QGalleryFilter -->
<h3 class="fn"><a name="QGalleryFilter"></a>QGalleryFilter::<span class="name">QGalleryFilter</span> ()</h3>
<p>Constructs a gallery filter of type <a href="qgalleryfilter.html#Type-enum">Invalid</a>.</p>
<!-- @@@QGalleryFilter -->
<!-- $$$QGalleryFilter$$$QGalleryFilterconstQGalleryFilter& -->
<h3 class="fn"><a name="QGalleryFilter-2"></a>QGalleryFilter::<span class="name">QGalleryFilter</span> ( const <span class="type">QGalleryFilter</span> &amp; <i>filter</i> )</h3>
<p>Constructs a copy of a gallery <i>filter</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGalleryFilter -->
<!-- $$$QGalleryFilter$$$QGalleryFilterconstQGalleryIntersectionFilter& -->
<h3 class="fn"><a name="QGalleryFilter-3"></a>QGalleryFilter::<span class="name">QGalleryFilter</span> ( const <span class="type"><a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a></span> &amp; <i>filter</i> )</h3>
<p>Constructs a copy of a gallery intersection <i>filter</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGalleryFilter -->
<!-- $$$QGalleryFilter$$$QGalleryFilterconstQGalleryUnionFilter& -->
<h3 class="fn"><a name="QGalleryFilter-4"></a>QGalleryFilter::<span class="name">QGalleryFilter</span> ( const <span class="type"><a href="qgalleryunionfilter.html">QGalleryUnionFilter</a></span> &amp; <i>filter</i> )</h3>
<p>Constructs a copy of a gallery union <i>filter</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGalleryFilter -->
<!-- $$$QGalleryFilter$$$QGalleryFilterconstQGalleryMetaDataFilter& -->
<h3 class="fn"><a name="QGalleryFilter-5"></a>QGalleryFilter::<span class="name">QGalleryFilter</span> ( const <span class="type"><a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a></span> &amp; <i>filter</i> )</h3>
<p>Constructs a copy of a gallery meta-data <i>filter</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGalleryFilter -->
<!-- $$$~QGalleryFilter[overload1]$$$~QGalleryFilter -->
<h3 class="fn"><a name="dtor.QGalleryFilter"></a>QGalleryFilter::<span class="name">~QGalleryFilter</span> ()</h3>
<p>Destroys a gallery filter.</p>
<!-- @@@~QGalleryFilter -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QGalleryFilter::<span class="name">isValid</span> () const</h3>
<p>Returns true if the <a href="qgalleryfilter.html#type">type</a>() of the filter is not equal to Invalid.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@isValid -->
<!-- $$$toIntersectionFilter[overload1]$$$toIntersectionFilter -->
<h3 class="fn"><a name="toIntersectionFilter"></a><span class="type"><a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a></span> QGalleryFilter::<span class="name">toIntersectionFilter</span> () const</h3>
<p>Casts a filter to an intersection filter. The filter must be of type Intersection or this will return an Invalid filter.</p>
<p>Returns a <a href="qgalleryintersectionfilter.html">QGalleryIntersectionFilter</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@toIntersectionFilter -->
<!-- $$$toMetaDataFilter[overload1]$$$toMetaDataFilter -->
<h3 class="fn"><a name="toMetaDataFilter"></a><span class="type"><a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a></span> QGalleryFilter::<span class="name">toMetaDataFilter</span> () const</h3>
<p>Casts a filter to a meta-data filter. The filter must be of type <a href="qgalleryfilter.html#Type-enum">MetaData</a> or this will return an Invalid filter.</p>
<p>Returns a <a href="qgallerymetadatafilter.html">QGalleryMetaDataFilter</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@toMetaDataFilter -->
<!-- $$$toUnionFilter[overload1]$$$toUnionFilter -->
<h3 class="fn"><a name="toUnionFilter"></a><span class="type"><a href="qgalleryunionfilter.html">QGalleryUnionFilter</a></span> QGalleryFilter::<span class="name">toUnionFilter</span> () const</h3>
<p>Casts a filter to a union filter. The filter must be of type Union or this will return an Invalid filter.</p>
<p>Returns a <a href="qgalleryunionfilter.html">QGalleryUnionFilter</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@toUnionFilter -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qgalleryfilter.html#Type-enum">Type</a></span> QGalleryFilter::<span class="name">type</span> () const</h3>
<p>Returns the type of a filter.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@type -->
<!-- $$$operator=[overload1]$$$operator=constQGalleryFilter& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QGalleryFilter</span> &amp; QGalleryFilter::<span class="name">operator=</span> ( const <span class="type">QGalleryFilter</span> &amp; <i>filter</i> )</h3>
<p>Assigns the value of <i>filter</i> to another filter.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator= -->
</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>