1 /* |
1 /* |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2008 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". |
8 * |
8 * |
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: VOIP Audio Services |
14 * Description: VOIP Audio Services |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 #include <e32base.h> |
18 #include <e32base.h> |
20 #include <voipringtoneplayer.h> |
19 #include <voipringtoneplayer.h> |
21 #include "VoIPRingTonePlayerImpl.h" |
20 #include "VoIPRingTonePlayerImpl.h" |
22 |
|
23 |
21 |
24 // --------------------------------------------------------------------------- |
22 // --------------------------------------------------------------------------- |
25 // CRingTonePlayer::~CRingTonePlayer |
23 // CRingTonePlayer::~CRingTonePlayer |
26 // --------------------------------------------------------------------------- |
24 // --------------------------------------------------------------------------- |
27 // |
25 // |
63 // |
61 // |
64 // Plays ring tone from file |
62 // Plays ring tone from file |
65 // --------------------------------------------------------------------------- |
63 // --------------------------------------------------------------------------- |
66 // |
64 // |
67 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
65 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
68 TPtr aFileName) |
66 TPtr aFileName) |
69 { |
67 { |
70 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aFileName)); |
68 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aFileName)); |
71 return err; |
69 return err; |
72 } |
70 } |
73 |
71 |
74 // --------------------------------------------------------------------------- |
72 // --------------------------------------------------------------------------- |
75 // CRingTonePlayer::Open |
73 // CRingTonePlayer::Open |
76 // --------------------------------------------------------------------------- |
74 // --------------------------------------------------------------------------- |
77 // |
75 // |
78 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
76 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
79 RFile& aFileHandle) |
77 RFile& aFileHandle) |
80 { |
78 { |
81 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aFileHandle)); |
79 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aFileHandle)); |
82 return err; |
80 return err; |
83 } |
81 } |
84 |
82 |
85 // --------------------------------------------------------------------------- |
83 // --------------------------------------------------------------------------- |
86 // CRingTonePlayer::Open |
84 // CRingTonePlayer::Open |
87 // --------------------------------------------------------------------------- |
85 // --------------------------------------------------------------------------- |
88 // |
86 // |
89 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
87 EXPORT_C TInt CRingTonePlayer::Open(MRingToneObserver& aObserver, |
90 TPtr8 aDesTone, |
88 TPtr8 aDesTone, TPtr8 aMimeType) |
91 TPtr8 aMimeType) |
|
92 { |
89 { |
93 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aDesTone, aMimeType)); |
90 TRAPD(err, iRingTonePlayerImpl->OpenL(aObserver, aDesTone, aMimeType)); |
94 return err; |
91 return err; |
95 } |
92 } |
96 |
93 |