|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Declaration of CPhoneHandlerDTMF class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPHONEHANDLERDTMF_H |
|
21 #define CPHONEHANDLERDTMF_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "PhoneHandlerCallBase.h" |
|
25 #include <RemConExtensionApi.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CPhoneHandlerControl; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Handles DTMF tone. |
|
42 * |
|
43 * @lib PhoneCmdHandler |
|
44 * @since S60 3.1 |
|
45 */ |
|
46 NONSHARABLE_CLASS( CPhoneHandlerDTMF ) : public CPhoneHandlerCallBase |
|
47 |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 */ |
|
54 static CPhoneHandlerDTMF* NewL( |
|
55 CPhoneHandlerControl& aControl, |
|
56 TRemConExtCallHandlingApiOperationId aOperation |
|
57 = ERemConExtGenerateDTMF |
|
58 ); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CPhoneHandlerDTMF(); |
|
64 |
|
65 public: // New functions |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 /** |
|
70 * From MPhoneHandlerService. Starts processing service. |
|
71 * @since S60 3.1 |
|
72 * @return void |
|
73 */ |
|
74 void Process(); |
|
75 |
|
76 /** |
|
77 * From MPhoneHandlerService. Deletes service. |
|
78 * @since S60 3.1 |
|
79 * @return void |
|
80 */ |
|
81 void Delete(); |
|
82 |
|
83 /** |
|
84 * From MPhoneHandlerObserver. Notifies when asynchronous request has |
|
85 * been completed. |
|
86 * @since S60 3.1 |
|
87 * @param aError request error code |
|
88 * @return void |
|
89 */ |
|
90 void RequestCompleted( const TInt aError ); |
|
91 |
|
92 protected: // New functions |
|
93 |
|
94 protected: // Functions from base classes |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * C++ default constructor. |
|
100 */ |
|
101 CPhoneHandlerDTMF( CPhoneHandlerControl& aControl, |
|
102 TRemConExtCallHandlingApiOperationId aOperation ); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 public: // Data |
|
110 |
|
111 protected: // Data |
|
112 |
|
113 private: // Data |
|
114 |
|
115 // reference to control |
|
116 CPhoneHandlerControl& iControl; |
|
117 |
|
118 // iOperation is used to give response to exact RemConExtensionApi |
|
119 // command |
|
120 TRemConExtCallHandlingApiOperationId iOperation; |
|
121 |
|
122 public: // Friend classes |
|
123 |
|
124 protected: // Friend classes |
|
125 |
|
126 private: // Friend classes |
|
127 |
|
128 }; |
|
129 |
|
130 #endif // CPHONEHANDLERDTMF_H |
|
131 |
|
132 // End of File |