QAbstractCallPolicyManager Class Reference
|
Constant | Value | Description |
---|---|---|
QAbstractCallPolicyManager::CannotHandle | 0 | The number cannot be handled by this policy manager at all, or network registration is not available so it cannot be handled at this time. |
QAbstractCallPolicyManager::CanHandle | 1 | The call can be handled by this policy manager. If multiple policy managers return this value, the user will be given a choice of call types before the call is placed. |
QAbstractCallPolicyManager::MustHandle | 2 | The call must be handled by this policy manager, and all other policy managers that return CanHandle should be ignored. This is typically used for emergency calls that must be placed via a specific network (e.g. GSM). It could also be returned if the user has configured a specific policy manager as their preferred call type. |
QAbstractCallPolicyManager::NeverHandle | 3 | The call must never be handled by any policy manager. The call will be rejected. This is typically used for emergency calls when the device is in airplane mode. The policy manager would normally return MustHandle, but cannot right now. |
Create a new call policy manager and attach it to parent.
Returns the call type that will be used to create the QPhoneCall object with QPhoneCallManager::create().
See also trCallType() and callTypeIcon().
Returns the icon to display to indicate the call type. This is typically displayed next to the trCallType() text.
See also callType() and trCallType().
Toggles the status between Do not disturb and normal status. Returns true if Do Not Disturb state is activated, otherwise returns false.
Determine how to handle calls to number.
If the call policy manager supports presence, determine if the party at number is currently available. If the call policy manager does not support presence, this function should always return true.
Returns a reference to the call policy manager that handles call of type; otherwise returns 0.
QString t = "Voice"; QAbstractCallPolicyManager* m = QAbstractCallPolicyManager::managerforCallType( t ); if (m) { Q_ASSERT(m->calltype() == "Voice"); }
Signal that is emitted when the registration state of the telephony service being used by this call policy manager changes.
See also registrationState(), registrationMessage(), and registrationIcon().
Returns the name of an icon to display next to the registrationMessage(), or an empty QString for no icon.
See also registrationChanged(), registrationState(), and registrationMessage().
Returns a human-readable message to be displayed to indicate the current registration state of the telephony service being used by this call policy manager. This function is called whenever the registration state changes.
Returns an empty QString if the call policy manager does not wish to have a message displayed. Messages are normally only displayed if the registration is not present, or the telephony service is searching for a new network to register to. Once successfully registered, the returned message should be empty.
See also registrationChanged(), registrationState(), and registrationIcon().
Returns the current registration state of the telephony service being used by this call policy manager.
See also registrationChanged(), registrationMessage(), and registrationIcon().
Sets the current cell location to location.
Returns true if the policy manager supports presence.
Returns the translated, human-readable, version of the call type.
See also callType() and callTypeIcon().
If isOnThePhone is true, updates the local presence to away. Otherwise updates the local presence to online. If the call policy manager does not support presence, this function should do nothing.
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