qtms/src/qtmsglobalgaineffect.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 <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         {
       
    41         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetLevel(level);
       
    42         }
       
    43     return status;
       
    44     }
       
    45 
       
    46 gint QTMSGlobalGainEffect::SetLevel(const guint level)
       
    47     {
       
    48     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    49     if (iEffect)
       
    50         {
       
    51         status = static_cast<TMSGlobalGainEffect*> (iEffect)->SetLevel(level);
       
    52         }
       
    53     return status;
       
    54     }
       
    55 
       
    56 gint QTMSGlobalGainEffect::GetMaxLevel(guint& level)
       
    57     {
       
    58     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    59     if (iEffect)
       
    60         {
       
    61         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetMaxLevel(
       
    62                 level);
       
    63         }
       
    64     return status;
       
    65     }
       
    66 
       
    67 gint QTMSGlobalGainEffect::GetType(QTMSSourceType& sourcetype)
       
    68     {
       
    69     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    70     if (iEffect)
       
    71         {
       
    72         status = static_cast<TMSGlobalGainEffect*> (iEffect)->GetType(
       
    73                 sourcetype);
       
    74         }
       
    75     return status;
       
    76     }
       
    77 
       
    78 // End of file