equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <tmsformat.h> |
|
19 #include "tmsutility.h" |
|
20 #include "tmsformatbody.h" |
|
21 |
|
22 using namespace TMS; |
|
23 |
|
24 EXPORT_C TMSFormat::TMSFormat() : |
|
25 iFormatBody(NULL) |
|
26 { |
|
27 } |
|
28 |
|
29 EXPORT_C TMSFormat::~TMSFormat() |
|
30 { |
|
31 delete iFormatBody; |
|
32 } |
|
33 |
|
34 EXPORT_C gint TMSFormat::GetSupportedBitRates(BitRateVector& aVector) |
|
35 { |
|
36 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
37 if (iFormatBody) |
|
38 { |
|
39 status = iFormatBody->GetSupportedBitRates(aVector); |
|
40 } |
|
41 return status; |
|
42 } |
|
43 |
|
44 EXPORT_C gint TMSFormat::SetBitRate(const guint aBitrate) |
|
45 { |
|
46 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
47 if (iFormatBody) |
|
48 { |
|
49 status = iFormatBody->SetBitRate(aBitrate); |
|
50 } |
|
51 return status; |
|
52 } |
|
53 |
|
54 EXPORT_C gint TMSFormat::GetBitRate(guint& aBitrate) |
|
55 { |
|
56 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
57 if (iFormatBody) |
|
58 { |
|
59 status = iFormatBody->GetBitRate(aBitrate); |
|
60 } |
|
61 return status; |
|
62 } |
|
63 |
|
64 EXPORT_C gint TMSFormat::GetType(TMSFormatType& formatType) |
|
65 { |
|
66 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
67 if (iFormatBody) |
|
68 { |
|
69 status = iFormatBody->GetType(formatType); |
|
70 } |
|
71 return status; |
|
72 } |
|
73 |
|
74 // End of file |