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