The QGalleryFilter class provides filtering criteria for gallery requests. More...
#include <QGalleryFilter>
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.
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.
Constructs a copy of a gallery intersection filter.
Constructs a copy of a gallery union filter.
Constructs a copy of a gallery meta-data filter.
Destroys a gallery filter.
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.
Casts a filter to a union filter. The filter must be of type Union or this will return an Invalid filter.
Returns a QGalleryUnionFilter.
Returns the type of a filter.
Assigns the value of filter to another filter.