mmappfw_plat/qt_telephony_multimedia_service_api/inc/qtmsinbandtone.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     1 /*
       
     2  * Copyright (c) 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: QT Bindings for TMS
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef QTMS_INBAND_TONE_H
       
    19 #define QTMS_INBAND_TONE_H
       
    20 
       
    21 #include <glib.h>
       
    22 #include <qtms.h>
       
    23 #include <QObject>
       
    24 #include "qtmswrapperexport.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 namespace TMS
       
    28 {
       
    29 class TMSInbandTone;
       
    30 }
       
    31 
       
    32 namespace QTMS
       
    33 {
       
    34 
       
    35 /**
       
    36  * QTMSInbandTone class
       
    37  *
       
    38  * This class provides Inband tone playback capability to the QTMS clients.
       
    39  *
       
    40  * @lib QTMSapi.lib
       
    41  *
       
    42  */
       
    43 class QTMS_WRAPPER_DLL_EXPORT QTMSInbandTone : public QObject
       
    44 {
       
    45     Q_OBJECT
       
    46 public:
       
    47     /**
       
    48      * Destructor
       
    49      */
       
    50     virtual ~QTMSInbandTone();
       
    51 
       
    52     /**
       
    53      * Starts the inband tone playback. The inband volume will correspond to
       
    54      * the current downlink volume level.
       
    55      *
       
    56      * For CS calltype.
       
    57      *
       
    58      * @return
       
    59      *      QTMS_RESULT_SUCCESS if the operation was successful.
       
    60      *
       
    61      */
       
    62     gint Start(QTMSInbandToneType inbandtonetype);
       
    63 
       
    64     /**
       
    65      * Stops the inband tone playback.
       
    66      *
       
    67      * @return
       
    68      *      QTMS_RESULT_SUCCESS if the operation was successful.
       
    69      *
       
    70      */
       
    71     gint Stop();
       
    72 
       
    73     Q_SIGNALS:
       
    74     void InbandToneEvent(const QTMSInbandTone& inbandtone,
       
    75         QTMSSignalEvent event);
       
    76 
       
    77 protected:
       
    78 
       
    79     /**
       
    80      * Constructor
       
    81      */
       
    82     QTMSInbandTone();
       
    83 
       
    84 protected:
       
    85     TMS::TMSInbandTone* iInbandTone;
       
    86 };
       
    87 
       
    88 } //namespace QTMS
       
    89 
       
    90 #endif //__QTMS_INBAND_TONE_H__
       
    91 // End of file