author | Jyri Kokkonen <jyri.kokkonen@nokia.com> |
Wed, 08 Sep 2010 14:23:06 +0100 | |
changeset 51 | 3baa1be38e89 |
child 46 | 292fa3105576 |
permissions | -rw-r--r-- |
51
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
1 |
/* |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
8 |
* |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
11 |
* |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
13 |
* |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
14 |
* Description: Task for making MDS querys |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
15 |
* |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
17 |
// Created by TraceCompiler 2.3.0 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
18 |
// DO NOT EDIT, CHANGES WILL BE LOST |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
19 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
20 |
#ifndef __THUMBNAILMDSQUERYTASKTRACES_H__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
21 |
#define __THUMBNAILMDSQUERYTASKTRACES_H__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
22 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
23 |
#define KOstTraceComponentID 0x102830ab |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
24 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
25 |
#define CTHUMBNAILMDSQUERYTASK_CTHUMBNAILMDSQUERYTASK 0x860039 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
26 |
#define DUP1_CTHUMBNAILMDSQUERYTASK_CTHUMBNAILMDSQUERYTASK 0x86003a |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
27 |
#define CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003b |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
28 |
#define DUP1_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003c |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
29 |
#define DUP2_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003d |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
30 |
#define DUP3_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003e |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
31 |
#define DUP4_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x86003f |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
32 |
#define DUP5_CTHUMBNAILMDSQUERYTASK_HANDLEQUERYCOMPLETED 0x860040 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
33 |
#define CTHUMBNAILMDSQUERYTASK_STARTL 0x860041 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
34 |
#define CTHUMBNAILMDSQUERYTASK_RUNL 0x860042 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
35 |
#define CTHUMBNAILMDSQUERYTASK_DOCANCEL 0x860043 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
36 |
#define CTHUMBNAILMDSQUERYTASK_QUERYPATHBYIDL 0x860044 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
37 |
#define CTHUMBNAILMDSQUERYTASK_SETUPDATETODB 0x860045 |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
38 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
39 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
40 |
#ifndef __KERNEL_MODE__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
41 |
#ifndef __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
42 |
#define __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
43 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
44 |
inline TBool OstTraceGen1( TUint32 aTraceID, const TDesC16& aParam1 ) |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
45 |
{ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
46 |
TBool retval; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
47 |
TInt size = aParam1.Size(); |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
48 |
// BTrace assumes that parameter size is atleast 4 bytes |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
49 |
if (size % 4 == 0) |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
50 |
{ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
51 |
TUint8* ptr = ( TUint8* )aParam1.Ptr(); |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
52 |
// Data is written directly and length is determined from trace message length |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
53 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
54 |
} |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
55 |
else |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
56 |
{ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
57 |
TUint8 data[ KOstMaxDataLength ]; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
58 |
TUint8* ptr = data; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
59 |
if (size > KOstMaxDataLength) |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
60 |
{ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
61 |
size = KOstMaxDataLength; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
62 |
} |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
63 |
TInt sizeAligned = ( size + 3 ) & ~3; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
64 |
memcpy( ptr, aParam1.Ptr(), size ); |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
65 |
ptr += size; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
66 |
// Fillers are written to get 32-bit alignment |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
67 |
while ( size++ < sizeAligned ) |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
68 |
{ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
69 |
*ptr++ = 0; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
70 |
} |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
71 |
ptr -= sizeAligned; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
72 |
size = sizeAligned; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
73 |
// Data is written directly and length is determined from trace message length |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
74 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
75 |
} |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
76 |
return retval; |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
77 |
} |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
78 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
79 |
#endif // __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
80 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
81 |
#endif |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
82 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
83 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
84 |
#endif |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
85 |
|
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
86 |
// End of file |
3baa1be38e89
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
87 |