1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Content handler for binary data
24 #ifndef XMLENGEXTENDEDCONTENTHANDLER_H
25 #define XMLENGEXTENDEDCONTENTHANDLER_H
27 #include <xml/dom/xmlengdatacontainer.h>
30 This class extends MContentHandler with functions for binary data handling.
31 Used by clients during XOP deserialization.
33 @see Xml::MContentHandler
35 class MXmlEngExtendedHandler
38 /** The uid identifying this extension interface. */
39 enum TExtInterfaceUid {EExtInterfaceUid = 0x101F9794};
42 Called when binary content has been parsed.
44 @param aBytes The raw binary data of the element
45 @param aCid The CID of the binary data
46 @param aErrorcode The parsing error code. If this is not KErrNone, special
47 action may be required.
48 @leave - One of the system-wide error codes
50 virtual void OnBinaryContentL(const TDesC8& aBytes,
55 Called when a reference to external data has been parsed.
56 @see CXmlEngDeserializer::ExternalData()
58 Any class derived from TXmlEngDataContainer may be passed to this function.
59 @see TXmlEngBinaryContainer
60 @see TXmlEngChunkContainer
61 @see TXmlEngFileContainer
63 @param aContainer The container that holds the external binary data.
64 @param aErrorcode The parsing error code. If this is not KErrNone, special
65 action may be required.
66 @leave - One of the system-wide error codes
68 virtual void OnDataContainerL( const TXmlEngDataContainer& aContainer,
72 #endif //XMLENGINE_EXTENDEDCONTENTHANDLER_H