|
1 /* |
|
2 * Copyright (c) 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 CSETUPCALLDTMFSENDER_H |
|
20 #define CSETUPCALLDTMFSENDER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class MSatMultiModeApi; |
|
25 |
|
26 NONSHARABLE_CLASS ( CSetupCallDtmfSender ) : public CActive |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * Two-phased constructor. |
|
32 * @param aPhone A reference to the MSatMultiModeApi. |
|
33 * @return a pointer to the newly created object. |
|
34 */ |
|
35 static CSetupCallDtmfSender* NewL( MSatMultiModeApi& aPhone ); |
|
36 |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 virtual ~CSetupCallDtmfSender(); |
|
41 |
|
42 /** |
|
43 * Send Dtmf string after creating a call successfully |
|
44 */ |
|
45 void SendDtmfString(); |
|
46 |
|
47 /** |
|
48 * Separate Dtmf string from whole string. |
|
49 * Purl tel number will return by aString. |
|
50 * Dtmf string will store in data member for furture sending dtmf. |
|
51 */ |
|
52 void SeparateDtmfFromTelNumber( TDes& aString ); |
|
53 |
|
54 protected: |
|
55 |
|
56 /** |
|
57 * From CActive, handles the request completion. |
|
58 */ |
|
59 void RunL(); |
|
60 |
|
61 /** |
|
62 * From CActive, handle the request cancel |
|
63 */ |
|
64 void DoCancel(); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * C++ default constructor. |
|
70 * @param aPhone A reference to MSatMultiModeApi. |
|
71 */ |
|
72 CSetupCallDtmfSender( MSatMultiModeApi& aPhone ); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 /** |
|
77 * Reference to the MSatMultiModeApi |
|
78 */ |
|
79 MSatMultiModeApi& iPhone; |
|
80 |
|
81 /** |
|
82 * Own. Dtmf string |
|
83 */ |
|
84 HBufC* iDtmfString; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // CSETUPCALLDTMFSENDER_H |