qtms/src/qtmsdtmf.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 <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         {
       
    40         status = iDtmf->Start();
       
    41         }
       
    42     return status;
       
    43     }
       
    44 
       
    45 gint QTMSDTMF::Stop()
       
    46     {
       
    47     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    48     if (iDtmf)
       
    49         {
       
    50         status = iDtmf->Stop();
       
    51         }
       
    52     return status;
       
    53     }
       
    54 
       
    55 gint QTMSDTMF::SetTone(GString* string)
       
    56     {
       
    57     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    58     if (iDtmf)
       
    59         {
       
    60         status = iDtmf->SetTone(string);
       
    61         }
       
    62     return status;
       
    63     }
       
    64 
       
    65 gint QTMSDTMF::ContinueDTMFStringSending(gboolean aContinue)
       
    66     {
       
    67     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    68     if (iDtmf)
       
    69         {
       
    70         status = iDtmf->ContinueDTMFStringSending(aContinue);
       
    71         }
       
    72     return status;
       
    73     }