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: Implementation of CPhoneUIStateMachineFactoryVoIP class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include "cphoneuistatemachinefactoryvoip.h" |
|
21 #include "cphonestatemachinevoip.h" |
|
22 #include "cphoneresourceresolvervoip.h" |
|
23 #include "cphonevoiperrormessageshandler.h" |
|
24 #include "cphoneerrormessageshandler.h" |
|
25 #include "mphoneviewcommandhandle.h" |
|
26 |
|
27 // ----------------------------------------------------------- |
|
28 // CPhoneUIStateMachineFactoryVoIP::CreatePhoneStateMachineL() |
|
29 // Create instance of CPhoneStateMachine class. |
|
30 // (other items were commented in a header). |
|
31 // ----------------------------------------------------------- |
|
32 MPhoneStateMachine* CPhoneUIStateMachineFactoryVoIP::CreatePhoneStateMachineL( |
|
33 MPhoneViewCommandHandle* aViewCommandHandle ) |
|
34 { |
|
35 return CPhoneStateMachineVoIP::NewL( aViewCommandHandle ); |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CPhoneUIStateMachineFactoryVoIP::CreatePhoneResourceResolverL |
|
40 // Create instance of CPhoneResourceResolverBase class. |
|
41 // (other items were commented in a header). |
|
42 // --------------------------------------------------------- |
|
43 CPhoneResourceResolverBase* |
|
44 CPhoneUIStateMachineFactoryVoIP::CreatePhoneResourceResolverL() |
|
45 { |
|
46 return CPhoneResourceResolverVoIP::NewL(); |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CPhoneUIStateMachineFactoryVoIP::CreatePhoneErrorMessagesHandlerL |
|
51 // Create instance of CPhoneErrorMessagerHandler class. |
|
52 // (other items were commented in a header). |
|
53 // --------------------------------------------------------- |
|
54 CPhoneErrorMessagesHandler* |
|
55 CPhoneUIStateMachineFactoryVoIP::CreatePhoneErrorMessagesHandlerL( |
|
56 MPhoneViewCommandHandle* aViewCommandHandle, |
|
57 MPhoneStateMachine* aPhoneStateMachine ) |
|
58 { |
|
59 return CPhoneVoIPErrorMessagesHandler::NewL( aViewCommandHandle, |
|
60 aPhoneStateMachine ); |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------- |
|
64 // Polymorphic DLL entry point for ordinal 1. |
|
65 // --------------------------------------------------------- |
|
66 EXPORT_C CPhoneUIStateMachineFactoryBase* NewPhoneUIStateMachineFactoryL() |
|
67 { |
|
68 return new( ELeave ) CPhoneUIStateMachineFactoryVoIP; |
|
69 } |
|
70 |
|
71 // End of File |
|