|
1 /* |
|
2 * Copyright (c) 2004-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef _A3F_TRACE_CTXT_H_ |
|
27 #define _A3F_TRACE_CTXT_H_ |
|
28 |
|
29 // MACROS |
|
30 //#define DISABLE_SYNTAX_CHECK |
|
31 #define DISABLE_GROUP_CHECKS |
|
32 |
|
33 struct TTraceName |
|
34 { |
|
35 const TUint32 iId; |
|
36 const TUint32 iGrpId; |
|
37 #ifdef __WINS__ |
|
38 const TText16* const iName; |
|
39 #else |
|
40 const wchar_t* const iName; |
|
41 #endif |
|
42 }; |
|
43 |
|
44 /** |
|
45 @publishedAll |
|
46 @released |
|
47 |
|
48 This is TTraceCtxGroup |
|
49 |
|
50 */ |
|
51 |
|
52 enum TTraceCtxGroup { |
|
53 CtxTest, |
|
54 CtxDevSound, |
|
55 CtxDsProxy, |
|
56 CtxDsStarter, |
|
57 CtxDsServer, |
|
58 CtxDsdaptation, |
|
59 CtxHwDevice, |
|
60 CtxPolicyProxy, |
|
61 CtxPolicyServer, |
|
62 CtxPolicyCtrl, |
|
63 CtxMmRm, |
|
64 CtxAudioServer, |
|
65 CtxAsProxy, |
|
66 CtxAsServer, |
|
67 CtxAsCtrl, |
|
68 CtxAsEap, |
|
69 CtxMdaif, |
|
70 CtxAaMm, |
|
71 CtxRadio |
|
72 }; |
|
73 |
|
74 static const TTraceName TRACENFO[] = |
|
75 { |
|
76 { CtxTest, 0x00000001, L"Test" }, |
|
77 { CtxDevSound, 0x00000002, L"DevSound" }, |
|
78 { CtxDsProxy, 0x00000004, L"DevSound proxy" }, |
|
79 { CtxDsStarter, 0x00000008, L"DevSound starter" }, |
|
80 { CtxDsServer, 0x00000010, L"DevSound server" }, |
|
81 { CtxDsdaptation, 0x00000020, L"DevSound adaptation" }, |
|
82 { CtxHwDevice, 0x00000040, L"HW device" }, |
|
83 { CtxPolicyProxy, 0x00000080, L"Policy proxy" }, |
|
84 { CtxPolicyServer, 0x00000100, L"Policy server" }, |
|
85 { CtxPolicyCtrl, 0x00000200, L"Policy control" }, |
|
86 { CtxMmRm, 0x00000400, L"Mm resource manager" }, |
|
87 { CtxAudioServer, 0x00000800, L"Audio server" }, |
|
88 { CtxAsProxy, 0x00001000, L"Audio server proxy" }, |
|
89 { CtxAsServer, 0x00002000, L"Audio server server" }, |
|
90 { CtxAsCtrl, 0x00004000, L"Audio server control" }, |
|
91 { CtxAsEap, 0x00008000, L"Audio server EAP" }, |
|
92 { CtxMdaif, 0x00010000, L"MDAIF" }, |
|
93 { CtxAaMm, 0x00020000, L"Message mapper" }, |
|
94 { CtxRadio, 0x00040000, L"Radio" } |
|
95 }; |
|
96 |
|
97 #define CtxDefaultGroups _CtxDefaultGroups() |
|
98 |
|
99 |
|
100 inline TInt _CtxDefaultGroups() |
|
101 { |
|
102 return TRACENFO[CtxTest].iGrpId | |
|
103 TRACENFO[CtxDevSound].iGrpId | |
|
104 TRACENFO[CtxDsProxy].iGrpId | |
|
105 TRACENFO[CtxDsStarter].iGrpId | |
|
106 TRACENFO[CtxDsServer].iGrpId | |
|
107 TRACENFO[CtxDsdaptation].iGrpId | |
|
108 TRACENFO[CtxHwDevice].iGrpId | |
|
109 TRACENFO[CtxPolicyProxy].iGrpId | |
|
110 TRACENFO[CtxPolicyServer].iGrpId | |
|
111 TRACENFO[CtxPolicyCtrl].iGrpId | |
|
112 TRACENFO[CtxMmRm].iGrpId | |
|
113 TRACENFO[CtxAudioServer].iGrpId | |
|
114 TRACENFO[CtxAsProxy].iGrpId | |
|
115 TRACENFO[CtxAsServer].iGrpId | |
|
116 TRACENFO[CtxAsCtrl].iGrpId | |
|
117 TRACENFO[CtxAsEap].iGrpId | |
|
118 TRACENFO[CtxMdaif].iGrpId | |
|
119 TRACENFO[CtxAaMm].iGrpId | |
|
120 TRACENFO[CtxRadio].iGrpId; |
|
121 } |
|
122 |
|
123 #endif // _A3F_TRACE_CTXT_H_ |
|
124 |
|
125 // End of File |