qtms/src/qtmsg711.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 <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         status = static_cast<TMSG711Format*> (iFormat)->SetMode(aMode);
       
    37     }
       
    38     return status;
       
    39 }
       
    40 
       
    41 gint QTMSG711Format::GetMode(QTMSG711CodecMode& aMode)
       
    42 {
       
    43     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    44     if (iFormat) {
       
    45         status = static_cast<TMSG711Format*> (iFormat)->GetMode(aMode);
       
    46     }
       
    47     return status;
       
    48 }
       
    49 
       
    50 gint QTMSG711Format::SetCNG(const gboolean aCng)
       
    51 {
       
    52     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    53     if (iFormat) {
       
    54         status = static_cast<TMSG711Format*> (iFormat)->SetCNG(aCng);
       
    55     }
       
    56     return status;
       
    57 }
       
    58 
       
    59 gint QTMSG711Format::GetCNG(gboolean& aCng)
       
    60 {
       
    61     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    62     if (iFormat) {
       
    63         status = static_cast<TMSG711Format*> (iFormat)->GetCNG(aCng);
       
    64     }
       
    65     return status;
       
    66 }
       
    67 
       
    68 gint QTMSG711Format::SetPlc(const gboolean aPlc)
       
    69 {
       
    70     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    71     if (iFormat) {
       
    72         status = static_cast<TMSG711Format*> (iFormat)->SetPlc(aPlc);
       
    73     }
       
    74     return status;
       
    75 }
       
    76 
       
    77 gint QTMSG711Format::GetPlc(gboolean& aPlc)
       
    78 {
       
    79     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    80     if (iFormat) {
       
    81         status = static_cast<TMSG711Format*> (iFormat)->GetPlc(aPlc);
       
    82     }
       
    83     return status;
       
    84 }
       
    85 
       
    86 gint QTMSG711Format::SetVADMode(const gboolean aVad)
       
    87 {
       
    88     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    89     if (iFormat) {
       
    90         status = static_cast<TMSG711Format*> (iFormat)->SetVADMode(aVad);
       
    91     }
       
    92     return status;
       
    93 }
       
    94 
       
    95 gint QTMSG711Format::GetVADMode(gboolean& aVad)
       
    96 {
       
    97     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    98     if (iFormat) {
       
    99         status = static_cast<TMSG711Format*> (iFormat)->GetVADMode(aVad);
       
   100     }
       
   101     return status;
       
   102 }
       
   103 
       
   104 // End of file