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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.