Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * 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
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This is an abstract interface enabling factory pattern
29 #include <Xml/ContentHandler.h>
30 #include <Xml/Parser.h>
34 // FORWARD DECLARATIONS
35 class CSenContentHandler;
36 class CSenFragmentBase;
38 class CSenParser : public CBase
40 public: // Constructors and destructor
43 * Standard 2 phase constructor.
46 IMPORT_C static CSenParser* NewL();
48 * Standard 2 phase constructor.
51 IMPORT_C static CSenParser* NewLC();
54 * Standard 2 phase constructor.
55 * @param aParser : where construction
56 * data will be copied from.
59 IMPORT_C static CSenParser* NewL(CParser* aParser);
61 * Standard 2 phase constructor.
62 * @param aParser : where construction
63 * data will be copied from.
66 IMPORT_C static CSenParser* NewLC(CParser* aParser);
69 * Standard 2 phase constructor.
70 * @param aParserMimeType : where construction
71 * data will be copied from.
74 IMPORT_C static CSenParser* NewL(const TDesC8& aParserMimeType);
76 * Standard 2 phase constructor.
77 * @param aParserMimeType : where construction
78 * data will be copied from.
81 IMPORT_C static CSenParser* NewLC(const TDesC8& aParserMimeType);
84 * Sets the ContentHandler
85 * @param aContentHandler
87 virtual void SetContentHandler(CSenFragmentBase& aContentHandler) = 0;
92 virtual void ParseBeginL() = 0;
95 * @param aDocumentMimeType This contains the Mime Type
97 virtual void ParseBeginL(const TDesC8& aDocumentMimeType) = 0;
102 * @param aContentHandler
104 virtual void ParseL(const TDesC8& aFragment,
105 CSenFragmentBase& aContentHandler) = 0;
110 * @param aContentHandler
112 virtual void ParseL(RFs& aFs, const TDesC& aFilename,
113 CSenFragmentBase& aContentHandler) = 0;
117 * @param aContentHandler
119 virtual void ParseL(RFile& aFile, CSenFragmentBase& aContentHandler) = 0;
124 virtual void ParseEndL() = 0;
127 * Sets the Processor Chain
129 virtual void SetProcessorChainL(const RContentProcessorUids& aPlugins) = 0;
132 * Enables the Parsing Feature
134 virtual TInt EnableFeature(TInt aParserFeature) = 0;
136 * Disables the Parsing Feature
138 virtual TInt DisableFeature(TInt aParserFeature) = 0;
140 * @param aParserFeature
141 * @return True if parser feature is enabled
142 * False if parser feature is disabled
144 virtual TBool IsFeatureEnabled(TInt aParserFeature) const = 0;
148 virtual void AddPreloadedDictionaryL(const TDesC8& aPublicId) = 0;
153 virtual RStringPool& StringPool() = 0;
157 virtual RStringDictionaryCollection& StringDictionaryCollection() = 0;
164 #endif //SEN_PARSER_H