homescreenpluginsrv/hspsdefinitionengine/hspsdefinitionengine/inc/hspslocaleparser.h
changeset 0 79c6a41cd166
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenpluginsrv/hspsdefinitionengine/hspsdefinitionengine/inc/hspslocaleparser.h	Thu Dec 17 08:54:17 2009 +0200
@@ -0,0 +1,87 @@
+/*
+* Copyright (c) 2005,2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Locale parsing and applying languages
+*
+*/
+
+
+
+#ifndef C_hspsLOCALEPARSER_H
+#define C_hspsLOCALEPARSER_H
+
+//  INCLUDES
+#include <e32base.h>
+
+
+// FORWARD DECLARATIONS
+class RFs;
+class ChspsDomDocument;
+class ChspsDtdEntity;
+// CLASS DECLARATION
+
+/**
+*  Locale parsing and applying languages
+*  @ingroup group_hspsdefinitionengine
+*  @lib hspsdefinitionengine.lib
+*  @since Series 60 3.1
+*/
+class ChspsLocaleParser : public CBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        static ChspsLocaleParser* NewL();
+        
+        /**
+        * Destructor.
+        */
+        virtual ~ChspsLocaleParser();
+
+    public: // New functions
+        
+        /**
+        * Applies locale references to a skeleton dom
+        * @since Series 60 3.1
+        * @param aFs: An open file server session
+        * @param aFile: Dtd file to be parsed
+        * @param aLocalizedDom: On return Dom containing replaced entity references
+        */
+        void ApplyDtdToDomL( 
+            RFs& aFsSession, 
+            const TDesC& aFile,
+            ChspsDomDocument& aLocalizedDom );
+        
+        
+    private:
+
+        /**
+        * C++ default constructor.
+        */
+        ChspsLocaleParser();
+
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL();
+
+    private:
+        //Array holds parsed entity references
+        RPointerArray<ChspsDtdEntity> iEntityReferences;    
+    };
+
+#endif      // C_hspsLOCALEPARSER_H   
+            
+// End of File