mmappfw_plat/qt_telephony_multimedia_service_api/inc/qtmsg729format.h
changeset 27 cbb1bfb7ebfb
child 50 762d760dcfdf
equal deleted inserted replaced
25:d881023c13eb 27:cbb1bfb7ebfb
       
     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_G729_FORMAT_H
       
    19 #define QTMS_G729_FORMAT_H
       
    20 
       
    21 #include <qtms.h>
       
    22 #include <qtmsformat.h>
       
    23 #include <QObject>
       
    24 #include "qtmswrapperexport.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 namespace TMS {
       
    28 class TMSFormat;
       
    29 }
       
    30 
       
    31 namespace QTMS {
       
    32 
       
    33 /**
       
    34  * QTMSG729Format class
       
    35  *
       
    36  * This class provides access methods to configure and query G.729 codec
       
    37  * format settings.
       
    38  *
       
    39  * This format class can be used for both the encoder and decoder.
       
    40  *
       
    41  * @lib QTMSapi.lib
       
    42  *
       
    43  */
       
    44 class QTMS_WRAPPER_DLL_EXPORT QTMSG729Format : public QObject,
       
    45                                                public QTMSFormat
       
    46     {
       
    47     Q_OBJECT
       
    48 public:
       
    49     /**
       
    50      * Destructor
       
    51      */
       
    52     virtual ~QTMSG729Format();
       
    53 
       
    54     /**
       
    55      * Toggles on and off Voice Activation Detection (VAD) for G.729 encoder.
       
    56      * Not supported by the decoder.
       
    57      *
       
    58      * This method is allowable at all times, while actively encoding or not.
       
    59      *
       
    60      * @param  vad
       
    61      *      Sets VAD feature on or off.
       
    62      *
       
    63      * @return
       
    64      *      QTMS_RESULT_SUCCESS if the operation was successful.
       
    65      *      QTMS_RESULT_FEATURE_NOT_SUPPORTED if this method is not implemented
       
    66      *      by the adaptation.
       
    67      *      QTMS_RESULT_DOES_NOT_EXIST if the custom interface handle does
       
    68      *      not exist.
       
    69      *
       
    70      */
       
    71     gint SetVADMode(const gboolean vad);
       
    72 
       
    73     /**
       
    74      * Returns current VAD setting of the G.729 encoder.
       
    75      *
       
    76      * This method is allowable at all times, while actively encoding or not.
       
    77      *
       
    78      * @param  vad
       
    79      *      Current VAD setting of the encoder.
       
    80      *
       
    81      * @return
       
    82      *      QTMS_RESULT_SUCCESS if the operation was successful.
       
    83      *
       
    84      */
       
    85     gint GetVADMode(gboolean& vad);
       
    86 
       
    87 protected:
       
    88     /**
       
    89      * Constructor
       
    90      */
       
    91     QTMSG729Format();
       
    92     };
       
    93 
       
    94 } //namespace QTMS
       
    95 
       
    96 #endif //QTMS_G729_FORMAT_H