QDeviceIndicatorsProvider Class Reference
|
Attribute | type(units) |
---|---|
Period (Flash state) | int (ms) |
Duty Cycle(Flash state) | int (%) |
TransitionTime (Throb state) | int (ms) |
Color | QColor |
Because the indicator names and supported states and attributes are device specific, it is expected that the implementer of the QDeviceIndicatorsProvider derived class will provide these to the user of QDeviceIndicators. If the possible values a particular attribute need to be queryable, then another attribute can be made specifically for this eg a SupportedColors attribute whose type is QList<QColor>. Generally this would not be necessary since the possible supported values should be provided to the user of QDeviceIndicators.
This class is part of the Qt Extended server and a specific implementation should be provided as part of a server task.
See also QDeviceIndicators.
Create a new QDeviceIndicatorsProvider instance with the specified parent.
Add an indicator that this QDeviceIndicatorsProvider instance will provide. changeIndicatorState() callbacks will only occur for indicators added in this way or with setSupportedIndicators(). This function will have no effect and produce a warning if an indicator already exists that is already being provided by this or another provider.
The initial state of the indicator is QDeviceIndicators::Off.
See also setSupportedIndicators().
Called when the attribute of indicator should be set to a new value. This is usually in response to a QDeviceIndicators::setIndicatorAttribute() call. Subclasses should implement the hardware specific operations from this function.
See also changeIndicatorState().
Called when the indicator should be set to state. This is usually in response to a QDeviceIndicators::setIndicatorState() call. Subclasses should implement the hardware specific operations from this function.
See also changeIndicatorAttribute().
Sets the published attribute of indicator to value. This is generally called during the changeIndicatorAttribute() callback to reflect the successful change in attribute or at startup to publish the attribute's initial value, but it can be called at any time.
This function has no effect if indicator has not previously been added or set.
See also setIndicatorState().
Set the published indicator state to state. This is generally called during the changeIndicatorState() callback to indicate that the state was successfully changed or at startup to set the initial state, but it can be called at any time.
This function has no effect if indicator has not previously been set up.
See also setIndicatorAttribute().
Sets the published list of the supported states of indicator to states.
This function has no effect if indicator has not previously been set up.
See also setIndicatorState().
Set the indicators that this QDeviceIndicatorsProvider instance will provide. changeIndicatorState() callbacks will only occur for indicators set in this way or added with addSupportedIndicator(). If an indicator in the in the indicators list is already provided by another QDeviceIndicators instance, then that indicator is not set and a warning is produced.
The initial state of the indicators is QDeviceIndicators::Off.
See also addSupportedIndicator().
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 qtextended4.4 | |
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