audiostubs/devsoundextensions_stubs/mmfaudioserverfactorystub/src/mmfaudioserverfactorystub.cpp
equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2006 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: Audio Stubs - Audio Server factory stub class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "devsoundextensionstubs_common.h" |
|
19 #include "mmfaudioserverfactorystub.h" |
|
20 #include "telephonyaudioroutingmanagerstub.h" |
|
21 |
|
22 CMMFAudioServerFactoryStub::CMMFAudioServerFactoryStub() |
|
23 { |
|
24 // No Impl |
|
25 } |
|
26 |
|
27 EXPORT_C MAudioSvrService* CMMFAudioServerFactoryStub::NewL() |
|
28 { |
|
29 DB_IN; |
|
30 CMMFAudioServerFactoryStub* self = new(ELeave)CMMFAudioServerFactoryStub(); |
|
31 MAudioSvrService* ptr = static_cast<MAudioSvrService*>(self); |
|
32 DB_OUT; |
|
33 return ptr; |
|
34 } |
|
35 |
|
36 void CMMFAudioServerFactoryStub::PassDestructorKey(TUid aUid) |
|
37 { |
|
38 DB_IN; |
|
39 iDestructorKeyUid = aUid; |
|
40 DB_OUT; |
|
41 } |
|
42 |
|
43 TInt CMMFAudioServerFactoryStub::Load() |
|
44 { |
|
45 DB_IN; |
|
46 TInt err(KErrNone); |
|
47 DB_OUT; |
|
48 return err; |
|
49 } |
|
50 |
|
51 TInt CMMFAudioServerFactoryStub::Start() |
|
52 { |
|
53 DB_IN; |
|
54 TInt err(KErrNone); |
|
55 iTelephonyAudioRoutingManStub = CTelephonyAudioRoutingManagerStub::NewL(); |
|
56 DB_OUT; |
|
57 return err; |
|
58 } |
|
59 |
|
60 void CMMFAudioServerFactoryStub::Stop() |
|
61 { |
|
62 // No Impl |
|
63 } |
|
64 |
|
65 void CMMFAudioServerFactoryStub::Release() |
|
66 { |
|
67 DB_IN; |
|
68 delete iTelephonyAudioRoutingManStub; |
|
69 REComSession::DestroyedImplementation(iDestructorKeyUid); |
|
70 DB_OUT; |
|
71 } |
|