|
1 /* |
|
2 * Copyright (c) 2002 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: Module/API tester for CVideoDtmfDialer domain API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef T_VIDEODTMFDIALER_H |
|
21 #define T_VIDEODTMFDIALER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 #include <aknapp.h> |
|
28 |
|
29 // MACROS |
|
30 _LIT( KT_VideoDtmfDialerLogPath, "\\logs\\testframework\\T_VideoDtmfDialer\\" ); |
|
31 _LIT( KT_VideoDtmfDialerLogFile, "T_VideoDtmfDialer.txt" ); |
|
32 _LIT( KT_VideoDtmfDialerLogFileWithTitle, "T_VideoDtmfDialer_[%S].txt" ); |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CDialer; |
|
36 class CT_VideoDtmfDialer; |
|
37 class CCoeControl; |
|
38 class CEikLabel; |
|
39 class CVideoDTMFDialer; |
|
40 class MNumberEntry; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * CT_VideoDtmfDialer test class for STIF Test Framework TestScripter. |
|
46 */ |
|
47 NONSHARABLE_CLASS(CT_VideoDtmfDialer) : public CScriptBase |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 */ |
|
54 static CT_VideoDtmfDialer* NewL(CTestModuleIf& aTestModuleIf); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CT_VideoDtmfDialer(); |
|
60 |
|
61 public: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CScriptBase Runs a script line. |
|
65 * @since ?Series60_version |
|
66 * @param aItem Script line containing method name and parameters |
|
67 * @return Symbian OS error code |
|
68 */ |
|
69 virtual TInt RunMethodL(CStifItemParser& aItem); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CT_VideoDtmfDialer( CTestModuleIf& aTestModuleIf ); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 /** |
|
84 * Frees all resources allocated from test methods. |
|
85 * @since ?Series60_version |
|
86 */ |
|
87 void Delete(); |
|
88 |
|
89 private: // Ui helper methods |
|
90 |
|
91 /** |
|
92 * Helper functions for UI handling are listed below |
|
93 */ |
|
94 /** |
|
95 * Set toolbar visibility |
|
96 */ |
|
97 void MakeToolbarVisible(TBool aVisible); |
|
98 |
|
99 /** |
|
100 * Set status panel visibility |
|
101 */ |
|
102 void MakeStatusPaneVisible(TBool aVisible); |
|
103 |
|
104 private: // Test methods are listed below |
|
105 |
|
106 /** |
|
107 * Create view |
|
108 */ |
|
109 virtual TInt CreateViewL(CStifItemParser& aItem); |
|
110 |
|
111 /** |
|
112 * Delete view |
|
113 */ |
|
114 virtual TInt DeleteViewL(CStifItemParser& aItem); |
|
115 |
|
116 /** |
|
117 * Create CDialer |
|
118 */ |
|
119 virtual TInt CreateDialerL(CStifItemParser& aItem); |
|
120 |
|
121 /** |
|
122 * Show CDialer |
|
123 */ |
|
124 virtual TInt ShowDialerL(CStifItemParser& aItem); |
|
125 |
|
126 /** |
|
127 * Delete CDialer |
|
128 */ |
|
129 virtual TInt DeleteDialerL(CStifItemParser& aItem); |
|
130 |
|
131 /** |
|
132 * Create CVideoDtmfDialer |
|
133 */ |
|
134 virtual TInt CreateVideoDtmfDialerL(CStifItemParser& aItem); |
|
135 |
|
136 /** |
|
137 * Show CVideoDtmfDialer |
|
138 */ |
|
139 virtual TInt ShowVideoDtmfDialerL(CStifItemParser& aItem); |
|
140 |
|
141 /** |
|
142 * Delete CVideoDtmfDialer |
|
143 */ |
|
144 virtual TInt DeleteVideoDtmfDialerL(CStifItemParser& aItem); |
|
145 |
|
146 private: // Data |
|
147 |
|
148 // Pointer to video dtmf dialer |
|
149 CVideoDTMFDialer* iVideoDtmfDialer; |
|
150 // Pointer to video dtmf dialer control |
|
151 CCoeControl* iVideoDtmfDialerControl; |
|
152 // Pointer to video control label |
|
153 CEikLabel* iVideoControl; |
|
154 // Pointer to dialer |
|
155 CDialer* iDialer; |
|
156 // Interface to Dialer's number entry functionality |
|
157 MNumberEntry* iNumberEntry; |
|
158 }; |
|
159 |
|
160 #endif // T_VIDEODTMFDIALER_H |
|
161 |
|
162 // End of File |