skins/AknSkins/sdcinc/SDCReader.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:  Reader class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(AFX_SDCREADER_H__46D5B679_A59D_4E3A_8538_12CA298892CB__INCLUDED_)
       
    20 #define AFX_SDCREADER_H__46D5B679_A59D_4E3A_8538_12CA298892CB__INCLUDED_
       
    21 
       
    22 #if _MSC_VER > 1000
       
    23 #pragma once
       
    24 #endif // _MSC_VER > 1000
       
    25 
       
    26 #include <string.h>
       
    27 
       
    28 #include "SDCData.h"
       
    29 
       
    30 class CSDCReader
       
    31     {
       
    32     public:
       
    33         CSDCReader( CSDCData* aData );
       
    34         virtual ~CSDCReader();
       
    35 
       
    36     public:
       
    37         void Parse();
       
    38 
       
    39     protected:
       
    40         void ParseSkintype();
       
    41         void ParseUID();
       
    42         void ParsePID();
       
    43         void GeneratePID();
       
    44         void ParseName();
       
    45         void ParseLanguageOverride();
       
    46         void ParseParentUID();
       
    47         void ParseProtect();
       
    48         void ParseAuthor();
       
    49         void ParseCopyright();
       
    50         void ParseTargetDevice();
       
    51         void ParseTool();
       
    52         void ParseBitmap();
       
    53         void ParseColorTable();
       
    54         void ParseFrame();
       
    55         void ParseBmpAnim();
       
    56         void ParseAppIcon();
       
    57         void ParsePalette();
       
    58         void ParseString();
       
    59         void ParseScalableItem();
       
    60         void ParseAnimation();
       
    61         void ParseBitmapPath();
       
    62         void ParseRestriction();
       
    63         TSDCIID ParseBitmapSource( const bool aAppIcon, const int aRestriction, const bool aSvgAnim = false );
       
    64         void ProcessAttribute( TSDCImageAttributes& aAttributes, wchar_t* aSource );
       
    65         void ParseEffectCommand( TSDCEffectCommand& aCommand );
       
    66         void ParseEffectParameter( TSDCEffectParameter& aParameter );
       
    67 
       
    68     protected:
       
    69         void UnexpectedTokenError( wchar_t* aWrongToken, wchar_t* aRightToken );
       
    70         void UnknownIIDError( wchar_t* aWrongIID );
       
    71         void StripIIDPrefix( wchar_t* aIID, int& aRestriction );
       
    72 
       
    73     public:
       
    74         CSDCData* iData;
       
    75 
       
    76     };
       
    77 
       
    78 #endif // !defined(AFX_SDCREADER_H__46D5B679_A59D_4E3A_8538_12CA298892CB__INCLUDED_)