qtms/src/qtmsilbc.cpp
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 #include <tmsilbcformat.h>
       
    19 #include <qtmsilbcformat.h>
       
    20 #include "tmsutility.h"
       
    21 
       
    22 using namespace QTMS;
       
    23 using namespace TMS;
       
    24 
       
    25 QTMSILBCFormat::QTMSILBCFormat()
       
    26 {
       
    27 }
       
    28 
       
    29 QTMSILBCFormat::~QTMSILBCFormat()
       
    30 {
       
    31 }
       
    32 
       
    33 gint QTMSILBCFormat::SetMode(const QTMSG711CodecMode aMode)
       
    34 {
       
    35     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    36     if (iFormat) {
       
    37         status = static_cast<TMSILBCFormat*> (iFormat)->SetMode(aMode);
       
    38     }
       
    39     return status;
       
    40 }
       
    41 
       
    42 gint QTMSILBCFormat::GetMode(QTMSG711CodecMode& aMode)
       
    43 {
       
    44     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    45     if (iFormat) {
       
    46         status = static_cast<TMSILBCFormat*> (iFormat)->GetMode(aMode);
       
    47     }
       
    48     return status;
       
    49 }
       
    50 
       
    51 gint QTMSILBCFormat::SetCNG(const gboolean aCng)
       
    52 {
       
    53     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    54     if (iFormat) {
       
    55         status = static_cast<TMSILBCFormat*> (iFormat)->SetCNG(aCng);
       
    56     }
       
    57     return status;
       
    58 }
       
    59 
       
    60 gint QTMSILBCFormat::GetCNG(gboolean& aCng)
       
    61 {
       
    62     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    63     if (iFormat) {
       
    64         status = static_cast<TMSILBCFormat*> (iFormat)->GetCNG(aCng);
       
    65     }
       
    66     return status;
       
    67 }
       
    68 
       
    69 gint QTMSILBCFormat::SetVADMode(const gboolean aVad)
       
    70 {
       
    71     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    72     if (iFormat) {
       
    73         status = static_cast<TMSILBCFormat*> (iFormat)->SetVADMode(aVad);
       
    74     }
       
    75     return status;
       
    76 }
       
    77 
       
    78 gint QTMSILBCFormat::GetVADMode(gboolean& aVad)
       
    79 {
       
    80     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    81     if (iFormat) {
       
    82         status = static_cast<TMSILBCFormat*> (iFormat)->GetVADMode(aVad);
       
    83     }
       
    84     return status;
       
    85 }
       
    86 
       
    87 // End of file