skins/AknSkins/sdcinc/SDCBinOutput.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     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:  Binary output.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(AFX_SDCBINOUTPUT_H__CF4540A9_3929_4002_B5BA_FDB4B873FAAC__INCLUDED_)
       
    20 #define AFX_SDCBINOUTPUT_H__CF4540A9_3929_4002_B5BA_FDB4B873FAAC__INCLUDED_
       
    21 
       
    22 #if _MSC_VER > 1000
       
    23 #pragma once
       
    24 #endif // _MSC_VER > 1000
       
    25 
       
    26 #include <stdio.h>
       
    27 #include <vector>
       
    28 
       
    29 #include "SDCData.h"
       
    30 
       
    31 using namespace std;
       
    32 
       
    33 class CSDCBinOutput
       
    34     {
       
    35     public:
       
    36         CSDCBinOutput();
       
    37         virtual ~CSDCBinOutput();
       
    38 
       
    39     public:
       
    40         void Output( CSDCData* aData, const char* aBaseName, const char* aBinFilename, const bool aStubOnly );
       
    41 
       
    42     protected:
       
    43         void PrepareSkinDescriptor( const bool aStubOnly );
       
    44         void PrepareTargetDevice( const wchar_t* aDeviceName );
       
    45         void PrepareName( const short int aLanguage, const wchar_t* aName );
       
    46         void PrepareInformation();
       
    47         void PrepareLanguageOverride( const unsigned char aOverrideType, const TSDCPID aOverridePid );
       
    48         void PrepareWallpaper( const unsigned char aWpType, const TSDCBitmapDef* aBitmapDef );
       
    49         void PrepareFilename( const int aId, const char* aFilename );
       
    50         void PrepareEncapsulatedNormalClass( const int aRestriction );
       
    51         void PrepareNormalClass( const int aRestriction );
       
    52         void PrepareAppIconClass();
       
    53         void PrepareBitmap( const TSDCBitmapDef* aBitmapDef );
       
    54         void PrepareColorTable( const TSDCColorTableDef* aColorTableDef );
       
    55         void PrepareBmpAnim( const TSDCBmpAnimDef* aBmpAnimDef, const TSDCImageAttributes& aAttributes );
       
    56         void PrepareString( const TSDCStringDef* aStringDef );
       
    57         void PrepareScalableItem( const TSDCScalableItemDef* aItemDef );
       
    58         void PrepareAnimation( const TSDCAnimationDef* aItemDef );
       
    59         void PrepareImageTable( const TSDCIID& aIID, const vector<TSDCIID> aImages, const TSDCImageAttributes& aAttributes );
       
    60         void PrepareAttributes( const TSDCImageAttributes& aAttributes );
       
    61         void PrepareParamVector( const vector<TSDCEffectParameter>& aParameters );
       
    62         void PrepareEffectCommand( const TSDCEffectCommand& aCommand );
       
    63         void PrepareAnimParamGroup( const TSDCAnimParamGroup& aParamGroup );
       
    64 
       
    65     protected:
       
    66         void AppendBytes( const int aNumberOfBytes );
       
    67         void WriteByte( const unsigned char aByte );
       
    68         void WriteInt( const int aInt );
       
    69         void WriteUint( const unsigned int aUint );
       
    70         void WriteInt16( const short int aInt );
       
    71         void WriteUint16( const short unsigned int aUint );
       
    72 
       
    73     public:
       
    74         CSDCData* iData;
       
    75         char iBaseName[512];
       
    76 
       
    77         vector<unsigned char> iOutputVector;
       
    78         int iOutputPos;
       
    79 
       
    80     };
       
    81 
       
    82 #endif // !defined(AFX_SDCBINOUTPUT_H__CF4540A9_3929_4002_B5BA_FDB4B873FAAC__INCLUDED_)