|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 #ifndef __TRACECOMPILERTESTERADVANCED_H__ |
|
18 #define __TRACECOMPILERTESTERADVANCED_H__ |
|
19 |
|
20 |
|
21 // Include files |
|
22 #include <TraceCoreNotificationReceiver.h> |
|
23 #include "BigNumbers.inl" |
|
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "TraceCompilerTesterAdvancedTraces.h" |
|
28 #endif |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 /** |
|
33 * TraceCompilerTester application |
|
34 */ |
|
35 NONSHARABLE_CLASS( DTraceCompilerTesterAdvanced ) : public DTraceCoreNotificationReceiver |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 DTraceCompilerTesterAdvanced(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~DTraceCompilerTesterAdvanced(); |
|
47 |
|
48 /** |
|
49 * Hello moon |
|
50 */ |
|
51 inline TInt HelloMoon() { |
|
52 OstTrace0(TRACE_FLOW, HELLO_MOON, "Hello moon!"); |
|
53 return 1; |
|
54 }; |
|
55 |
|
56 /** |
|
57 * Hello world |
|
58 */ |
|
59 inline void HelloWorld(); |
|
60 |
|
61 /** |
|
62 * Second-phase constructor |
|
63 * |
|
64 * @param |
|
65 * @return System-wide error code |
|
66 */ |
|
67 TInt Construct(); |
|
68 |
|
69 public: // from DTraceCoreNotificationReceiver |
|
70 |
|
71 /** |
|
72 * Callback function for Trace Activation |
|
73 * |
|
74 * @param aComponentId |
|
75 * @param aGroupId |
|
76 * @return None |
|
77 */ |
|
78 void TraceActivated( TUint32 aComponentId, TUint16 aGroupId ); |
|
79 |
|
80 /** |
|
81 * Callback function for Trace Deactivation |
|
82 * |
|
83 * @param aComponentId |
|
84 * @param aGroupId |
|
85 * @return None |
|
86 */ |
|
87 void TraceDeactivated( TUint32 aComponentId, TUint16 aGroupId ); |
|
88 |
|
89 private: |
|
90 |
|
91 }; |
|
92 |
|
93 #endif |
|
94 |
|
95 #include "TraceCompilerTesterAdvanced.inl" |
|
96 |
|
97 // End of File |