Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The RingControl class controls the system ring for incoming calls and messages. More...
#include <RingControl>
Inherits QObject.
The RingControl class controls the system ring for incoming calls and messages.
The RingControl provides a Qt Extended Server Task. Qt Extended Server Tasks are documented in full in the QtopiaServerApplication class documentation.
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().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |