|
1 /* |
|
2 * Copyright (c) 2003-2008 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: Debugging output. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "SDCGlobals.h" |
|
19 #include "SDCDebugOutput.h" |
|
20 |
|
21 #include <stdio.h> |
|
22 |
|
23 ////////////////////////////////////////////////////////////////////// |
|
24 // Construction/Destruction |
|
25 ////////////////////////////////////////////////////////////////////// |
|
26 |
|
27 CSDCDebugOutput::CSDCDebugOutput() |
|
28 { |
|
29 } |
|
30 |
|
31 CSDCDebugOutput::~CSDCDebugOutput() |
|
32 { |
|
33 } |
|
34 |
|
35 ////////////////////////////////////////////////////////////////////// |
|
36 // Other methods |
|
37 ////////////////////////////////////////////////////////////////////// |
|
38 |
|
39 void CSDCDebugOutput::Output( CSDCData* aData ) |
|
40 { |
|
41 int i; |
|
42 |
|
43 wprintf(L"\nSkin content\n"); |
|
44 wprintf(L" PID=0x%08x 0x%08x\n", aData->iPid.iPID2, aData->iPid.iPID1 ); |
|
45 wprintf(L" Type=%i\n", aData->iSkinType); |
|
46 for( i=0; i<aData->iNameVector.size(); i++ ) |
|
47 { |
|
48 wprintf(L" %i=\"%s\"\n", aData->iNameVector[i]->iLanguageID, aData->iNameVector[i]->iName ); |
|
49 } |
|
50 |
|
51 wprintf(L"MBM file\n"); |
|
52 |
|
53 for( i=0; i<aData->iMbmVector.size(); i++ ) |
|
54 { |
|
55 TSDCMBMEntry* entry = aData->iMbmVector[i]; |
|
56 wprintf(L" %i %s\n", entry->iColorDepth, entry->iSourceFilename ); |
|
57 } |
|
58 |
|
59 wprintf(L"Bitmap definitions\n"); |
|
60 |
|
61 for( i=0; i<aData->iBitmapDefVector.size(); i++ ) |
|
62 { |
|
63 TSDCBitmapDef* entry = aData->iBitmapDefVector[i]; |
|
64 wprintf(L" (0x%x,0x%x) = %i,%i [%i coords=(%i,%i) size=(%i,%i) align=%i] ", |
|
65 entry->iIID.iMajor, entry->iIID.iMinor, |
|
66 entry->iMBMIndex, entry->iMaskMBMIndex, |
|
67 entry->iAttributes.iAttributeFlags, |
|
68 entry->iAttributes.iCoordX, entry->iAttributes.iCoordY, |
|
69 entry->iAttributes.iSizeW, entry->iAttributes.iSizeH, entry->iAttributes.iAlignmentFlags ); |
|
70 if( entry->iAppIconBitmap ) wprintf(L"(appicon)"); |
|
71 wprintf(L"\n"); |
|
72 } |
|
73 |
|
74 wprintf(L"Color table definitions\n"); |
|
75 for( i=0; i<aData->iColorTableDefVector.size(); i++ ) |
|
76 { |
|
77 TSDCColorTableDef* entry = aData->iColorTableDefVector[i]; |
|
78 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
|
79 |
|
80 for( int a=0; a<entry->iColors.size(); a++ ) |
|
81 wprintf(L"[%i,0x%x] ", entry->iColors[a].iIndex, entry->iColors[a].iRgb ); |
|
82 |
|
83 wprintf(L"\n"); |
|
84 } |
|
85 |
|
86 wprintf(L"Frame definitions\n"); |
|
87 for( i=0; i<aData->iFrameDefVector.size(); i++ ) |
|
88 { |
|
89 TSDCFrameDef* entry = aData->iFrameDefVector[i]; |
|
90 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
|
91 |
|
92 for( int a=0; a<entry->iElements.size(); a++ ) |
|
93 wprintf(L"[0x%x,0x%x] ", entry->iElements[a].iMajor, entry->iElements[a].iMinor ); |
|
94 |
|
95 wprintf(L"\n"); |
|
96 } |
|
97 |
|
98 wprintf(L"Application icon definitions\n"); |
|
99 for( i=0; i<aData->iAppIconDefVector.size(); i++ ) |
|
100 { |
|
101 TSDCAppIconDef* entry = aData->iAppIconDefVector[i]; |
|
102 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
|
103 |
|
104 for( int a=0; a<entry->iIcons.size(); a++ ) |
|
105 wprintf(L"[0x%x,0x%x] ", entry->iIcons[a].iMajor, entry->iIcons[a].iMinor ); |
|
106 |
|
107 wprintf(L"\n"); |
|
108 } |
|
109 } |
|
110 |
|
111 // End of file |