qtms/src/qtmsspeakersink.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 <qtmsspeakersink.h>
       
    19 #include <tmsspeakersink.h>
       
    20 
       
    21 using namespace QTMS;
       
    22 using namespace TMS;
       
    23 
       
    24 QTMSSpeakerSink::QTMSSpeakerSink() :
       
    25     iSink(NULL)
       
    26 {
       
    27 }
       
    28 
       
    29 QTMSSpeakerSink::~QTMSSpeakerSink()
       
    30 {
       
    31     delete (static_cast<TMSSpeakerSink*> (iSink));
       
    32 }
       
    33 
       
    34 gint QTMSSpeakerSink::GetType(QTMSSinkType& sinktype)
       
    35 {
       
    36     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    37     if (iSink) {
       
    38         //status = iSink->GetType(sinktype); //should be ok
       
    39         status = static_cast<TMSSpeakerSink*> (iSink)->GetType(sinktype);
       
    40     }
       
    41     return status;
       
    42 }
       
    43 
       
    44 // End of file