|
1 /* |
|
2 * Copyright (c) 2009-2010 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: Create the call and emergency call to ETelMM |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSETUPCALLREQUESTHANDLER_H |
|
20 #define CSETUPCALLREQUESTHANDLER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "msatmultimodeapi.h" |
|
24 |
|
25 class CSetUpCallHandler; |
|
26 class MSatAsyncToSync; |
|
27 class CSetupCallDtmfSender; |
|
28 |
|
29 /** |
|
30 * This is the handler for the ETel MM api Request. |
|
31 * This active objects is registered with ETelMM Api to send request and |
|
32 * receive notifications about some Request Complete. |
|
33 * |
|
34 */ |
|
35 |
|
36 NONSHARABLE_CLASS ( CSetupCallRequestHandler ) : public CActive |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * @param aPhone A reference to the MSatMultiModeApi. |
|
43 * @param aDispatcher Pointer to Ss handler |
|
44 * @return a pointer to the newly created object. |
|
45 */ |
|
46 static CSetupCallRequestHandler* NewL( MSatMultiModeApi& aPhone, |
|
47 CSetUpCallHandler* aDispatcher ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CSetupCallRequestHandler(); |
|
53 |
|
54 /** |
|
55 * Access RMobileCall::DialNoFdnCheck by MSatMultiModeApi |
|
56 * for the paramter information please see the etelmm.h |
|
57 */ |
|
58 void DialNumber( const TDesC8& aCallParams, TDes& aTelNumber, |
|
59 TBool aTerminateOtherCall, MSatAsyncToSync* aAsyncToSync ); |
|
60 |
|
61 /** |
|
62 * Access RMobileCall::DialEmergencyCall by MSatMultiModeApi |
|
63 * for the paramter information please see the etelmm.h |
|
64 */ |
|
65 void DialEmergencyCall( const TDesC& aTelNumber ); |
|
66 |
|
67 /** |
|
68 * Cancel the asynchronous operations that required to the ETel MM api |
|
69 */ |
|
70 void CancelOperation(); |
|
71 |
|
72 |
|
73 protected: |
|
74 |
|
75 /** |
|
76 * From CActive, handles the request completion. |
|
77 */ |
|
78 void RunL(); |
|
79 |
|
80 |
|
81 /** |
|
82 * From CActive, handle the request cancel |
|
83 */ |
|
84 void DoCancel(); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * C++ default constructor. |
|
90 * @param aPriority An active object priority value. |
|
91 * @param aPhone A reference to MSatMultiModeApi. |
|
92 */ |
|
93 CSetupCallRequestHandler( MSatMultiModeApi& aPhone, |
|
94 CSetUpCallHandler* aDispatcher ); |
|
95 |
|
96 /** |
|
97 * By default Symbian 2nd phase constructor is private. |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 /** |
|
104 * Reference to the MSatMultiModeApi |
|
105 */ |
|
106 MSatMultiModeApi& iPhone; |
|
107 |
|
108 /** |
|
109 * Pointer to SetupCall command handler |
|
110 */ |
|
111 CSetUpCallHandler* iDispatcher; |
|
112 |
|
113 /** |
|
114 * Own. Dtmf sender |
|
115 */ |
|
116 CSetupCallDtmfSender* iDtmfSender; |
|
117 }; |
|
118 |
|
119 #endif // CSETUPCALLREQUESTHANDLER_H |