QtMobility Reference Documentation

Contents

QML MessageUnionFilter Element

The MessageUnionFilter element specifies a union of MessageFilter More...

  • List of all members, including inherited members
  • Properties

    Detailed Description

    This element is part of the QtMobility.messaging 1.1 module.

    Logical OR combinations of MessageFilters can be formed using MessageUnionFilter.

    Setting negated to true will negate the filter.

    The following example creates a filter which filters for messages from martin or don.

             model: MessageModel {
                 sortBy: MessageModel.Timestamp
                 sortOrder: MessageModel.DescendingOrder
                 filter: MessageUnionFilter {
                     MessageFilter {
                         type: MessageFilter.Sender
                         value: "martin"
                         comparator: MessageFilter.Includes
                     }
                     MessageFilter {
                         type: MessageFilter.Sender
                         value: "don"
                         comparator: MessageFilter.Includes
                     }
                 }
             }

    See also MessageIntersectionFilter and MessageFilter.

    Property Documentation

    read-onlydefaultfilters : list<MessageFilter>

    The filters to OR together.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    negated : bool

    Setting negated to true will result in the filter being locially negated.

    This documentation was introduced in Qt Mobility Mobility 1.1.