The QGalleryFilter class provides filtering criteria for gallery requests. More...
#include <QGalleryFilter>
This class was introduced in Qt Mobility 1.1.
enum | Comparator { Equals, LessThan, GreaterThan, LessThanEquals, ..., RegExp } |
enum | Type { Invalid, Intersection, Union, MetaData } |
QGalleryFilter () | |
QGalleryFilter ( const QGalleryFilter & filter ) | |
QGalleryFilter ( const QGalleryIntersectionFilter & filter ) | |
QGalleryFilter ( const QGalleryUnionFilter & filter ) | |
QGalleryFilter ( const QGalleryMetaDataFilter & filter ) | |
~QGalleryFilter () | |
bool | isValid () const |
QGalleryIntersectionFilter | toIntersectionFilter () const |
QGalleryMetaDataFilter | toMetaDataFilter () const |
QGalleryUnionFilter | toUnionFilter () const |
Type | type () const |
QGalleryFilter & | operator= ( const QGalleryFilter & filter ) |
The QGalleryFilter class provides filtering criteria for gallery requests.
A gallery filter may be a {QGalleryMetaData}{meta-data}, {QGalleryUnionFilter}{union}, or {QGalleryIntersectionFilter}{intersection} filter. The type of a QGalleryFilter is given by the type() function, and a filter can be cast to its specific type using one of toMetaFilter(), toUnionFilter() or toIntersectionFilter(). Casting to different type of filter will always result in an invalid filter.
See also QGalleryMetaDataFilter, QGalleryUnionFilter, and QGalleryIntersectionFilter.
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. |
Identifies the type of a filter.
Constant | Value | Description |
---|---|---|
QGalleryFilter::Invalid | 0 | The filter is a null QGalleryFilter. |
QGalleryFilter::Intersection | 1 | The filter is a QGalleryIntersectionFilter. |
QGalleryFilter::Union | 2 | The filter is a QGalleryUnionFilter. |
QGalleryFilter::MetaData | 3 | The filter is a QGalleryMetaDataFilter. |
Constructs a gallery filter of type Invalid.
Constructs a copy of a gallery filter.
This function was introduced in Qt Mobility 1.1.
Constructs a copy of a gallery intersection filter.
This function was introduced in Qt Mobility 1.1.
Constructs a copy of a gallery union filter.
This function was introduced in Qt Mobility 1.1.
Constructs a copy of a gallery meta-data filter.
This function was introduced in Qt Mobility 1.1.
Destroys a gallery filter.
Returns true if the type() of the filter is not equal to Invalid.
This function was introduced in Qt Mobility 1.1.
Casts a filter to an intersection filter. The filter must be of type Intersection or this will return an Invalid filter.
Returns a QGalleryIntersectionFilter.
This function was introduced in Qt Mobility 1.1.
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.
This function was introduced in Qt Mobility 1.1.
Casts a filter to a union filter. The filter must be of type Union or this will return an Invalid filter.
Returns a QGalleryUnionFilter.
This function was introduced in Qt Mobility 1.1.
Returns the type of a filter.
This function was introduced in Qt Mobility 1.1.
Assigns the value of filter to another filter.
This function was introduced in Qt Mobility 1.1.