RingControl Class Reference
|
Task Name | RingControl |
Interfaces | RingControl |
Services | None |
The RingControl class plays ring tones and enables vibration on incoming calls and messages. The specifics of the tones and vibrations generated are controlled by the active QPhoneProfile.
The RingControl class only supports a single simultaneous ring tone. If both an incoming call and an incoming message are received together, the call ring takes priority and the message ring is discarded. Likewise, if a message ring is in progress when an incoming call is received, the message ring is stopped and the phone ring commenced.
The RingControl class utilizes video ringtones if the VideoRingtone task is deployed. The communications between the two classes is based on messages on the QPE/VideoRingtone QCop channel. For more details see VideoRingtone.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
See also VideoRingtone.
The RingType enumeration represents the current in-progress ring type.
Constant | Value | Description |
---|---|---|
RingControl::NotRinging | 0 | There is no active ring. |
RingControl::Call | 1 | The active ring is for an incoming call. |
RingControl::Msg | 2 | The active ring is for a newly received message. |
Returns true if call ring control is enabled, otherwise false. If enabled, the RingControl class will play ring tones and vibrate subject to the rules for call rings outlined above. If disabled, the RingControl class will not perform any ring control for calls.
By default, call ring control is enabled.
See also setCallRingEnabled().
Returns true if message ring control is enabled, otherwise false. If enabled, the RingControl class will play ring tones and vibrate subject to the rules for message rings outlined above. If disabled, the RingControl class will not perform any ring control for messages.
By default, message ring control is enabled.
See also setMessageRingEnabled().
Return the message ring time, in milliseconds.
See also setMsgRingTime().
Stops audible ringing, but vibration will continue if it was already in progress. To stop both audible ringing and vibration, use stopRing().
Play the soundFile. The sound file will be played at the current ring volume and terminated if another ring even occurs. Sounds may only be played through this API if the ring type is NotRinging.
Return the time, in milliseconds, the current ring has been in progress. If there is no in-progress ring, returns 0.
Returns the in-progress ring tpe, or NotRinging if there is no in-progress ring.
Emitted whenever the current ring type changes. type will be the new value.
Sets whether call ring control is enabled.
See also callRingEnabled().
Sets whether message ring control is enabled.
See also messageRingEnabled().
Set the message ring time to time milliseconds.
See also msgRingTime().
Sets the duration in milliseconds of the vibration period. When vibration is active, the vibration will toggle on for duration then off for duration milliseconds.
See also vibrateDuration().
Sets the volume at which the rings will be played. volume may be from 0 (silent) to 5 (loudest).
The ring volume only effects non-ascending rings. Ascending rings always commence at the lowest volume and slowly increase to the maximum volume. Generally setVolume() should not be called directly as it will be overridden by any change to the active QPhoneProfile.
Stop the message alert sound. Does nothing if no message alert is in progress.
Stop all ringing and vibration. Does nothing if no ring is in progress.
Return the duration of the vibration period in milliseconds.
See also setVibrateDuration().
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