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 the |
|
15 * TDesLoggerOverflowHandler and TDes8LoggerOverflowHandler. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef LOGGEROVERFLOW_H |
|
20 #define LOGGEROVERFLOW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "StifLogger.h" |
|
24 #include "Output.h" |
|
25 #include "RDebugOutput.h" |
|
26 |
|
27 // CONSTANTS |
|
28 // None |
|
29 |
|
30 // MACROS |
|
31 // None |
|
32 |
|
33 // DATA TYPES |
|
34 // None |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 // None |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 // None |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 // DESCRIPTION |
|
45 // TDesLoggerOverflowHandler is a STIF Test Framework StifLogger class. |
|
46 // Class contains an over flow operations. |
|
47 |
|
48 class TDesLoggerOverflowHandler |
|
49 :public TDes16Overflow |
|
50 { |
|
51 public: // Enumerations |
|
52 |
|
53 private: // Enumerations |
|
54 |
|
55 public: // Constructors and destructor |
|
56 |
|
57 public: // New functions |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 TDesLoggerOverflowHandler( CStifLogger* aLogger, TInt aOverFlowSource ); |
|
63 |
|
64 /** |
|
65 * C++ default constructor. |
|
66 */ |
|
67 // For future needs |
|
68 // TDesLoggerOverflowHandler( CRDebugOutput* aRDebugOutput, |
|
69 // TInt aOverFlowSource ); |
|
70 |
|
71 /** |
|
72 * Simple overflow handling(16 bit) |
|
73 */ |
|
74 void Overflow( TDes16& aDes ); |
|
75 |
|
76 public: // Functions from base classes |
|
77 |
|
78 protected: // New functions |
|
79 |
|
80 protected: // Functions from base classes |
|
81 |
|
82 private: |
|
83 |
|
84 public: // Data |
|
85 |
|
86 /** |
|
87 * Pointer to CStifLogger class object |
|
88 */ |
|
89 CStifLogger* iLogger; |
|
90 |
|
91 /** |
|
92 * Pointer to CRDebugOutput class object |
|
93 */ |
|
94 CRDebugOutput* iRDebugOutput; |
|
95 |
|
96 /** |
|
97 * Over flow source |
|
98 */ |
|
99 TInt iOverFlowSource; |
|
100 |
|
101 protected: // Data |
|
102 |
|
103 private: // Data |
|
104 |
|
105 public: // Friend classes |
|
106 |
|
107 protected: // Friend classes |
|
108 |
|
109 private: // Friend classes |
|
110 |
|
111 }; |
|
112 |
|
113 // CLASS DECLARATION |
|
114 |
|
115 // DESCRIPTION |
|
116 // TDes8LoggerOverflowHandler is a STIF Test Framework StifLogger class. |
|
117 // Class contains an over flow operations. |
|
118 |
|
119 class TDes8LoggerOverflowHandler |
|
120 :public TDes8Overflow |
|
121 { |
|
122 public: // Enumerations |
|
123 |
|
124 private: // Enumerations |
|
125 |
|
126 public: // Constructors and destructor |
|
127 |
|
128 public: // New functions |
|
129 |
|
130 /** |
|
131 * C++ default constructor. |
|
132 */ |
|
133 TDes8LoggerOverflowHandler( CStifLogger* aLogger, TInt aOverFlowSource ); |
|
134 |
|
135 /** |
|
136 * C++ default constructor. |
|
137 */ |
|
138 // For future needs |
|
139 // TDes8LoggerOverflowHandler( CRDebugOutput* aRDebugOutput, |
|
140 // TInt aOverFlowSource ); |
|
141 |
|
142 /** |
|
143 * Simple overflow handling(8 bit) |
|
144 */ |
|
145 void Overflow( TDes8& aDes ); |
|
146 |
|
147 public: // Functions from base classes |
|
148 |
|
149 protected: // New functions |
|
150 |
|
151 protected: // Functions from base classes |
|
152 |
|
153 private: |
|
154 |
|
155 public: // Data |
|
156 |
|
157 /** |
|
158 * Pointer to CStifLogger class object |
|
159 */ |
|
160 CStifLogger* iLogger; |
|
161 |
|
162 /** |
|
163 * Pointer to CRDebugOutput class object |
|
164 */ |
|
165 // For future needs |
|
166 // CRDebugOutput* iRDebugOutput; |
|
167 |
|
168 /** |
|
169 * Over flow source |
|
170 */ |
|
171 TInt iOverFlowSource; |
|
172 |
|
173 protected: // Data |
|
174 |
|
175 private: // Data |
|
176 |
|
177 public: // Friend classes |
|
178 |
|
179 protected: // Friend classes |
|
180 |
|
181 private: // Friend classes |
|
182 |
|
183 }; |
|
184 |
|
185 #endif // LOGGEROVERFLOW_H |
|
186 |
|
187 // End of File |
|