1.1 --- a/epoc32/include/mw/senxmlconstants.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/mw/senxmlconstants.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,112 @@
1.4 -senxmlconstants.h
1.5 +/*
1.6 +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* 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
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: This header lists all constants of XML Extensions library
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +
1.26 +
1.27 +
1.28 +
1.29 +
1.30 +#ifndef SEN_XML_CONSTANTS_H
1.31 +#define SEN_XML_CONSTANTS_H
1.32 +
1.33 +// INCLUDES
1.34 +#include <e32base.h>
1.35 +
1.36 +// CONSTANTS
1.37 +// Leave codes
1.38 +const TInt KErrSenInvalidCharacters = -30300;
1.39 +const TInt KErrSenZeroLengthDescriptor = -30301;
1.40 +const TInt KErrSenXmlReaderNotSet = -30302;
1.41 +const TInt KErrSenXmlContentHandlerNotSet = -30303;
1.42 +
1.43 +// Panics
1.44 +_LIT(KSenXmlPanic, "SenXml");
1.45 +
1.46 +
1.47 +
1.48 +// XML String constants
1.49 +const TInt KSenMaxXmlEscapedLength = 8;
1.50 +_LIT8(KSenSlash, "/");
1.51 +_LIT8(KSenColon, ":");
1.52 +_LIT8(KSenLessThan, "<");
1.53 +_LIT8(KSenGreaterThan, ">");
1.54 +_LIT8(KSenSpace, " ");
1.55 +_LIT8(KSenQuot, "'");
1.56 +_LIT8(KSenDblQuot, "\"");
1.57 +_LIT8(KSenEquals, "=");
1.58 +_LIT8(KSenEqualsDblQuot, "=\"");
1.59 +_LIT8(KSenSlashGreaterThan, "/>");
1.60 +_LIT8(KSenLessThanSlash, "</");
1.61 +_LIT8(KSenSpaceXmlns, " xmlns");
1.62 +_LIT8(KSenXmlns, "xmlns");
1.63 +_LIT8(KSenXmlNsAttNamePlusColon, "xmlns:");
1.64 +_LIT8(KSenXmlCommentStart, "<!--");
1.65 +_LIT8(KSenXmlCommentEnd, "-->");
1.66 +_LIT8(KSenXmlInstructionStart, "<?");
1.67 +_LIT8(KSenXmlInstructionEnd, "?>");
1.68 +_LIT8(KSenXmlEntityStart, "<!");
1.69 +
1.70 +// The predeclared, basic XML entities:
1.71 +// ' (')
1.72 +// " (")
1.73 +// > (>)
1.74 +// < (<)
1.75 +// & (&)
1.76 +
1.77 +_LIT8(KSenEscapedAmp, "&");
1.78 +_LIT8(KSenEscapedApos, "'");
1.79 +_LIT8(KSenEscapedDblQuot, """);
1.80 +_LIT8(KSenEscapedGt, ">");
1.81 +_LIT8(KSenEscapedLt, "<");
1.82 +
1.83 +// XML-escaping chars as descriptors
1.84 +_LIT8(KSenAmpersandDesC8, "&");
1.85 +_LIT8(KSenAposDesC8, "\'");
1.86 +_LIT8(KSenDblQuotDesC8, "\"");
1.87 +_LIT8(KSenGtDesC8, ">");
1.88 +_LIT8(KSenLtDesC8, "<");
1.89 +
1.90 +
1.91 +/*
1.92 +_LIT8(KSenQuotedAmp, "&");
1.93 +_LIT8(KSenQuotedApos, "'");
1.94 +_LIT8(KSenQuotedDblQuot, """);
1.95 +_LIT8(KSenQuotedGt, ">");
1.96 +_LIT8(KSenQuotedLt, "<");
1.97 +*/
1.98 +
1.99 +/**
1.100 +* SenXmlPanic Enumeration
1.101 +*/
1.102 +enum TSenXmlPanic
1.103 + {
1.104 + EBadNamespace = 1,
1.105 + EBadNamespacePrefix,
1.106 + EBufNot16Bit,
1.107 + EFragmentElementNotInitialized,
1.108 + EDelegatedFragmentAlreadySet,
1.109 + EInconsistentTokens,
1.110 + EBadInternalState
1.111 + };
1.112 +
1.113 +#endif // SEN_XML_CONSTANTS_H
1.114 +
1.115 +// End of File
1.116 +