|
1 /* |
|
2 * Copyright (c) 2007 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: CVtCtlFactory class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #pragma CTC SKIP |
|
20 // INCLUDE FILES |
|
21 #include "CVtCtlFactory.h" |
|
22 #include "CVtCtlCallControl.h" |
|
23 #include <cvtlogger.h> |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // MVtCtlCallControl::CreateCallControlL |
|
29 // Creates call control. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 MVtCtlCallControl* CVtCtlFactory::CreateCallControlL( |
|
33 MVtCtlEventObserver& aEventObserver ) |
|
34 { |
|
35 __VTPRINTENTER( "CVtCtlCallStatusMonitor.IsLegalNewState" ) |
|
36 MVtCtlCallControl* control = CVtCtlCallControl::NewL( |
|
37 aEventObserver ); |
|
38 __VTPRINTEXIT( "CVtCtlCallStatusMonitor.IsLegalNewState" ) |
|
39 return control; |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // MVtCtlCallControl::Delete |
|
44 // Destructs call control object. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CVtCtlFactory::Delete( MVtCtlCallControl* aCallControl ) |
|
48 { |
|
49 __VTPRINTENTER( "CVtCtlFactory.Delete" ) |
|
50 CVtCtlCallControl* callControl = |
|
51 static_cast<CVtCtlCallControl*>( aCallControl ); |
|
52 delete callControl; |
|
53 __VTPRINTEXIT( "CVtCtlFactory.Delete" ) |
|
54 } |
|
55 |
|
56 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CreateFactory |
|
60 // Returns: Factory for creating and destructing call control. |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C CVtCtlFactory* CreateFactory() |
|
64 { |
|
65 CVtCtlFactory* factory = new CVtCtlFactory; |
|
66 return factory; |
|
67 } |
|
68 #pragma CTC ENDSKIP |
|
69 // End of File |
|
70 |