|
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 |
|
15 * CStifHWResetStub of STIF TestFramework. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef STIFHWRESETSTUB_H |
|
20 #define STIFHWRESETSTUB_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <StifHWReset.h> |
|
24 #include <StifLogger.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // None |
|
28 |
|
29 // MACROS |
|
30 // None |
|
31 |
|
32 // DATA TYPES |
|
33 // None |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 // None |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 // None |
|
40 |
|
41 // CLASS DECLARATION |
|
42 // None |
|
43 |
|
44 // DESCRIPTION |
|
45 // Implements common reset module for STIF TestFramework. According to this DLL |
|
46 // template can be implemented licensee specific reset module. |
|
47 NONSHARABLE_CLASS(CStifHWResetStub) |
|
48 :public CStifHWReset |
|
49 { |
|
50 public: // Enumerations |
|
51 // None |
|
52 |
|
53 private: // Enumerations |
|
54 // None |
|
55 |
|
56 public: // Constructors and destructor |
|
57 |
|
58 /** |
|
59 * Two-phased constructor. |
|
60 */ |
|
61 IMPORT_C static CStifHWResetStub* NewL(); |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 ~CStifHWResetStub(); |
|
67 |
|
68 public: // New functions |
|
69 |
|
70 /** |
|
71 * Does reset according to reset type. |
|
72 */ |
|
73 TInt DoReset( CTestModuleIf::TRebootType aResetType ); |
|
74 |
|
75 public: // Functions from base classes |
|
76 // None |
|
77 |
|
78 protected: // New functions |
|
79 // None |
|
80 |
|
81 protected: // Functions from base classes |
|
82 // None |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * C++ default constructor. |
|
88 */ |
|
89 CStifHWResetStub(); |
|
90 |
|
91 /** |
|
92 * Symbian OS constructor. |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 /** |
|
97 * Kills process. Example method. |
|
98 */ |
|
99 TInt KillProcess(); |
|
100 |
|
101 /** |
|
102 * General reset. Example method. |
|
103 */ |
|
104 TInt GeneralReset(); |
|
105 |
|
106 public: // Data |
|
107 // None |
|
108 |
|
109 protected: // Data |
|
110 // None |
|
111 |
|
112 private: // Data |
|
113 |
|
114 // Logger instance |
|
115 CStifLogger* iLogger; |
|
116 |
|
117 public: // Friend classes |
|
118 // None |
|
119 |
|
120 protected: // Friend classes |
|
121 // None |
|
122 |
|
123 private: // Friend classes |
|
124 // None |
|
125 |
|
126 }; |
|
127 |
|
128 #endif // STIFHWRESETSTUB_H |
|
129 |
|
130 // End of File |