qtms/src/qtmsformat.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 <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         {
       
    38         status = iFormat->GetSupportedBitRates(aVector);
       
    39         }
       
    40     return status;
       
    41     }
       
    42 
       
    43 gint QTMSFormat::SetBitRate(const guint aBitrate)
       
    44     {
       
    45     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    46     if (iFormat)
       
    47         {
       
    48         status = iFormat->SetBitRate(aBitrate);
       
    49         }
       
    50     return status;
       
    51     }
       
    52 
       
    53 gint QTMSFormat::GetBitRate(guint& aBitrate)
       
    54     {
       
    55     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    56     if (iFormat)
       
    57         {
       
    58         status = iFormat->GetBitRate(aBitrate);
       
    59         }
       
    60     return status;
       
    61     }
       
    62 
       
    63 gint QTMSFormat::GetType(QTMSFormatType& fmttype)
       
    64     {
       
    65     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
       
    66     if (iFormat)
       
    67         {
       
    68         status = iFormat->GetType(fmttype);
       
    69         }
       
    70     return status;
       
    71     }
       
    72 
       
    73 // End of file