1 /* |
|
2 * Copyright (c) 2002-2004 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: This module contains the implementation of CPEAudioFactory class |
|
15 * member functions |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "cpeaudiofactory.h" |
|
22 #include "cpeaudiotoneutilityimpl.h" |
|
23 #include <TelephonyAudioRouting.h> |
|
24 |
|
25 // EXTERNAL DATA STRUCTURES |
|
26 // None. |
|
27 |
|
28 // EXTERNAL FUNCTION PROTOTYPES |
|
29 // None. |
|
30 |
|
31 // CONSTANTS |
|
32 // None |
|
33 |
|
34 // MACROS |
|
35 // None. |
|
36 |
|
37 // LOCAL CONSTANTS AND MACROS |
|
38 // None. |
|
39 |
|
40 // MODULE DATA STRUCTURES |
|
41 // None. |
|
42 |
|
43 // LOCAL FUNCTION PROTOTYPES |
|
44 // None. |
|
45 |
|
46 // ==================== LOCAL FUNCTIONS ===================================== |
|
47 //None. |
|
48 |
|
49 // ================= MEMBER FUNCTIONS ======================================= |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // Static constructor |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C CPEAudioFactory* CPEAudioFactory::NewLC() |
|
56 { |
|
57 CPEAudioFactory* self = new( ELeave )CPEAudioFactory(); |
|
58 CleanupStack::PushL( self ); |
|
59 return self; |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // C++ constructor |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C CPEAudioFactory::CPEAudioFactory() |
|
67 { |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CPEAudioFactory::CreateTelephonyAudioRoutingL |
|
72 // creates CTelephonyAudioRouting instance. |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 EXPORT_C CTelephonyAudioRouting* CPEAudioFactory::CreateTelephonyAudioRoutingL( |
|
76 MTelephonyAudioRoutingObserver& aAudioRoutingObserver ) |
|
77 { |
|
78 return CTelephonyAudioRouting::NewL( aAudioRoutingObserver ); |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CPEAudioFactory::CreateAudioToneUtilityL |
|
83 // creates CPEAudioToneUtility instance. |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C CPEAudioToneUtility* CPEAudioFactory::CreateAudioToneUtilityL( |
|
87 MMdaAudioToneObserver& aToneObserver ) |
|
88 { |
|
89 return CPEAudioToneUtilityImpl::NewL( aToneObserver ); |
|
90 } |
|
91 |
|
92 |
|
93 // End of File |
|