QGalleryFilter Class ReferenceThe QGalleryFilter class provides filtering criteria for gallery requests. More... #include <QGalleryFilter> Public Types
Public Functions
Detailed DescriptionThe 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. Member Type Documentation
|
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.