qtms/src/qtmsformat.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 <tmsformat.h>
       
    19 #include <qtmsformat.h>
       
    20 
       
    21 using namespace QTMS;
       
    22 
       
    23 QTMSFormat::QTMSFormat() :
       
    24     iFormat(NULL)
       
    25 {
       
    26 }
       
    27 
       
    28 QTMSFormat::~QTMSFormat()
       
    29 {
       
    30     delete iFormat;
       
    31 }
       
    32 
       
    33 gint QTMSFormat::GetSupportedBitRates(BitRateVector& aVector)
       
    34 {
       
    35     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    36     if (iFormat) {
       
    37         status = iFormat->GetSupportedBitRates(aVector);
       
    38     }
       
    39     return status;
       
    40 }
       
    41 
       
    42 gint QTMSFormat::SetBitRate(const guint aBitrate)
       
    43 {
       
    44     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    45     if (iFormat) {
       
    46         status = iFormat->SetBitRate(aBitrate);
       
    47     }
       
    48     return status;
       
    49 }
       
    50 
       
    51 gint QTMSFormat::GetBitRate(guint& aBitrate)
       
    52 {
       
    53     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    54     if (iFormat) {
       
    55         status = iFormat->GetBitRate(aBitrate);
       
    56     }
       
    57     return status;
       
    58 }
       
    59 
       
    60 gint QTMSFormat::GetType(QTMSFormatType& fmttype)
       
    61 {
       
    62     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    63     if (iFormat) {
       
    64         status = iFormat->GetType(fmttype);
       
    65     }
       
    66     return status;
       
    67 }
       
    68 
       
    69 // End of file