qtms/src/qtmsg711.cpp
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 #include <tmsg711format.h>
       
    19 #include <qtmsg711format.h>
       
    20 
       
    21 using namespace QTMS;
       
    22 using namespace TMS;
       
    23 
       
    24 QTMSG711Format::QTMSG711Format()
       
    25     {
       
    26     }
       
    27 
       
    28 QTMSG711Format::~QTMSG711Format()
       
    29     {
       
    30     }
       
    31 
       
    32 gint QTMSG711Format::SetMode(const QTMSG711CodecMode aMode)
       
    33     {
       
    34     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    35     if (iFormat)
       
    36         {
       
    37         status = static_cast<TMSG711Format*> (iFormat)->SetMode(aMode);
       
    38         }
       
    39     return status;
       
    40     }
       
    41 
       
    42 gint QTMSG711Format::GetMode(QTMSG711CodecMode& aMode)
       
    43     {
       
    44     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    45     if (iFormat)
       
    46         {
       
    47         status = static_cast<TMSG711Format*> (iFormat)->GetMode(aMode);
       
    48         }
       
    49     return status;
       
    50     }
       
    51 
       
    52 gint QTMSG711Format::SetCNG(const gboolean aCng)
       
    53     {
       
    54     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    55     if (iFormat)
       
    56         {
       
    57         status = static_cast<TMSG711Format*> (iFormat)->SetCNG(aCng);
       
    58         }
       
    59     return status;
       
    60     }
       
    61 
       
    62 gint QTMSG711Format::GetCNG(gboolean& aCng)
       
    63     {
       
    64     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    65     if (iFormat)
       
    66         {
       
    67         status = static_cast<TMSG711Format*> (iFormat)->GetCNG(aCng);
       
    68         }
       
    69     return status;
       
    70     }
       
    71 
       
    72 gint QTMSG711Format::SetPlc(const gboolean aPlc)
       
    73     {
       
    74     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    75     if (iFormat)
       
    76         {
       
    77         status = static_cast<TMSG711Format*> (iFormat)->SetPlc(aPlc);
       
    78         }
       
    79     return status;
       
    80     }
       
    81 
       
    82 gint QTMSG711Format::GetPlc(gboolean& aPlc)
       
    83     {
       
    84     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    85     if (iFormat)
       
    86         {
       
    87         status = static_cast<TMSG711Format*> (iFormat)->GetPlc(aPlc);
       
    88         }
       
    89     return status;
       
    90     }
       
    91 
       
    92 gint QTMSG711Format::SetVADMode(const gboolean aVad)
       
    93     {
       
    94     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    95     if (iFormat)
       
    96         {
       
    97         status = static_cast<TMSG711Format*> (iFormat)->SetVADMode(aVad);
       
    98         }
       
    99     return status;
       
   100     }
       
   101 
       
   102 gint QTMSG711Format::GetVADMode(gboolean& aVad)
       
   103     {
       
   104     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
   105     if (iFormat)
       
   106         {
       
   107         status = static_cast<TMSG711Format*> (iFormat)->GetVADMode(aVad);
       
   108         }
       
   109     return status;
       
   110     }
       
   111 
       
   112 // End of file