|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 // INCLUDE FILES |
|
17 #include <e32std.h> |
|
18 #include "mmfaudioserver.h" |
|
19 #include <a3f/mmfaudioserverinterface.h> |
|
20 #include "mmfaudioserverinterfaceimpl.h" |
|
21 |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CAudioSvrLoader::NewL |
|
27 // Two-phased constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CAudioSvrLoader* CAudioSvrLoader::NewL() |
|
31 { |
|
32 CAudioSvrLoaderImpl* self = new(ELeave) CAudioSvrLoaderImpl(); |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(); |
|
35 CleanupStack::Pop(self); |
|
36 return self; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CAudioSvrLoader::CAudioSvrLoader |
|
41 // C++ default constructor can NOT contain any code, that |
|
42 // might leave. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 CAudioSvrLoader::CAudioSvrLoader() |
|
46 { |
|
47 } |
|
48 |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CAudioSvrLoader::~CAudioSvrLoader |
|
52 // Destructor |
|
53 // (other items were commented in a header). |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 CAudioSvrLoader::~CAudioSvrLoader() |
|
57 { |
|
58 } |
|
59 |
|
60 |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CAudioSvrLoaderImpl::CAudioSvrLoaderImpl |
|
64 // C++ default constructor can NOT contain any code, that |
|
65 // might leave. |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 CAudioSvrLoaderImpl::CAudioSvrLoaderImpl() |
|
69 { |
|
70 } |
|
71 |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl |
|
75 // Destructor |
|
76 // (other items were commented in a header). |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl() |
|
80 { |
|
81 delete iServer; |
|
82 } |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl |
|
86 // Destructor |
|
87 // (other items were commented in a header). |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void CAudioSvrLoaderImpl::ConstructL() |
|
91 { |
|
92 iServer = CMMFAudioServer::NewL(); |
|
93 } |
|
94 |
|
95 |
|
96 // End of file |
|
97 |
|
98 |