QML MessageFilter ElementThe MessageFilter element specifies a message filter for MessageModel More... Properties
Detailed DescriptionThis element is part of the QtMobility.messaging 1.1 module. Logical combinations of MessageFilters can be formed using MessageIntersectionFilter and MessageUnionFilter. Setting negated to true will negate the filter. The following example creates a filter which filters for messages less than 1024 bytes in size from martin or don, excluding replies from martin. The messages will be sorted by descending timestamp. model: MessageModel { sortBy: MessageModel.Timestamp sortOrder: MessageModel.DescendingOrder filter: MessageIntersectionFilter { MessageFilter { type: MessageFilter.Size value: 1024 comparator: MessageFilter.LessThan } MessageUnionFilter { MessageIntersectionFilter { MessageFilter { type: MessageFilter.Sender value: "martin" comparator: MessageFilter.Includes } MessageFilter { negated: true type: MessageFilter.Subject value: "re:" comparator: MessageFilter.Includes } } MessageFilter { type: MessageFilter.Sender value: "don" comparator: MessageFilter.Includes } } } } See also MessageUnionFilter and MessageIntersectionFilter. Property DocumentationHolds the type of comparison to apply. comparator may be one of the following:
Note that not all comparators make sense for all filter types. For example the relational comparators (LessThan, GreaterThan, etc.) make sense for Size filters, but the inclusion comprators (Includes, Excludes) do not. This documentation was introduced in Qt Mobility Mobility 1.1. Setting negated to true will result in the filter being locially negated. This documentation was introduced in Qt Mobility Mobility 1.1. Holds the field to filter on. type may be one of the following:
This documentation was introduced in Qt Mobility Mobility 1.1. Holds the value to filter on. This documentation was introduced in Qt Mobility Mobility 1.1. |
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 qtmobility-1.2 | |
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