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  · 

DtmfAudio Class Reference
[QtTelephonyModule]

The DtmfAudio class provides a simple interface for playing DTMF tones. More...

    #include <DtmfAudio>

Inherits QObject.

Properties

  • 1 property inherited from QObject

Public Functions

  • 29 public functions inherited from QObject

Public Slots

  • 1 public slot inherited from QObject

Signals

Additional Inherited Members

  • 1 public type inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The DtmfAudio class provides a simple interface for playing DTMF tones.

DTMF tones can be played concurrently or mutually exclusive. If the exclusive behavior is chosen any currently playing tone is stopped and the new tone played. The exclusivePlay() property should be used to determine the behaviour. The duration() determines for how long a DTMF is played.

playDtmfTone() can be used to play a tone indefinitely by using -1 as duration parameter.

This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.

See also QTelephonyTones.


Property Documentation

duration : int

This property holds how long the DTMF tone should be played.

This property indicates the number of milliseconds to play a tone before automatically stopping. The property value must be greater then 0.

By default this property is set to 200.

Access functions:

  • int duration () const
  • void setDuration ( int duration )

exclusivePlay : bool

This property holds whether a request to play a DTMF tone should stop already playing dtmf tones.

Setting this property to true announces to the system that any new request to play a DTMF tone should stop already playing tones.

By default this property is set to true.

Access functions:

  • bool exclusivePlay () const
  • void setExclusivePlay ( bool exclusive )

Member Function Documentation

DtmfAudio::DtmfAudio ( QObject * parent = 0 )

Creates a new DtmfAudio instance with the given parent.

DtmfAudio::~DtmfAudio ()

Destroys the DtmfAudio object.

void DtmfAudio::playDtmfKeyTone ( int keycode )   [slot]

This function determines the DTMF tone for the given Qt keycode and plays the tone for the given duration().

QString DtmfAudio::playDtmfTone ( QTelephonyTones::Tone tone, int duration = -1 )

This function plays the given DTMF tone for the given duration. If duration is -1 the tone will be played indefinitely. Note that the duration() property is ignored when calling this function.

The returned value identifies the tone and casn be used to stop it via stopDtmfTone().

/sa stopDtmfTone()

void DtmfAudio::stopAllTones ()   [slot]

Stops all currently playing DTMF tones started by this object.

void DtmfAudio::stopDtmfTone ( const QString & toneId )

This function stops the tone identified by toneId.

See also playDtmfTone().

void DtmfAudio::toneStopped ( const QString & toneId )   [signal]

Emitted when the DTMF tone identified by toneId stopped playing. This can happen due to a a call to stopAllTones(), stopDtmfTone() or when the playing stopped due to a given timeout.

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