|
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: Container for functional handlers in the engine. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "CVtEngHandlerContainer.h" |
|
22 #include <cvtlogger.h> |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CVtEngHandlerContainer::Uninitialize |
|
28 // Uninitialises handlers. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 void CVtEngHandlerContainer::Uninitialize() |
|
32 { |
|
33 iSession->Uninitialize(); |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CVtEngHandlerContainer::CVtEngHandlerContainer |
|
38 // C++ default constructor can NOT contain any code, that |
|
39 // might leave. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CVtEngHandlerContainer::CVtEngHandlerContainer() |
|
43 { |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CVtEngHandlerContainer::ConstructL |
|
48 // Symbian 2nd phase constructor can leave. |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 void CVtEngHandlerContainer::ConstructL( ) |
|
52 { |
|
53 iMedia = CVtEngMediaHandler::NewL( ); |
|
54 iSession = CVtEngSessionHandler::NewL( ); |
|
55 iAudio = CVtEngAudioHandler::NewL( ); |
|
56 |
|
57 } |
|
58 |
|
59 void CVtEngHandlerContainer::CreateDtmfHandlerL( |
|
60 MVtH324ConfigCommand* aH324Config ) |
|
61 { |
|
62 __VTPRINTENTER( "HlrCnr.CreateDtmfHandlerL" ) |
|
63 iDtmf = CVtEngDtmfHandler::NewL( *aH324Config ); |
|
64 __VTPRINTEXIT( "HlrCnr.CreateDtmfHandlerL" ) |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CVtEngHandlerContainer::NewL |
|
69 // Two-phased constructor. |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 CVtEngHandlerContainer* CVtEngHandlerContainer::NewL( ) |
|
73 { |
|
74 __VTPRINTENTER( "HlrCnr.NewL" ) |
|
75 |
|
76 CVtEngHandlerContainer* self = new( ELeave ) CVtEngHandlerContainer; |
|
77 |
|
78 CleanupStack::PushL( self ); |
|
79 self->ConstructL( ); |
|
80 CleanupStack::Pop(); |
|
81 __VTPRINTEXIT( "HlrCnr.NewL" ) |
|
82 return self; |
|
83 } |
|
84 |
|
85 |
|
86 // Destructor |
|
87 CVtEngHandlerContainer::~CVtEngHandlerContainer() |
|
88 { |
|
89 __VTPRINTENTER( "HlrCnr.~" ) |
|
90 |
|
91 delete iMedia; |
|
92 delete iSession; |
|
93 delete iAudio; |
|
94 delete iDtmf; |
|
95 |
|
96 __VTPRINTEXIT( "HlrCnr.~" ) |
|
97 } |
|
98 |
|
99 // End of File |