|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Task for making MDS querys |
|
15 * |
|
16 */ |
|
17 // Created by TraceCompiler 2.3.0 |
|
18 // DO NOT EDIT, CHANGES WILL BE LOST |
|
19 |
|
20 #ifndef __THUMBNAILMDSQUERYTASKTRACES_H__ |
|
21 #define __THUMBNAILMDSQUERYTASKTRACES_H__ |
|
22 |
|
23 #define KOstTraceComponentID 0x102830ab |
|
24 |
|
25 #define CTHUMBNAILMDSQUERYTASK_CTHUMBNAILMDSQUERYTASK 0x860039 |
|
26 #define DUP1_CTHUMBNAILMDSQUERYTASK_CTHUMBNAILMDSQUERYTASK 0x86003a |
|
27 #define CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003b |
|
28 #define DUP1_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003c |
|
29 #define DUP2_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003d |
|
30 #define DUP3_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003e |
|
31 #define DUP4_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003f |
|
32 #define DUP5_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x860040 |
|
33 #define CTHUMBNAILMDSQUERYTASK_STARTL 0x860041 |
|
34 #define CTHUMBNAILMDSQUERYTASK_RUNL 0x860042 |
|
35 #define CTHUMBNAILMDSQUERYTASK_DOCANCEL 0x860043 |
|
36 #define CTHUMBNAILMDSQUERYTASK_QUERYPATHBYIDL 0x860044 |
|
37 #define CTHUMBNAILMDSQUERYTASK_SETUPDATETODB 0x860045 |
|
38 |
|
39 |
|
40 #ifndef __KERNEL_MODE__ |
|
41 #ifndef __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
|
42 #define __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
|
43 |
|
44 inline TBool OstTraceGen1( TUint32 aTraceID, const TDesC16& aParam1 ) |
|
45 { |
|
46 TBool retval; |
|
47 TInt size = aParam1.Size(); |
|
48 // BTrace assumes that parameter size is atleast 4 bytes |
|
49 if (size % 4 == 0) |
|
50 { |
|
51 TUint8* ptr = ( TUint8* )aParam1.Ptr(); |
|
52 // Data is written directly and length is determined from trace message length |
|
53 retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
|
54 } |
|
55 else |
|
56 { |
|
57 TUint8 data[ KOstMaxDataLength ]; |
|
58 TUint8* ptr = data; |
|
59 if (size > KOstMaxDataLength) |
|
60 { |
|
61 size = KOstMaxDataLength; |
|
62 } |
|
63 TInt sizeAligned = ( size + 3 ) & ~3; |
|
64 memcpy( ptr, aParam1.Ptr(), size ); |
|
65 ptr += size; |
|
66 // Fillers are written to get 32-bit alignment |
|
67 while ( size++ < sizeAligned ) |
|
68 { |
|
69 *ptr++ = 0; |
|
70 } |
|
71 ptr -= sizeAligned; |
|
72 size = sizeAligned; |
|
73 // Data is written directly and length is determined from trace message length |
|
74 retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
|
75 } |
|
76 return retval; |
|
77 } |
|
78 |
|
79 #endif // __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
|
80 |
|
81 #endif |
|
82 |
|
83 |
|
84 #endif |
|
85 |
|
86 // End of file |
|
87 |