qtms/src/qtmsilbc.cpp
changeset 27 cbb1bfb7ebfb
child 32 edd273b3192a
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 #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     // iFormat is deleted with QTMSFormat::iFormat
       
    32     }
       
    33 
       
    34 gint QTMSILBCFormat::SetMode(const QTMSG711CodecMode aMode)
       
    35     {
       
    36     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    37     if (iFormat)
       
    38         {
       
    39         status = static_cast<TMSILBCFormat*> (iFormat)->SetMode(aMode);
       
    40         }
       
    41     return status;
       
    42     }
       
    43 
       
    44 gint QTMSILBCFormat::GetMode(QTMSG711CodecMode& aMode)
       
    45     {
       
    46     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    47     if (iFormat)
       
    48         {
       
    49         status = static_cast<TMSILBCFormat*> (iFormat)->GetMode(aMode);
       
    50         }
       
    51     return status;
       
    52     }
       
    53 
       
    54 gint QTMSILBCFormat::SetCNG(const gboolean aCng)
       
    55     {
       
    56     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    57     if (iFormat)
       
    58         {
       
    59         status = static_cast<TMSILBCFormat*> (iFormat)->SetCNG(aCng);
       
    60         }
       
    61     return status;
       
    62     }
       
    63 
       
    64 gint QTMSILBCFormat::GetCNG(gboolean& aCng)
       
    65     {
       
    66     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    67     if (iFormat)
       
    68         {
       
    69         status = static_cast<TMSILBCFormat*> (iFormat)->GetCNG(aCng);
       
    70         }
       
    71     return status;
       
    72     }
       
    73 
       
    74 gint QTMSILBCFormat::SetVADMode(const gboolean aVad)
       
    75     {
       
    76     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    77     if (iFormat)
       
    78         {
       
    79         status = static_cast<TMSILBCFormat*> (iFormat)->SetVADMode(aVad);
       
    80         }
       
    81     return status;
       
    82     }
       
    83 
       
    84 gint QTMSILBCFormat::GetVADMode(gboolean& aVad)
       
    85     {
       
    86     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    87     if (iFormat)
       
    88         {
       
    89         status = static_cast<TMSILBCFormat*> (iFormat)->GetVADMode(aVad);
       
    90         }
       
    91     return status;
       
    92     }
       
    93 
       
    94 // End of file