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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QCallBarring Class Reference
[QtTelephonyModule]

The QCallBarring class provides access to the call barring settings on a GSM phone. More...

    #include <QCallBarring>

Inherits QCommInterface.

Inherited by QModemCallBarring.

Public Types

  • enum BarringType { OutgoingAll, OutgoingInternational, OutgoingInternationalExceptHome, IncomingAll, ..., AllIncomingBarringServices }

Public Functions

  • QCallBarring ( const QString & service = QString::null, QObject * parent = 0, QCommInterface::Mode mode = Client )

Public Slots

  • 1 public slot inherited from QObject

Signals

Additional Inherited Members


Detailed Description

The QCallBarring class provides access to the call barring settings on a GSM phone.

The functionality in this class is implemented in accordance with the Call Barring supplementary service described in 3GPP TS 02.88.

This service makes it possible for a mobile subscriber to have barring of certain categories of outgoing calls according to a barring type which is selected from a set of one or more barring types chosen at provision time and is valid for all outgoing calls, or just those associated with a specific call class (voice, data, etc).

The current state of the call barring service is retrieved using the requestBarringStatus() function. The state of the call barring service is changed using the setBarringStatus() function. An entire group of barred calls can be unlocked with unlockAll(), unlockAllIncoming(), and unlockAllOutgoing().

See also QCommInterface.


Member Type Documentation

enum QCallBarring::BarringType

The type of GSM barring information to be requested or modified.

ConstantValueDescription
QCallBarring::OutgoingAll0All outgoing calls. 3GPP TS 27.007 type AO.
QCallBarring::OutgoingInternational1All outgoing international calls. 3GPP TS 27.007 type OI.
QCallBarring::OutgoingInternationalExceptHome2All outgoing international calls except to home country. 3GPP TS 27.007 type OX.
QCallBarring::IncomingAll3All incoming calls. 3GPP TS 27.007 type AI.
QCallBarring::IncomingWhenRoaming4All incoming calls when roaming. 3GPP TS 27.007 type IR.
QCallBarring::IncomingNonTA5All incoming calls not stored to TA memory. 3GPP TS 27.007 type NT.
QCallBarring::IncomingNonMT6All incoming calls not stored to MT memory. 3GPP TS 27.007 type NM.
QCallBarring::IncomingNonSIM7All incoming calls not stored to SIM/UICC memory. 3GPP TS 27.007 type NS.
QCallBarring::IncomingNonMemory8All incoming calls not stored in any memory. 3GPP TS 27.007 type NA.
QCallBarring::AllBarringServices9All barring services. 3GPP TS 27.007 type AB. This should only be used with QCallBarring::changeBarringPassword().
QCallBarring::AllOutgoingBarringServices10All outgoing barring services. 3GPP TS 27.007 type AG. This should only be used with QCallBarring::changeBarringPassword().
QCallBarring::AllIncomingBarringServices11All incoming barring services. 3GPP TS 27.007 type AC. This should only be used with QCallBarring::changeBarringPassword().


Member Function Documentation

QCallBarring::QCallBarring ( const QString & service = QString::null, QObject * parent = 0, QCommInterface::Mode mode = Client )

Construct a new call barring object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.

If service is empty, this class will use the first available service that supports call barring. If there is more than one service that supports call barring, the caller should enumerate them with QCommServiceManager::supports() and create separate QCallBarring objects for each.

See also QCommServiceManager::supports().

QCallBarring::~QCallBarring ()

Destroy this call barring object.

void QCallBarring::barringStatus ( QCallBarring::BarringType type, QTelephony::CallClass cls )   [signal]

Signal that is emitted in response to a requestBarring() call for type. The cls parameter contains a set of flags indicating which call types have been barred.

See also setBarringStatus() and requestBarringStatus().

void QCallBarring::changeBarringPassword ( QCallBarring::BarringType type, const QString & oldPassword, const QString & newPassword )   [virtual slot]

Change the password for the call barring service type from oldPassword to newPassword. The result is reported via the changeBarringPasswordResult() signal.

See also changeBarringPasswordResult().

void QCallBarring::changeBarringPasswordResult ( QTelephony::Result result )   [signal]

Signal that is emitted to report the result of calling changeBarringPassword().

See also changeBarringPassword().

void QCallBarring::requestBarringStatus ( QCallBarring::BarringType type )   [virtual slot]

Request the current call barring status of type. The service responds with the barringStatus() signal.

See also barringStatus() and setBarringStatus().

void QCallBarring::setBarringStatus ( QCallBarring::BarringType type, const QString & password, QTelephony::CallClass cls, bool lock )   [virtual slot]

Sets the call barring status of type. The cls parameter will contain flags for all of the call types that should be either locked or unlocked according to the lock flag. The password parameter should be the call barring password. The service responds with the setBarringStatusResult() signal.

See also barringStatus(), setBarringStatusResult(), requestBarringStatus(), and changeBarringPassword().

void QCallBarring::setBarringStatusResult ( QTelephony::Result result )   [signal]

Signal that is emitted in response to a setBarringStatus() call. If result is QTelephony::OK, then the request was successful. Otherwise the request failed (usually because the call barring password was incorrect).

See also setBarringStatus().

void QCallBarring::unlockAll ( const QString & password )   [virtual slot]

Unlock all barring services with the supplied call barring password. The service responds with the unlockResult() signal. On AT-based modems, this uses 3GPP TS 27.007 call barring type AB.

See also unlockResult(), unlockAllIncoming(), unlockAllOutgoing(), and changeBarringPassword().

void QCallBarring::unlockAllIncoming ( const QString & password )   [virtual slot]

Unlock all incoming barring services with the supplied call barring password. The service responds with the unlockResult() signal. On AT-based modems, this uses 3GPP TS 27.007 call barring type AB.

See also unlockResult(), unlockAll(), unlockAllOutgoing(), and changeBarringPassword().

void QCallBarring::unlockAllOutgoing ( const QString & password )   [virtual slot]

Unlock all outgoing barring services with the supplied call barring password. The service responds with the unlockResult() signal. On AT-based modems, this uses 3GPP TS 27.007 call barring type AB.

See also unlockResult(), unlockAll(), unlockAllIncoming(), and changeBarringPassword().

void QCallBarring::unlockResult ( QTelephony::Result result )   [signal]

Signal that is emitted in response to an unlockAll(), unlockAllIncoming(), or unlockAllOutgoing() call. If result is QTelephony::OK, then the request was successful. Otherwise the request failed (usually because the call barring password was incorrect).

See also unlockAll(), unlockAllIncoming(), and unlockAllOutgoing().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 85
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 19
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
Page suivante

Le Qt Quarterly au hasard

Logo

Requête de données génériques avec QtXmlPatterns et XQuery

Qt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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

Hébergement Web