phoneengine/phoneservices/inc/dtmfservice.h
changeset 37 ba76fc04e6c2
child 46 bc5a64e5bc3c
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*!
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  DTMF API to be used through Qt Highway.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DTMFSERVICE_H
       
    19 #define DTMFSERVICE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 #include <xqserviceprovider.h>
       
    24 #include "mpecallcontrolif.h"
       
    25 #include "mpecallsettersif.h"
       
    26 
       
    27 class DTMFService : public XQServiceProvider
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     DTMFService(
       
    32         MPECallControlIF &call, 
       
    33         MPECallSettersIF &parameters, 
       
    34         QObject *parent = 0);
       
    35     ~DTMFService();
       
    36     
       
    37 public slots:
       
    38     /*!
       
    39         \fn playDTMFTone(const QChar& keyToPlay)
       
    40         
       
    41         This method plays DTMF tone matching given character.
       
    42         If character doesn't match any supported DTMF tone
       
    43         it is ignored.
       
    44         
       
    45         Usage example:
       
    46         XQServiceRequest snd("com.nokia.symbian.IDtmfPlay","playDTMFTone(QChar)");
       
    47         snd << "5";
       
    48     */
       
    49     void playDTMFTone(const QChar& keyToPlay);
       
    50 
       
    51     /*!
       
    52         \fn stopDTMFPlay()
       
    53         
       
    54         This method stops playing DTMF tone if it is currently played.
       
    55     */
       
    56     void stopDTMFPlay();
       
    57     
       
    58     
       
    59 private:
       
    60     MPECallControlIF &m_call;
       
    61     MPECallSettersIF &m_parameters;    
       
    62 };
       
    63 
       
    64 #endif // DTMFSERVICE_H