IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QLocation Namespace

The QLocation namespace contains miscellaneous identifiers used throughout the QtLocation module.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QLocation Namespace

  • Header: QLocation

  • qmake: QT += location

I. Detailed Description

 

II. Type Documentation

 

II-1. enum QLocation::Visibility

flags QLocation::VisibilityScope

Defines the visibility of a QPlace or QPlaceCategory.

Constant

Value

Description

QLocation::UnspecifiedVisibility

0x00

No explicit visibility has been defined.

QLocation::DeviceVisibility

0x01

Places and categories with DeviceVisibility are only stored on the local device.

QLocation::PrivateVisibility

0x02

Places and categories with PrivateVisibility are only visible to the current user. The data may be stored either locally or on a remote service or both.

QLocation::PublicVisibility

0x04

Places and categories with PublicVisibility are visible to everyone.

A particular manager may support one or more visibility scopes. For example a manager from one provider may only provide places that are public to everyone, whilst another may provide both public and private places.

The meaning of unspecified visibility depends on the context it is used.

When saving a place or category, the default visibility is unspecified meaning that the manager chooses an appropriate visibility scope for the item.

When searching for places, unspecified means that places of any scope is returned.

The VisibilityScope type is a typedef for QFlags<Visibility>. It stores an OR combination of Visibility values.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+