epoc32/include/mw/senxmlconstants.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
--- a/epoc32/include/mw/senxmlconstants.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/senxmlconstants.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,112 @@
-senxmlconstants.h
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:        This header lists all constants of XML Extensions library
+*
+*/
+
+
+
+
+
+
+
+
+
+#ifndef SEN_XML_CONSTANTS_H
+#define SEN_XML_CONSTANTS_H
+
+//  INCLUDES
+#include <e32base.h>
+
+// CONSTANTS
+// Leave codes
+const TInt KErrSenInvalidCharacters         =   -30300;
+const TInt KErrSenZeroLengthDescriptor      =   -30301;
+const TInt KErrSenXmlReaderNotSet           =   -30302;
+const TInt KErrSenXmlContentHandlerNotSet   =   -30303;
+
+// Panics
+_LIT(KSenXmlPanic, "SenXml");
+
+
+
+// XML String constants
+const TInt KSenMaxXmlEscapedLength = 8;
+_LIT8(KSenSlash,                    "/");
+_LIT8(KSenColon,                    ":");
+_LIT8(KSenLessThan,                 "<");
+_LIT8(KSenGreaterThan,              ">");
+_LIT8(KSenSpace,                    " ");
+_LIT8(KSenQuot,                     "'");
+_LIT8(KSenDblQuot,                  "\"");
+_LIT8(KSenEquals,                   "=");
+_LIT8(KSenEqualsDblQuot,            "=\"");
+_LIT8(KSenSlashGreaterThan,         "/>");
+_LIT8(KSenLessThanSlash,            "</");
+_LIT8(KSenSpaceXmlns,               " xmlns");
+_LIT8(KSenXmlns,                    "xmlns");
+_LIT8(KSenXmlNsAttNamePlusColon,    "xmlns:");
+_LIT8(KSenXmlCommentStart,          "<!--");
+_LIT8(KSenXmlCommentEnd,            "-->");
+_LIT8(KSenXmlInstructionStart,      "<?");
+_LIT8(KSenXmlInstructionEnd,         "?>");
+_LIT8(KSenXmlEntityStart,            "<!");
+
+// The predeclared, basic XML entities:
+// &apos;    (')
+// &quot;    (")
+// &gt;      (>)
+// &lt;      (<)
+// &amp;     (&)
+
+_LIT8(KSenEscapedAmp,     "&amp;");
+_LIT8(KSenEscapedApos,    "&apos;");
+_LIT8(KSenEscapedDblQuot, "&quot;");
+_LIT8(KSenEscapedGt,      "&gt;");
+_LIT8(KSenEscapedLt,      "&lt;");
+
+// XML-escaping chars as descriptors
+_LIT8(KSenAmpersandDesC8,  "&");
+_LIT8(KSenAposDesC8,       "\'");
+_LIT8(KSenDblQuotDesC8,    "\"");
+_LIT8(KSenGtDesC8,         ">");
+_LIT8(KSenLtDesC8,         "<");
+
+
+/*
+_LIT8(KSenQuotedAmp,     "&amp;");
+_LIT8(KSenQuotedApos,    "&apos;");
+_LIT8(KSenQuotedDblQuot, "&quot;");
+_LIT8(KSenQuotedGt,      "&gt;");
+_LIT8(KSenQuotedLt,      "&lt;");
+*/
+
+/**
+* SenXmlPanic Enumeration
+*/
+enum TSenXmlPanic
+    {
+    EBadNamespace = 1,
+    EBadNamespacePrefix,
+    EBufNot16Bit,
+    EFragmentElementNotInitialized,
+    EDelegatedFragmentAlreadySet,
+    EInconsistentTokens,
+    EBadInternalState
+    };
+
+#endif // SEN_XML_CONSTANTS_H
+
+// End of File
+