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: Minite the call creating status by ETelMM |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSETUPCALLSTATUSHANDLER_H |
|
21 #define CSETUPCALLSTATUSHANDLER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "msatmultimodeapi.h" |
|
25 |
|
26 |
|
27 class MSetupCallStatusObserver |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * The call status update notification from ETel MM |
|
32 */ |
|
33 virtual void CallSatatusChanged( const TInt status ) = 0; |
|
34 }; |
|
35 |
|
36 /** |
|
37 * This is the handler for the ETel MM api Request. |
|
38 * This active objects is registered with ETelMM Api to send request and |
|
39 * receive notifications about some Request Complete. |
|
40 * |
|
41 * @lib SetupCallCmd |
|
42 * @since S60 v5.0.1 |
|
43 */ |
|
44 |
|
45 class CSetupCallStatusHandler : public CActive |
|
46 { |
|
47 |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * @param aPhone A reference to the MSatMultiModeApi. |
|
53 * @param aDispatcher Pointer to Ss handler |
|
54 * @return a pointer to the newly created object. |
|
55 */ |
|
56 static CSetupCallStatusHandler* NewL( MSatMultiModeApi& aPhone, |
|
57 MSetupCallStatusObserver* aDispatcher ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CSetupCallStatusHandler(); |
|
63 |
|
64 /** |
|
65 * Start to monite the call status by using ETel MM api |
|
66 */ |
|
67 void Start(); |
|
68 /** |
|
69 * Cancel the asynchronous operations that required to the ETel MM api |
|
70 */ |
|
71 void CancelOperation(); |
|
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 CSetupCallStatusHandler( MSatMultiModeApi& aPhone, |
|
94 MSetupCallStatusObserver* aDispatcher ); |
|
95 |
|
96 private: //new method |
|
97 |
|
98 void HandleConnectingStatusChange(); |
|
99 |
|
100 private: // Data |
|
101 |
|
102 /** |
|
103 * Reference to the MSatMultiModeApi |
|
104 */ |
|
105 MSatMultiModeApi& iPhone; |
|
106 |
|
107 /** |
|
108 * Pointer to SendSs command handler |
|
109 */ |
|
110 MSetupCallStatusObserver* iDispatcher; |
|
111 |
|
112 /** |
|
113 * Use this to get the RMobileCall status in |
|
114 * |
|
115 */ |
|
116 RMobileCall::TMobileCallStatus iMobileCallStatus; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // CSETUPCALLSTATUSHANDLER_H |
|