QContentFilter Class Reference
|
Constant | Value | Description |
---|---|---|
QContentFilter::Location | 0 | The root path of the storage media or mount the content is stored on. |
QContentFilter::Role | 1 | The value of QContent::role(); Application, Document or Data. |
QContentFilter::MimeType | 2 | The value of QContent::type(); audio/mpeg, image/gif, etc. |
QContentFilter::Directory | 3 | The directory the content is located in. |
QContentFilter::Category | 4 | The ID of a category assigned to the content. |
QContentFilter::DRM | 5 | The DRM state of the content. |
QContentFilter::Property | 6 | The value of a content property. Arguments are of the form [group]/[key]/[value]. |
QContentFilter::Name | 8 | Filters on the the value of QContent::name(). |
QContentFilter::FileName | 7 | Filters on the file name of content excluding the path. |
QContentFilter::QtopiaType | Role | QtopiaType has been deprecated. Please use Role instead. |
QContentFilter::Synthetic | Property | The Synthetic filter type has been renamed to Property. |
QContentFilter::Unknown | 100 | Invalid filter argument. |
Represents the operand used to combine a group of filters.
Constant | Value | Description |
---|---|---|
QContentFilter::NoOperand | 0 | The operand for an invalid filter or a filter with a single argument and no sub filters. |
QContentFilter::And | 1 | The filter passes the intersection of all its arguments and sub filters. |
QContentFilter::Or | 2 | The filter passes the union of all its arguments and sub filters. |
Constructs an invalid QContentFilter which will not pass any content.
Constructs a copy of the filter other.
Constructs a filter with the FilterType type and the value to match argument.
Constructs a filter which passes content whose property property matches value.
Constructs a filter that passes content with the given content role.
Constructs a filter that passes content with the given mime type.
Constructs a filter that passes content matching the given category filter.
Destroys a QContentFilter.
Returns a list of filter arguments of FilterType type that can be used to further narrow the matches returned by a QContentFilter.
The scope is used to optionally restrict matches to a sub group of arguments matching the filter. The scope of a MimeType filter is the mime major type, so for example the image scope will return arguments like image/jpeg, and image/png. For Category filters scope simply refers to the category scope, and for Synthetic filters it is the property group and key in the form [group]/[key].
Returns the filter arguments of FilterType type, not including sub filters.
See also types() and subFilters().
Constructs a content filter that filters for content belonging to the category with the id categoryId.
Clears the contents of a filter, invalidating it.
See also isValid().
Constructs a content filter that filters for content with a file name value that matches fileName.
Returns true if the filter is valid. A QContentFilter constructed with no arguments is invalid.
See also clear().
Constructs a content filter that filters for content with a mime type value that matches mimeType.
Constructs a content filter that filters for content with a name value that matches name.
Returns true if the filter has been negated.
See also operator~().
Returns the operand used to combine the filter arguments and sub filters.
See also types(), arguments(), and subFilters().
Constructs a content filter that filters for content with the given property group and key that matches value.
This is an overloaded member function, provided for convenience.
Constructs a content filter that filters for content with the given property key and no group that matches value.
Returns any sub filters the the filter is composed of.
See also types() and arguments().
Returns true if a QContent object content passes the filter; otherwise returns false.
Returns a list of filter types common to the arguments the filter is composed of, not including sub filters.
See also arguments() and subFilters().
Compares a QContentFilter to other. Returns true if they are not equal and false otherwise.
Returns a new QContentFilter which will pass the intersection of this filter and other.
Combining an invalid QContentFilter and a valid one will return the valid QContentFilter.
See also And and operator&=().
Restricts this QContentFilter to the intersection of it and another QContentFilter other.
If the QContentFilter is invalid, it will be assigned other.
Assigns other to this QContentFilter.
Compares a QContentFilter to other. Returns true if they are equal and false otherwise.
Creates a new QContentFilter which will pass the union of this filter and other.
Combining an invalid QContentFilter and a valid one will return the valid QContentFilter.
See also Or and operator|=().
Restricts this QContentFilter to the union of it and another QContentFilter other.
If the QContentFilter is invalid, it will be assigned other.
Creates a negated copy of aQContentFilter.
The new filter will pass all content not passed by the existing QContentFilter.
See also negated().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com