homescreenpluginsrv/hspsdefinitionengine/hspsdefinitionengine/inc/hspslocaleparser.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2005,2006 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:  Locale parsing and applying languages
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_hspsLOCALEPARSER_H
       
    21 #define C_hspsLOCALEPARSER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class RFs;
       
    29 class ChspsDomDocument;
       
    30 class ChspsDtdEntity;
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Locale parsing and applying languages
       
    35 *  @ingroup group_hspsdefinitionengine
       
    36 *  @lib hspsdefinitionengine.lib
       
    37 *  @since Series 60 3.1
       
    38 */
       
    39 class ChspsLocaleParser : public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static ChspsLocaleParser* NewL();
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~ChspsLocaleParser();
       
    52 
       
    53     public: // New functions
       
    54         
       
    55         /**
       
    56         * Applies locale references to a skeleton dom
       
    57         * @since Series 60 3.1
       
    58         * @param aFs: An open file server session
       
    59         * @param aFile: Dtd file to be parsed
       
    60         * @param aLocalizedDom: On return Dom containing replaced entity references
       
    61         */
       
    62         void ApplyDtdToDomL( 
       
    63             RFs& aFsSession, 
       
    64             const TDesC& aFile,
       
    65             ChspsDomDocument& aLocalizedDom );
       
    66         
       
    67         
       
    68     private:
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         ChspsLocaleParser();
       
    74 
       
    75         /**
       
    76         * By default Symbian 2nd phase constructor is private.
       
    77         */
       
    78         void ConstructL();
       
    79 
       
    80     private:
       
    81         //Array holds parsed entity references
       
    82         RPointerArray<ChspsDtdEntity> iEntityReferences;    
       
    83     };
       
    84 
       
    85 #endif      // C_hspsLOCALEPARSER_H   
       
    86             
       
    87 // End of File