omadrm/drmengine/ro/inc/DrmRightsParser.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
--- a/omadrm/drmengine/ro/inc/DrmRightsParser.h	Tue Feb 02 00:21:44 2010 +0200
+++ b/omadrm/drmengine/ro/inc/DrmRightsParser.h	Fri Apr 16 15:14:55 2010 +0300
@@ -20,9 +20,9 @@
 #define DRMRIGHTSPARSER_H
 
 //  INCLUDES
-#include <Xml/Parser.h>
-#include <Xml/ContentHandler.h>
-#include <Xml/XmlParserErrors.h>
+#include <xml/parser.h>
+#include <xml/contenthandler.h>
+#include <xml/xmlparsererrors.h>
 
 using namespace Xml;
 
@@ -50,7 +50,7 @@
             EXmlParser,
             EWbxmlParser
             };
-            
+
         enum TSoftwareSchemaType
             {
             ESymbianSid,
@@ -61,7 +61,7 @@
         static const TInt KMaxElementNesting = 16;
 
     public:  // Constructors and destructor
-        
+
         /**
         * Create a parser object
         * @since Series 60 3.0
@@ -70,14 +70,14 @@
         */
         IMPORT_C static CDrmRightsParser* NewL(
             TParserType aType = EXmlParser);
-        
+
         /**
         * Destructor.
         */
         IMPORT_C ~CDrmRightsParser();
 
     public: // New functions
-        
+
         /**
         * Parse one rights object
         * @since Series 60 3.0
@@ -104,7 +104,7 @@
         * From MContentHandler
         * @param aDocParam Specifies the various parameters of the document.
         * @arg   aDocParam.iCharacterSetName The character encoding of the document.
-        * @param aErrorCode is the error code. 
+        * @param aErrorCode is the error code.
         *        If this is not KErrNone then special action may be required.
         */
         void OnStartDocumentL(
@@ -113,7 +113,7 @@
 
         /**
         * From MContentHandler
-        * @param aErrorCode is the error code. 
+        * @param aErrorCode is the error code.
         *        If this is not KErrNone then special action may be required.
         */
         void OnEndDocumentL(
@@ -128,8 +128,8 @@
         */
         void OnStartElementL(
             const RTagInfo& aElement,
-            const RAttributeArray& aAttributes, 
-			TInt aErrorCode);
+            const RAttributeArray& aAttributes,
+            TInt aErrorCode);
 
         /**
         * From MContentHandler
@@ -143,8 +143,8 @@
 
         /**
         * From MContentHandler
-        * @param aBytes is the raw content data for the element. 
-        *        The client is responsible for converting the data to the 
+        * @param aBytes is the raw content data for the element.
+        *        The client is responsible for converting the data to the
         *        required character set if necessary.
         *        In some instances the content may be binary and must not be converted.
         * @param aErrorCode is the error code.
@@ -163,8 +163,8 @@
         */
         void OnStartPrefixMappingL(
             const RString& aPrefix,
-            const RString& aUri, 
-			TInt aErrorCode);
+            const RString& aUri,
+            TInt aErrorCode);
 
         /**
         * From MContentHandler
@@ -205,8 +205,8 @@
         */
         void OnProcessingInstructionL(
             const TDesC8& aTarget,
-            const TDesC8& aData, 
-			TInt aErrorCode);
+            const TDesC8& aData,
+            TInt aErrorCode);
 
         /**
         * From MContentHandler
@@ -232,7 +232,7 @@
             const TInt32 aUid);
 
     protected:  // New functions
-        
+
         /**
         * Match the state of the current stack to the predefined states
         * @since Series 60 3.0
@@ -248,7 +248,7 @@
         */
         void TransformRightsObjectL(
             RPointerArray<CDRMRights>& aResult);
-            
+
         /**
         * Return the value of an attribute as a buffer
         * @since Series 60 3.0
@@ -275,10 +275,10 @@
         * Parse the time string and return the TTime
         */
         TTime ParseRelTimeL(TDesC8& aRelTimeString);
-        
+
         /**
         * Parse the interval string and return the interval
-        */        
+        */
         TTimeIntervalSeconds ParseRelInterval(TDesC8& aRelTimeString);
 
 
@@ -298,25 +298,25 @@
     protected:  // Data
         // XML Parser
         CParser* iParser;
-        
+
         // Parsed rigths object
         CParsedRightsObject* iRights;
-        
+
         // Predefined XML element names
         RString iElements[KMaxElementCount];
-        
+
         // Current parsing stack
         TInt iElementStack[KMaxElementNesting];
-        
+
         // Depth of the current parsing stack
         TInt iElementStackDepth;
-        
+
         // Content between elements
         HBufC8* iContent;
-        
+
         // Determines if the input is XML or WBXML
         TParserType iParserType;
-        
+
         // Determines what kind of software constraint the RO contains
         TSoftwareSchemaType iSoftwareSchemeType;
 
@@ -327,6 +327,6 @@
         HBufC8* iUnknownTag;
     };
 
-#endif      // DRMRIGHTSPARSER_H   
-            
+#endif      // DRMRIGHTSPARSER_H
+
 // End of File