QGalleryFilter Class Reference
The QGalleryFilter class provides filtering criteria for gallery requests. More...
#include <QGalleryFilter>
Public Types
enum | Comparator { Equals, LessThan, GreaterThan, LessThanEquals, ..., RegExp } |
enum | Type { Invalid, Intersection, Union, MetaData } |
Public Functions
Detailed Description
The QGalleryFilter class provides filtering criteria for gallery requests.
Member Type Documentation
enum QGalleryFilter::Comparator
Identifies the comparison made by a QGalleryMetaDataFilter.
|
Constant | Value | Description |
QGalleryFilter::Equals | 0 | The filter tests if a meta-data property is equal to a value. |
QGalleryFilter::LessThan | 1 | The filter tests if a meta-data property is less than a value. |
QGalleryFilter::GreaterThan | 2 | The filter tests if a meta-data property is greater than a value. |
QGalleryFilter::LessThanEquals | 3 | The filter tests if a meta-data property is less than or equal to a value. |
QGalleryFilter::GreaterThanEquals | 4 | The filter tests if a meta-data property is greater than or equal to a value. |
QGalleryFilter::Contains | 5 | The filter tests if a meta-data property contains a sub-string. |
QGalleryFilter::StartsWith | 6 | The filter tests if a meta-data property starts with a string. |
QGalleryFilter::EndsWith | 7 | The filter tests if a meta-data property ends with a string. |
QGalleryFilter::Wildcard | 8 | The filter tests if a meta-data property matches a wildcard string. |
QGalleryFilter::RegExp | 9 | The filter tests if a meta-data property matches a regular expression. |
enum QGalleryFilter::Type
Identifies the type of a filter.
Member Function Documentation
QGalleryFilter::QGalleryFilter ()
Constructs a gallery filter of type Invalid.
QGalleryFilter::QGalleryFilter ( const QGalleryFilter & filter )
Constructs a copy of a gallery filter.
Constructs a copy of a gallery intersection filter.
QGalleryFilter::QGalleryFilter ( const QGalleryUnionFilter & filter )
Constructs a copy of a gallery union filter.
QGalleryFilter::QGalleryFilter ( const QGalleryMetaDataFilter & filter )
Constructs a copy of a gallery meta-data filter.
QGalleryFilter::~QGalleryFilter ()
Destroys a gallery filter.
bool QGalleryFilter::isValid () const
Returns true if the type() of the filter is not equal to Invalid.
Casts a filter to an intersection filter. The filter must be of type Intersection or this will return an Invalid filter.
Returns a QGalleryIntersectionFilter.
Casts a filter to a meta-data filter. The filter must be of type MetaData or this will return an Invalid filter.
Returns a QGalleryMetaDataFilter.
QGalleryUnionFilter QGalleryFilter::toUnionFilter () const
Casts a filter to a union filter. The filter must be of type Union or this will return an Invalid filter.
Returns a QGalleryUnionFilter.
Type QGalleryFilter::type () const
Returns the type of a filter.
QGalleryFilter & QGalleryFilter::operator= ( const QGalleryFilter & filter )
Assigns the value of filter to another filter.