MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QGalleryProperty Class Reference

The QGalleryProperty class provides a string constant identifying a gallery property. More...

 #include <QGalleryProperty>

Public Types

enum Attribute { CanRead, CanWrite, CanSort, CanFilter }
flags Attributes

Public Functions

QString ascending () const
QGalleryMetaDataFilter contains ( const QString & string ) const
QString descending () const
QGalleryMetaDataFilter endsWith ( const QString & string ) const
QString name () const
QGalleryMetaDataFilter regExp ( const QString & regExp ) const
QGalleryMetaDataFilter regExp ( const QRegExp & regExp ) const
QGalleryMetaDataFilter startsWith ( const QString & string ) const
QGalleryMetaDataFilter wildcard ( const QString & string ) const
operator QString () const
QGalleryMetaDataFilter operator< ( const QVariant & value ) const
QGalleryMetaDataFilter operator<= ( const QVariant & value ) const
QGalleryMetaDataFilter operator== ( const QVariant & value ) const
QGalleryMetaDataFilter operator> ( const QVariant & value ) const
QGalleryMetaDataFilter operator>= ( const QVariant & value ) const

Macros

Q_DEFINE_GALLERY_PROPERTY ( scope, name )

Detailed Description

The QGalleryProperty class provides a string constant identifying a gallery property.

QAbstractGallery implementations use to QGalleryProperty to define the names of properties in their schemas. In addition to providing the name of a property QGalleryProperty also contains a number of operator overloads and functions for constructing meta-data filters.

See also QGalleryType and QGalleryMetaDataFilter.

Member Type Documentation

enum QGalleryProperty::Attribute
flags QGalleryProperty::Attributes

This enumeration describes the attributes of a property.

Constant Value Description
QGalleryProperty::CanRead 0x01 The value of this property can be read.
QGalleryProperty::CanWrite 0x02 The value of this property can be written.
QGalleryProperty::CanSort 0x04 The value of this property can be used to sort items.
QGalleryProperty::CanFilter 0x08 The value of this property can be used in a filter.

The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.

Member Function Documentation

QString QGalleryProperty::ascending () const

Returns a sort key which indicating items should be sorted a property in ascending order.

QGalleryMetaDataFilter QGalleryProperty::contains ( const QString & string ) const

Returns a gallery filter which tests if a property value contains contains a string literal.

QString QGalleryProperty::descending () const

Returns a sort key which indicating items should be sorted a property in descending order.

QGalleryMetaDataFilter QGalleryProperty::endsWith ( const QString & string ) const

Returns a gallery filter which tests if a property value ends with a string literal.

QString QGalleryProperty::name () const

Returns the name of a property.

QGalleryMetaDataFilter QGalleryProperty::regExp ( const QString & regExp ) const

Returns a gallery filter which tests if a property value matches a regExp.

QGalleryMetaDataFilter QGalleryProperty::regExp ( const QRegExp & regExp ) const

Returns a gallery filter which tests if a property value matches a regExp.

QGalleryMetaDataFilter QGalleryProperty::startsWith ( const QString & string ) const

Returns a gallery filter which tests if a property value starts with a string literal.

QGalleryMetaDataFilter QGalleryProperty::wildcard ( const QString & string ) const

Returns a gallery filter which tests if a property value matches a string literal using wildcard matching.

QGalleryProperty::operator QString () const

Returns the name of a property.

QGalleryMetaDataFilter QGalleryProperty::operator< ( const QVariant & value ) const

Returns a gallery filter which tests if a property is less than a value.

QGalleryMetaDataFilter QGalleryProperty::operator<= ( const QVariant & value ) const

Returns a gallery filter which tests if a property is less than or equal to a value.

QGalleryMetaDataFilter QGalleryProperty::operator== ( const QVariant & value ) const

Returns a gallery filter which tests if a property is equal to a value.

QGalleryMetaDataFilter QGalleryProperty::operator> ( const QVariant & value ) const

Returns a gallery filter which tests if a property is greater than a value.

QGalleryMetaDataFilter QGalleryProperty::operator>= ( const QVariant & value ) const

Returns a gallery filter which tests if a property is greater than or equal to a value.

Macro Documentation

Q_DEFINE_GALLERY_PROPERTY ( scope, name )

Macro for defining the name of a gallery property within the scope of a class or namespace.