Detailed Description
The QGalleryIntersectionFilter class provides a filter which matches the intersection of two or more meta-data filters.
An intersection filter represents the intersection of a list of gallery filters. Filters can be added to an intersection using either the append(), prepend(), or insert() functions, or using the << operator.
Intersection filters can also combining two gallery filters with the && operator.
Member Function Documentation
QGalleryIntersectionFilter::QGalleryIntersectionFilter ()
Constructs an empty intersection.
QGalleryIntersectionFilter::QGalleryIntersectionFilter ( const QGalleryMetaDataFilter & filter )
Constructs an intersection filter from a meta-data filter.
QGalleryIntersectionFilter::QGalleryIntersectionFilter ( const QGalleryUnionFilter & filter )
Constructs an intersection filter from a union filter.
QGalleryIntersectionFilter::QGalleryIntersectionFilter ( const QGalleryIntersectionFilter & filter )
Constructs a copy of an intersection filter.
QGalleryIntersectionFilter::~QGalleryIntersectionFilter ()
Destroys an intersection filter.
void QGalleryIntersectionFilter::append ( const QGalleryMetaDataFilter & filter )
Appends a meta-data filter to an intersection.
void QGalleryIntersectionFilter::append ( const QGalleryUnionFilter & filter )
Appens a union filter to an intersection.
void QGalleryIntersectionFilter::append ( const QGalleryIntersectionFilter & filter )
Appends the contents of an intersection filter to an intersection.
void QGalleryIntersectionFilter::clear ()
Clears all the filters from an intersection.
int QGalleryIntersectionFilter::filterCount () const
Returns the number of filters in an intersection.
QList<QGalleryFilter> QGalleryIntersectionFilter::filters () const
Return the filters contained in an intersection.
void QGalleryIntersectionFilter::insert ( int index, const QGalleryMetaDataFilter & filter )
Inserts a meta-data filter into an intersection at index.
void QGalleryIntersectionFilter::insert ( int index, const QGalleryUnionFilter & filter )
Inserts a union filter into an intersection at index.
void QGalleryIntersectionFilter::insert ( int index, const QGalleryIntersectionFilter & filter )
Inserts the contents of an intersection filter into an intersection at index.
bool QGalleryIntersectionFilter::isEmpty () const
Returns true if an intersection does not contain any filters, and returns false otherwise.
bool QGalleryIntersectionFilter::isValid () const
Returns true if the filter is a valid intersection filter.
An invalid filter can be obtained by casting a non QGalleryFilter::Intersection type QGalleryFilter to QGalleryIntersectionFilter.
void QGalleryIntersectionFilter::prepend ( const QGalleryMetaDataFilter & filter )
Prepends a meta-data filter to an intersection.
void QGalleryIntersectionFilter::prepend ( const QGalleryUnionFilter & filter )
Prepends a union filter to an intersection.
void QGalleryIntersectionFilter::prepend ( const QGalleryIntersectionFilter & filter )
Prepends the contents of an intersection filter to an intersection.
void QGalleryIntersectionFilter::remove ( int index )
Removes the filter at index from an intersection.
void QGalleryIntersectionFilter::replace ( int index, const QGalleryMetaDataFilter & filter )
Replaces the filter at index in an intersection with a meta-data filter.
void QGalleryIntersectionFilter::replace ( int index, const QGalleryUnionFilter & filter )
Replaces the filter at index in an intersection with a union filter.
QGalleryIntersectionFilter & QGalleryIntersectionFilter::operator<< ( const QGalleryIntersectionFilter & filter )
Appends a filter to an intersection.
QGalleryIntersectionFilter & QGalleryIntersectionFilter::operator= ( const QGalleryIntersectionFilter & filter )
Assigns the value of filter to another intersection filter.