|
1 /* |
|
2 * Copyright (c) 2006-2008 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: DTMF sender for SendDtmf command |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATDTMFSENDER_H |
|
21 #define CSATDTMFSENDER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 class CSendDtmfHandler; |
|
27 class MSatMultiModeApi; |
|
28 |
|
29 /** |
|
30 * DTMF sender for SendDtmf command. |
|
31 * |
|
32 * @lib SendDtmfCmd.lib |
|
33 * @since S60 3.2 |
|
34 */ |
|
35 class CSatDtmfSender : public CActive |
|
36 { |
|
37 |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 * @param aDtmfHandler Observes completion of DTMF sending |
|
43 * @param aPhone API for sending DTMF strings. |
|
44 */ |
|
45 CSatDtmfSender( CSendDtmfHandler& aDtmfHandler, |
|
46 MSatMultiModeApi& aPhone ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSatDtmfSender(); |
|
52 |
|
53 /** |
|
54 * Transmit DTMF tones across all the current active voice calls. |
|
55 * @since S60 3.2 |
|
56 * @param aTones The string of DTMF characters. |
|
57 */ |
|
58 void SendToneString( const TDesC& aTones ); |
|
59 |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * From CActive. |
|
64 * Called when request status given SetActiveAndWait completes |
|
65 */ |
|
66 void RunL(); |
|
67 |
|
68 /** |
|
69 * From CActive. |
|
70 * Called when request is cancelled |
|
71 */ |
|
72 void DoCancel(); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 /** |
|
77 * Observer of the DTMF sending. |
|
78 */ |
|
79 CSendDtmfHandler& iDtmfHandler; |
|
80 |
|
81 /** |
|
82 * API used for sending DTMF string to adaptation. |
|
83 */ |
|
84 MSatMultiModeApi& iPhone; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // CSATDTMFSENDER_H |
|
89 |