QtMobility Reference Documentation

QGalleryMetaDataFilter Class Reference

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.

Public Functions

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 )

Detailed Description

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.

Member Function Documentation

QGalleryMetaDataFilter::QGalleryMetaDataFilter ()

Constructs an empty meta-data filter.

QGalleryMetaDataFilter::QGalleryMetaDataFilter ( const QString & property, const QVariant & value, QGalleryFilter::Comparator comparison = QGalleryFilter::Equals )

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.

QGalleryMetaDataFilter::QGalleryMetaDataFilter ( const QGalleryMetaDataFilter & filter )

Constructs a copy of a meta-data filter.

This function was introduced in Qt Mobility 1.1.

QGalleryMetaDataFilter::~QGalleryMetaDataFilter ()

Destroys a meta-data filter.

QGalleryFilter::Comparator QGalleryMetaDataFilter::comparator () const

Returns the comparator used by a meta-data filter.

This function was introduced in Qt Mobility 1.1.

See also setComparator().

bool QGalleryMetaDataFilter::isNegated () const

Returns whether the result of a meta-data filter should be negated.

This function was introduced in Qt Mobility 1.1.

bool QGalleryMetaDataFilter::isValid () const

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.

QString QGalleryMetaDataFilter::propertyName () const

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().

void QGalleryMetaDataFilter::setComparator ( QGalleryFilter::Comparator comparator )

Sets the comparator used by a meta-data filter.

This function was introduced in Qt Mobility 1.1.

See also comparator().

void QGalleryMetaDataFilter::setNegated ( bool negated )

Sets whether the result of a meta-data filter should be negated.

This function was introduced in Qt Mobility 1.1.

See also isNegated().

void QGalleryMetaDataFilter::setPropertyName ( const QString & name )

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().

void QGalleryMetaDataFilter::setValue ( const QVariant & value )

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().

QVariant QGalleryMetaDataFilter::value () const

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().

QGalleryMetaDataFilter QGalleryMetaDataFilter::operator! () const

Returns a meta-data filter which tests the negation of an existing filter.

This function was introduced in Qt Mobility 1.1.

QGalleryMetaDataFilter & QGalleryMetaDataFilter::operator= ( const QGalleryMetaDataFilter & filter )

Assigns the value of filter to another meta-data filter.

This function was introduced in Qt Mobility 1.1.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.