Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QValueSpace Namespace

The QValueSpace namespace contains miscellaneous identifiers used throughtout the Publish and Subscribe API. More...

 #include <QValueSpace>

Types

enum LayerOption { UnspecifiedLayer, PermanentLayer, TransientLayer, WritableLayer, ReadOnlyLayer }
flags LayerOptions

Macros

QVALUESPACE_GCONF_LAYER
QVALUESPACE_JSONDB_LAYER
QVALUESPACE_NONVOLATILEREGISTRY_LAYER
QVALUESPACE_VOLATILEREGISTRY_LAYER

Detailed Description

The QValueSpace namespace contains miscellaneous identifiers used throughtout the Publish and Subscribe API.

Type Documentation

enum QValueSpace::LayerOption
flags QValueSpace::LayerOptions

This enum describes the behaviour of the Value Space layer. In addition this enum is used as a filter when constructing a QValueSpacePublisher or QValueSpaceSubscriber.

ConstantValueDescription
QValueSpace::UnspecifiedLayer0x0000Used as a filter to specify that any layer should be used.
QValueSpace::PermanentLayer0x0001Indicates that the layer uses a permanent backing store. When used as a filter only layers that use a permanent backing store will be used.
Values stored in a layer with this option will persist with in the layer after the QValueSpacePublisher that published them is destroyed.
This option and the TransientLayer option are mutually exclusive.
QValueSpace::TransientLayer0x0002Indicates that the layer does not use a permanent backing store. When used as a filter only layers that do not use permanent backing stores will be used.
Values stored in a layer with this option will be removed when the QValueSpacePublisher that published them is destroyed.
This option and the PermanentLayer option are mutually exclusive.
QValueSpace::WritableLayer0x0004Indicates that the layer can update its contents. When used as a filter only layers that are writable will be used.
Applications can use QValueSpacePublisher to publish values to layers that have this option.
This option and the ReadOnlyLayer option are mutually exclusive.
QValueSpace::ReadOnlyLayer0x0008Indicates that the layer cannot update its contents. When used as a filter only layers that are read-only will be used.
Applications can not publish values to layers with this option.
This option and the WritableLayer option are mutually exclusive.

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

Macro Documentation

QVALUESPACE_GCONF_LAYER

The UUID of the GConf layer as a QUuid. The actual UUID value is {0e2e5da0-0044-11df-941c-0002a5d5c51b}.

This value can be passed to the constructor of QValueSpacePublisher or QValueSpaceSubscriber to force the constructed object to only access the GConf layer.

You can test if the GConf layer is available by checking if the list returned by QValueSpace::availableLayers() contains this value. The GConf layer is only available on Linux platforms.

QVALUESPACE_JSONDB_LAYER

The UUID of the JsonDb layer as a QUuid. The actual UUID value is {a167384c-6acf-2738-c8d5-a088ac6ec2d6}.

This value can be passed to the constructor of QValueSpacePublisher or QValueSpaceSubscriber to force the constructed object to only access the JsonDb layer.

You can test if the JsonDb layer is available by checking if the list returned by QValueSpace::availableLayers() contains this value. The JsonDb layer is only available on Linux platforms.

QVALUESPACE_NONVOLATILEREGISTRY_LAYER

The UUID of the Non-Volatile Registry layer as a QUuid. The actual UUID value is {8e29561c-a0f0-4e89-ba56-080664abc017}.

This value can be passed to the constructor of QValueSpacePublisher or QValueSpaceSubscriber to force the constructed object to only access the Non-Volatile Registry layer.

You can test if the Non-Volatile Registry layer is available by checking if the list returned by QValueSpace::availableLayers() contains this value. The Non-Volatile Registry layer is only available on Windows platforms.

QVALUESPACE_VOLATILEREGISTRY_LAYER

The UUID of the Volatile Registry layer as a QUuid. The actual UUID value is {8ceb5811-4968-470f-8fc2-264767e0bbd9}.

This value can be passed to the constructor of QValueSpacePublisher or QValueSpaceSubscriber to force the constructed object to only access the Volatile Registry layer.

You can test if the Volatile Registry layer is available by checking if the list returned by QValueSpace::availableLayers() contains this value. The Volatile Registry layer is only available on Windows platforms.

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 5.0-snapshot
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 !
 
 
 
 
Partenaires

Hébergement Web