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