qtms/src/qtmsmodemsink.cpp
changeset 27 cbb1bfb7ebfb
child 35 2ee890d2f7e7
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 <qtmsmodemsink.h>
       
    19 #include <tmsmodemsink.h>
       
    20 #include "qtmsmodemsinkimpl.h"
       
    21 #include "qtmswrapperexport.h"
       
    22 
       
    23 using namespace QTMS;
       
    24 using namespace TMS;
       
    25 
       
    26 QTMSModemSink::QTMSModemSink() :
       
    27     iSink(NULL)
       
    28     {
       
    29     }
       
    30 
       
    31 QTMSModemSink::~QTMSModemSink()
       
    32     {
       
    33     delete iSink;
       
    34     }
       
    35 
       
    36 gint QTMSModemSink::GetType(QTMSSinkType& sinktype)
       
    37     {
       
    38     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    39     if (iSink)
       
    40         {
       
    41         //status = iSink->GetType(sinktype);
       
    42         status = static_cast<TMSModemSink*> (iSink)->GetType(sinktype);
       
    43         }
       
    44     return status;
       
    45     }
       
    46 
       
    47 // End of file