1 /* |
|
2 * Copyright (c) 2009 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 file contains the header file of CStifHWReset |
|
15 * of STIF TestFramework. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef STIFHWRESET_H |
|
20 #define STIFHWRESET_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <e32std.h> |
|
25 |
|
26 #include "StifTestModule.h" |
|
27 |
|
28 // CONSTANTS |
|
29 // None |
|
30 |
|
31 // MACROS |
|
32 // None |
|
33 |
|
34 // DATA TYPES |
|
35 // None |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 // None |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 // None |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 // DESCRIPTION |
|
46 // This is class which can be inherited from own code to perform a |
|
47 // reset to the system. |
|
48 // This is used when calling dynamic loaded dll from STIF TestFramework. |
|
49 class CStifHWReset |
|
50 :public CBase |
|
51 { |
|
52 public: // Enumerations |
|
53 |
|
54 // Different reset types. Possibility to do different king of reset. |
|
55 /* enum TResetType |
|
56 { |
|
57 EResetType0, |
|
58 EResetType1, |
|
59 EResetType2, |
|
60 EResetType3, |
|
61 EResetType4, |
|
62 EResetType5 |
|
63 }; |
|
64 */ |
|
65 public: // Enumerations |
|
66 // None |
|
67 |
|
68 private: // Enumerations |
|
69 // None |
|
70 |
|
71 public: // Constructors and destructor |
|
72 // None |
|
73 |
|
74 public: // New functions |
|
75 |
|
76 /** |
|
77 * Defines reset type and forwards information to reset module. |
|
78 * This method is pure virtual and it is mandatory to implement it |
|
79 * to specific reset module. |
|
80 */ |
|
81 virtual TInt DoReset( CTestModuleIf::TRebootType aResetType ) = 0; |
|
82 |
|
83 public: // Functions from base classes |
|
84 // None |
|
85 |
|
86 protected: // New functions |
|
87 // None |
|
88 |
|
89 protected: // Functions from base classes |
|
90 // None |
|
91 |
|
92 private: |
|
93 // None |
|
94 |
|
95 public: // Data |
|
96 // None |
|
97 |
|
98 protected: // Data |
|
99 // None |
|
100 |
|
101 private: // Data |
|
102 // None |
|
103 |
|
104 public: // Friend classes |
|
105 // None |
|
106 |
|
107 protected: // Friend classes |
|
108 // None |
|
109 |
|
110 private: // Friend classes |
|
111 // None |
|
112 |
|
113 }; |
|
114 |
|
115 #endif // STIFHWRESET_H |
|
116 |
|
117 // End of File |
|