qtms/src/qtmsinbandtone.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 <qtmsinbandtone.h>
       
    19 #include <tmsinbandtone.h>
       
    20 #include "qtmswrapperexport.h"
       
    21 #include "qtmsinbandtoneimpl.h"
       
    22 
       
    23 using namespace QTMS;
       
    24 
       
    25 QTMSInbandTone::QTMSInbandTone(void) :
       
    26     iInbandTone(NULL)
       
    27 {
       
    28 }
       
    29 
       
    30 QTMSInbandTone::~QTMSInbandTone(void)
       
    31 {
       
    32     delete iInbandTone;
       
    33 }
       
    34 
       
    35 gint QTMSInbandTone::Start(QTMSInbandToneType inbandtonetype)
       
    36 {
       
    37     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    38     if (iInbandTone) {
       
    39         status = iInbandTone->Start(inbandtonetype);
       
    40     }
       
    41     return status;
       
    42 }
       
    43 
       
    44 gint QTMSInbandTone::Stop()
       
    45 {
       
    46     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    47     if (iInbandTone) {
       
    48         status = iInbandTone->Stop();
       
    49     }
       
    50     return status;
       
    51 }
       
    52