|
1 /* |
|
2 * Copyright (c) 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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TCmdSendStreamDtmf_H__ |
|
21 #define __TCmdSendStreamDtmf_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "TTcMceCommandBase.h" |
|
25 #include "CDelayedProcess.h" |
|
26 |
|
27 class CMceAudioStream; |
|
28 |
|
29 // CLASS DEFINITION |
|
30 /** |
|
31 * Command class responsible for "SendStreamDtmf" functionality. |
|
32 */ |
|
33 class TCmdSendStreamDtmf |
|
34 : public TTcMceCommandBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 * |
|
41 * @param aContext MCE Test case context |
|
42 */ |
|
43 TCmdSendStreamDtmf( MTcTestContext& aContext ) |
|
44 : TTcMceCommandBase( aContext ),iaudioStream(NULL),iDtmfTimer(NULL) {}; |
|
45 |
|
46 |
|
47 public: // From TTcMceCommandBase |
|
48 |
|
49 void ExecuteL(); |
|
50 |
|
51 public: // New methods |
|
52 |
|
53 /** |
|
54 * Static function for matching the name of this command to |
|
55 * a function identifier. |
|
56 * |
|
57 * @param aId An initialized identifier containing a function name. |
|
58 * @return ETrue if this command matches the specified name. |
|
59 */ |
|
60 static TBool Match( const TTcIdentifier& aId ); |
|
61 |
|
62 /** |
|
63 * Static fuction for creating an instance of this class |
|
64 * |
|
65 * @param aContext MCE Test case context |
|
66 * @return An initialized instance of this class. |
|
67 */ |
|
68 static TTcCommandBase* CreateL( MTcTestContext& aContext ); |
|
69 |
|
70 protected: |
|
71 |
|
72 private: |
|
73 |
|
74 CMceAudioStream* iaudioStream; |
|
75 CDelayedProcess* iDtmfTimer; |
|
76 }; |
|
77 |
|
78 #endif // __TCmdSendStreamDtmf_H__ |