qtms/src/qtmsglobalgaineffect.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 <tmsglobalgaineffect.h>
       
    19 #include <qtmsglobalgaineffect.h>
       
    20 #include "qtmsglobalgaineffectimpl.h"
       
    21 #include "qtmswrapperexport.h"
       
    22 
       
    23 using namespace QTMS;
       
    24 using namespace TMS;
       
    25 
       
    26 QTMSGlobalGainEffect::QTMSGlobalGainEffect() :
       
    27     iEffect(NULL)
       
    28 {
       
    29 }
       
    30 
       
    31 QTMSGlobalGainEffect::~QTMSGlobalGainEffect()
       
    32 {
       
    33     delete (static_cast<TMSGlobalGainEffect*> (iEffect));
       
    34 }
       
    35 
       
    36 gint QTMSGlobalGainEffect::GetLevel(guint& level)
       
    37 {
       
    38     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    39     if (iEffect) {
       
    40         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetLevel(level);
       
    41     }
       
    42     return status;
       
    43 }
       
    44 
       
    45 gint QTMSGlobalGainEffect::SetLevel(const guint level)
       
    46 {
       
    47     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    48     if (iEffect) {
       
    49         status = static_cast<TMSGlobalGainEffect*> (iEffect)->SetLevel(level);
       
    50     }
       
    51     return status;
       
    52 }
       
    53 
       
    54 gint QTMSGlobalGainEffect::GetMaxLevel(guint& level)
       
    55 {
       
    56     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    57     if (iEffect) {
       
    58         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetMaxLevel(level);
       
    59     }
       
    60     return status;
       
    61 }
       
    62 
       
    63 gint QTMSGlobalGainEffect::GetType(QTMSSourceType& sourcetype)
       
    64 {
       
    65     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    66     if (iEffect) {
       
    67         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetType(sourcetype);
       
    68     }
       
    69     return status;
       
    70 }
       
    71 
       
    72 // End of file