qtms/src/qtmsmicsource.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 <tmsmicsource.h>
       
    19 #include <qtmsmicsource.h>
       
    20 #include "qtmsmicsourceimpl.h"
       
    21 #include "qtmswrapperexport.h"
       
    22 
       
    23 using namespace QTMS;
       
    24 using namespace TMS;
       
    25 
       
    26 QTMSMicSource::QTMSMicSource() :
       
    27     iSource(NULL)
       
    28 {
       
    29 }
       
    30 
       
    31 QTMSMicSource::~QTMSMicSource()
       
    32 {
       
    33     delete (static_cast<TMSMicSource*> (iSource));
       
    34 }
       
    35 
       
    36 gint QTMSMicSource::GetType(QTMSSourceType& sourcetype)
       
    37 {
       
    38     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    39     if (iSource) {
       
    40         //status = iSource->GetType(sourcetype);
       
    41         status = static_cast<TMSMicSource*> (iSource)->GetType(sourcetype);
       
    42     }
       
    43     return status;
       
    44 }
       
    45 
       
    46 // End of file