qtms/src/qtmsdtmf.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
equal deleted inserted replaced
23:e42293e811d8 24:6c1dfe4da5dd
       
     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 <tmsdtmf.h>
       
    19 #include <qtmsdtmf.h>
       
    20 #include "qtmsdtmfimpl.h"
       
    21 //#include "qtmswrapperexport.h"
       
    22 
       
    23 using namespace QTMS;
       
    24 
       
    25 QTMSDTMF::QTMSDTMF(void) :
       
    26     iDtmf(NULL)
       
    27 {
       
    28 }
       
    29 
       
    30 QTMSDTMF::~QTMSDTMF(void)
       
    31 {
       
    32     delete iDtmf;
       
    33 }
       
    34 
       
    35 gint QTMSDTMF::Start()
       
    36 {
       
    37     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    38     if (iDtmf) {
       
    39         status = iDtmf->Start();
       
    40     }
       
    41     return status;
       
    42 }
       
    43 
       
    44 gint QTMSDTMF::Stop()
       
    45 {
       
    46     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    47     if (iDtmf) {
       
    48         status = iDtmf->Stop();
       
    49     }
       
    50     return status;
       
    51 }
       
    52 
       
    53 gint QTMSDTMF::SetTone(GString* string)
       
    54 {
       
    55     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    56     if (iDtmf) {
       
    57         status = iDtmf->SetTone(string);
       
    58     }
       
    59     return status;
       
    60 }
       
    61 
       
    62 gint QTMSDTMF::ContinueDTMFStringSending(gboolean aContinue)
       
    63 {
       
    64     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    65     if (iDtmf) {
       
    66         status = iDtmf->ContinueDTMFStringSending(aContinue);
       
    67     }
       
    68     return status;
       
    69 }