QLandmarkAttributeFilter Class ReferenceThe QLandmarkAttributeFilter class provides filtering on various landmark attributes. More... #include <QLandmarkAttributeFilter> Inherits QLandmarkFilter. Public Types
Public Functions
Detailed DescriptionThe QLandmarkAttributeFilter class provides filtering on various landmark attributes. You can provide various keys which describe the attribute(s) to search. Precisely which keys may be used depends on the manager and these can be retrieved by using QLandmarkManager::searchableLandmarkAttributeKeys(). The table below outlines some keys that may be used with the default managers on the currently supported platforms. The match flags may be used for attributes which are of string type (typically most, if not all searchable attributes are string types).
Please note that different platforms support different capabilities with the attribute filter.
Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QLandmarkAttributeFilter::AndOperation | 0 | Landmarks must match all the attributes provided by the filter. |
QLandmarkAttributeFilter::OrOperation | 1 | Landmarks must match at least one attribute provided by the filter. |
Creates an attribute filter.
Constructs a copy of other if possible, otherwise constructs a new attribute filter.
Destroys the filter.
Returns the value of the attribute corresponding to key.
If the attribute isn't set an invalid QVariant is returned.
See also setAttribute().
Returns the keys of all attributes set in the filter.
Clears all attributes from the filter.
Returns the match flags for a particular key. The match flags are only take into consideration when the attribute for a particular key is a string. In all other cases the match flags are ignored.
Returns the operation to be used by the filter when multiple attributes are provided.
See also setOperationType().
Removes the attribute corresponding to key from the filter.
Sets the value of the attribute corresponding to key.
For string based attributes a set of matching flags can be provided to define how the string values should be matched. For non-string based attributes the flags are ignored. The beahviour of the filter is undefined if an invalid QVariant is used as a value
See also attribute().
Sets the value of all the attributes correponding to those in keys.
For string based attributes a set of matching flags can be provided to define how the string values should be matched. For non-string based attributes the flags are ignored. The behaviour of the filter is undefined if an invalid QVariant is used as value.
Sets the operation to be used by the filter when multiple attributes are provided to operationType.
See also operationType().