The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value. More...
#include <QGalleryMetaDataFilter>
This class was introduced in Qt Mobility 1.1.
QGalleryMetaDataFilter () | |
QGalleryMetaDataFilter ( const QString & property, const QVariant & value, QGalleryFilter::Comparator comparison = QGalleryFilter::Equals ) | |
QGalleryMetaDataFilter ( const QGalleryMetaDataFilter & filter ) | |
~QGalleryMetaDataFilter () | |
QGalleryFilter::Comparator | comparator () const |
bool | isNegated () const |
bool | isValid () const |
QString | propertyName () const |
void | setComparator ( QGalleryFilter::Comparator comparator ) |
void | setNegated ( bool negated ) |
void | setPropertyName ( const QString & name ) |
void | setValue ( const QVariant & value ) |
QVariant | value () const |
QGalleryMetaDataFilter | operator! () const |
QGalleryMetaDataFilter & | operator= ( const QGalleryMetaDataFilter & filter ) |
The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value.
A meta-data filter represents a comparison between the value of an item's meta-data property() and a fixed value(). A filter can be constructed by passing the property name, value, and comparator to the filter contructor or by using one of the operator overloads or constructor functions on QGalleryProperty.
Meta-data filters can also be combined to create union or intersection filters using the || and && operators respectively.
See also QGalleryFilter and QGalleryProperty.
Constructs an empty meta-data filter.
Constructs a meta-data filter which tests if a meta-data property matches a value according to a comparison operator.
This function was introduced in Qt Mobility 1.1.
Constructs a copy of a meta-data filter.
This function was introduced in Qt Mobility 1.1.
Destroys a meta-data filter.
Returns the comparator used by a meta-data filter.
This function was introduced in Qt Mobility 1.1.
See also setComparator().
Returns whether the result of a meta-data filter should be negated.
This function was introduced in Qt Mobility 1.1.
Returns true if the filter is a valid meta-data filter.
An invalid filter can be obtained by casting a non QGalleryFilter::MetaData type QGalleryFilter to QGalleryMetaDataFilter.
This function was introduced in Qt Mobility 1.1.
Returns the name of the property the value of a meta-data filter is compared against.
This function was introduced in Qt Mobility 1.1.
See also setPropertyName().
Sets the comparator used by a meta-data filter.
This function was introduced in Qt Mobility 1.1.
See also comparator().
Sets whether the result of a meta-data filter should be negated.
This function was introduced in Qt Mobility 1.1.
See also isNegated().
Sets the name of the property the value of meta-data filter is compared against.
This function was introduced in Qt Mobility 1.1.
See also propertyName().
Sets the value a property is expected to match for a meta-data filter to pass.
This function was introduced in Qt Mobility 1.1.
See also value().
Returns the value a property is expected to match for a meta-data filter to pass.
This function was introduced in Qt Mobility 1.1.
See also setValue().
Returns a meta-data filter which tests the negation of an existing filter.
This function was introduced in Qt Mobility 1.1.
Assigns the value of filter to another meta-data filter.
This function was introduced in Qt Mobility 1.1.