mmserv/tms/tmsapi/src/tmsg729.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2009 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: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #include <tmsg729format.h>
       
    19 #include "tmsg729formatbody.h"
       
    20 #include "tmsutility.h"
       
    21 
       
    22 using namespace TMS;
       
    23 
       
    24 EXPORT_C TMSG729Format::TMSG729Format() :
       
    25     iBody(NULL)
       
    26     {
       
    27     }
       
    28 
       
    29 EXPORT_C TMSG729Format::~TMSG729Format()
       
    30     {
       
    31     // iBody is deleted with TMSFormat::iFormatBody
       
    32     }
       
    33 
       
    34 EXPORT_C gint TMSG729Format::SetVADMode(const gboolean aVad)
       
    35     {
       
    36     gint status(TMS_RESULT_UNINITIALIZED_OBJECT);
       
    37     if (iBody)
       
    38         {
       
    39         status = iBody->SetVADMode(aVad);
       
    40         }
       
    41     return status;
       
    42     }
       
    43 
       
    44 EXPORT_C gint TMSG729Format::GetVADMode(gboolean& aVad)
       
    45     {
       
    46     gint status(TMS_RESULT_UNINITIALIZED_OBJECT);
       
    47     if (iBody)
       
    48         {
       
    49         status = iBody->GetVADMode(aVad);
       
    50         }
       
    51     return status;
       
    52     }
       
    53 
       
    54 // End of file