phoneengine/phoneservices/inc/dtmfservice.h
changeset 30 ebdbd102c78a
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
     1 /*!
     1 /*!
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    26 
    26 
    27 class DTMFService : public XQServiceProvider
    27 class DTMFService : public XQServiceProvider
    28 {
    28 {
    29     Q_OBJECT
    29     Q_OBJECT
    30 public:
    30 public:
    31     DTMFService(MPECallControlIF &call, MPECallSettersIF &parameters, QObject *parent = 0);
    31     DTMFService(
       
    32         MPECallControlIF &call, 
       
    33         MPECallSettersIF &parameters, 
       
    34         QObject *parent = 0);
    32     ~DTMFService();
    35     ~DTMFService();
    33     
    36     
    34 public slots:
    37 public slots:
    35     /*!
       
    36         \fn recognizeKeySequence(const QString& keySequence)
       
    37         
       
    38         Client can use this method to execute key sequence recognition.
       
    39         Key sequence may contain for example product codes etc. that
       
    40         may cause lower layers to do any specific things.
       
    41 
       
    42         If sequence isn't recognized this method doesn't do anything.
       
    43         If sequence is recognized then task related to the code is executed.
       
    44 
       
    45         Usage example:
       
    46         XQServiceRequest snd("com.nokia.services.telephony","executeKeySequence(QString)");
       
    47         snd << "*#0000#";
       
    48     */
       
    49     void executeKeySequence(const QString& keySequence);
       
    50     
       
    51     /*!
    38     /*!
    52         \fn playDTMFTone(const QChar& keyToPlay)
    39         \fn playDTMFTone(const QChar& keyToPlay)
    53         
    40         
    54         This method plays DTMF tone matching given character.
    41         This method plays DTMF tone matching given character.
    55         If character doesn't match any supported DTMF tone
    42         If character doesn't match any supported DTMF tone
    56         it is ignored.
    43         it is ignored.
    57         
    44         
    58         Usage example:
    45         Usage example:
    59         XQServiceRequest snd("com.nokia.services.telephony","playDTMFTone(QChar)");
    46         XQServiceRequest snd("com.nokia.symbian.IDtmfPlay","playDTMFTone(QChar)");
    60         snd << "5";
    47         snd << "5";
    61     */
    48     */
    62     void playDTMFTone(const QChar& keyToPlay);
    49     void playDTMFTone(const QChar& keyToPlay);
    63 
    50 
    64     /*!
    51     /*!