phoneengine/phoneservices/inc/dtmfservicedepricated.h
author William Roberts <williamr@symbian.org>
Fri, 11 Jun 2010 16:24:06 +0100
branchGCC_SURGE
changeset 38 35db4fa135f4
parent 30 ebdbd102c78a
child 50 377c906a8701
permissions -rw-r--r--
Branch for GCC_SURGE fixes

/*!
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  DTMF API to be used through Qt Highway.
*               THIS IS DEPRICATED API - DO NOT USE!
*               (use DTMFService instead)
*
*/

#ifndef DTMFSERVICEDEPRICATED_H
#define DTMFSERVICEDEPRICATED_H

#include <QObject>
#include <QString>
#include <xqserviceprovider.h>
#include "mpecallcontrolif.h"
#include "mpecallsettersif.h"

class DTMFServiceDepricated : public XQServiceProvider
{
    Q_OBJECT
public:
    DTMFServiceDepricated(
        MPECallControlIF &call, 
        MPECallSettersIF &parameters, 
        QObject *parent = 0);
    ~DTMFServiceDepricated();
    
public slots:
    /*!
        \fn playDTMFTone(const QChar& keyToPlay)
        
        This method plays DTMF tone matching given character.
        If character doesn't match any supported DTMF tone
        it is ignored.
        
        Usage example:
        XQServiceRequest snd("com.nokia.services.telephony","playDTMFTone(QChar)");
        snd << "5";
    */
    void playDTMFTone(const QChar& keyToPlay);

    /*!
        \fn stopDTMFPlay()
        
        This method stops playing DTMF tone if it is currently played.
    */
    void stopDTMFPlay();
    
    
private:
    MPECallControlIF &m_call;
    MPECallSettersIF &m_parameters;    
};

#endif // DTMFSERVICE_H