|
1 /* |
|
2 * Copyright (c) 2007 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: This is the header for the Diagnostics Data Network Test plugin |
|
15 * class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef DIAGDATANETWORKTESTPLUGIN_H |
|
21 #define DIAGDATANETWORKTESTPLUGIN_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <DiagResultsDatabaseItem.h> |
|
25 #include <DiagTestPluginBase.h> // CDiagTestPluginBase |
|
26 #include "diagdatanetworktestcallbackinterface.h" // MDiagDataNetworkTestCallBackInterface |
|
27 |
|
28 //CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CDiagDataNetworkTestPDPEngine; |
|
38 class CDiagResultsDbItemBuilder; |
|
39 |
|
40 // CLASS DEFINITION |
|
41 class CDiagDataNetworkTestPlugin : public CDiagTestPluginBase, |
|
42 public MDiagDataNetworkTestCallBackInterface |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Symbian OS two-phased constructor |
|
48 * @return DataNetwork Test Plugin |
|
49 */ |
|
50 static MDiagPlugin* NewL( TAny* aInitParams ); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~CDiagDataNetworkTestPlugin(); |
|
56 |
|
57 /** |
|
58 * The Data Network Test PDP Engine calls this function to provide the result of the test |
|
59 */ |
|
60 void ReportTestResultL(CDiagResultsDatabaseItem::TResult aResult); |
|
61 |
|
62 /** |
|
63 * The Data Network Test PDP Engine calls this function to provide the progress of the test |
|
64 */ |
|
65 void ReportTestProgL(TInt aStep); |
|
66 TBool DisplayDialog(TInt &); |
|
67 |
|
68 public: // From CDiagTestPluginBase |
|
69 |
|
70 |
|
71 |
|
72 /** |
|
73 * @see CDiagTestPluginBase::Visible() |
|
74 */ |
|
75 TBool IsVisible() const; |
|
76 |
|
77 /** |
|
78 * @see CDiagTestPluginBase::RunMode() |
|
79 */ |
|
80 TRunMode RunMode() const; |
|
81 |
|
82 /** |
|
83 * @see CDiagTestPluginBase::TotalSteps() |
|
84 */ |
|
85 TUint TotalSteps() const; |
|
86 |
|
87 /** |
|
88 * @see CDiagTestPluginBase::GetPluginNameL |
|
89 */ |
|
90 HBufC* GetPluginNameL( TNameLayoutType aLayoutType ) const; |
|
91 |
|
92 /** |
|
93 * @see CDiagTestPluginBase::Uid |
|
94 */ |
|
95 TUid Uid() const; |
|
96 |
|
97 |
|
98 TBool ShowMessageQueryL( TInt aResourceId, TInt &aButtonId ); |
|
99 |
|
100 |
|
101 |
|
102 protected: // from CDiagTestPluginBase |
|
103 |
|
104 /** |
|
105 * C++ default constructor. |
|
106 */ |
|
107 CDiagDataNetworkTestPlugin( CDiagPluginConstructionParam* aInitParams ); |
|
108 |
|
109 /** |
|
110 * Symbian OS default constructor. |
|
111 * |
|
112 */ |
|
113 void ConstructL(); |
|
114 |
|
115 /** |
|
116 * Handle plug-in execution. |
|
117 */ |
|
118 void DoRunTestL(); |
|
119 |
|
120 /** |
|
121 * Handle stop and clean up |
|
122 */ |
|
123 void DoStopAndCleanupL(); |
|
124 |
|
125 |
|
126 protected: // from CActive |
|
127 |
|
128 /** |
|
129 * Handle active object completion event |
|
130 */ |
|
131 void RunL(); |
|
132 |
|
133 |
|
134 /** |
|
135 * Handle cancel |
|
136 */ |
|
137 void DoCancel(); |
|
138 |
|
139 private: // data |
|
140 |
|
141 // pointer to Data Network test PDP Engine |
|
142 CDiagDataNetworkTestPDPEngine *iPDPEngine; |
|
143 }; |
|
144 |
|
145 #endif //DIAGDATANETWORKTESTPLUGIN_H |
|
146 |
|
147 // End of File |