equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Tracing and convertion utility. |
14 * Description: Telephony Multimedia Service |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef TMSUTILITY_H |
18 #ifndef TMSUTILITY_H |
19 #define TMSUTILITY_H |
19 #define TMSUTILITY_H |
58 // MACRO DEFINITIONS |
58 // MACRO DEFINITIONS |
59 #define RET_ERR_IF_ERR(err) if (err != 0) return err; |
59 #define RET_ERR_IF_ERR(err) if (err != 0) return err; |
60 #define RET_REASON_IF_ERR(s) if(s!=0) return s |
60 #define RET_REASON_IF_ERR(s) if(s!=0) return s |
61 |
61 |
62 #define TMSRESULT(result) TMSUtility::TMSResult(result) |
62 #define TMSRESULT(result) TMSUtility::TMSResult(result) |
63 #define SYMBIANRESULT(result) TMSUtility::SymbianResult(result) |
|
64 #define TOTMSOUTPUT(output) TMSUtility::ToTMSOutput(output) |
63 #define TOTMSOUTPUT(output) TMSUtility::ToTMSOutput(output) |
65 #define TOTAROUTPUT(output) TMSUtility::ToTAROutput(output) |
64 #define TOTAROUTPUT(output) TMSUtility::ToTAROutput(output) |
66 #define TOFOURCC(format) TMSUtility::ToFourCC(format) |
65 #define TOFOURCC(format) TMSUtility::ToFourCC(format) |
67 #define TOTMSFORMAT(fourcc) TMSUtility::FourCCToTMSFormat(fourcc) |
66 #define TOTMSFORMAT(fourcc) TMSUtility::FourCCToTMSFormat(fourcc) |
68 |
67 |
72 // TMSUtility class |
71 // TMSUtility class |
73 class TMSUtility |
72 class TMSUtility |
74 { |
73 { |
75 public: |
74 public: |
76 IMPORT_C static gint TMSResult(const gint error); |
75 IMPORT_C static gint TMSResult(const gint error); |
77 IMPORT_C static TInt SymbianResult(const gint error); |
|
78 IMPORT_C static gint EtelToTMSResult(const gint error); |
76 IMPORT_C static gint EtelToTMSResult(const gint error); |
79 IMPORT_C static TMSAudioOutput ToTMSOutput( |
77 IMPORT_C static TMSAudioOutput ToTMSOutput( |
80 CTelephonyAudioRouting::TAudioOutput taroutput); |
78 CTelephonyAudioRouting::TAudioOutput taroutput); |
81 IMPORT_C static CTelephonyAudioRouting::TAudioOutput ToTAROutput( |
79 IMPORT_C static CTelephonyAudioRouting::TAudioOutput ToTAROutput( |
82 TMSAudioOutput output); |
80 TMSAudioOutput output); |