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 // All binary data functions
24 #ifndef XMLENGDATACONTAINER_H
25 #define XMLENGDATACONTAINER_H
27 #include <xml/dom/xmlengnode.h>
30 This class represents different types of binary data in DOM tree.
32 It can be custom-serialized using the MXmlEngDataSerializer interface which can
33 be set in the TXmlEngSerializationOptions used for saving the tree.
35 class TXmlEngDataContainer : public TXmlEngNode
39 /** Get CID of data container.
40 @return Cid of data container
42 IMPORT_C TPtrC8 Cid() const;
44 /** Get data size in bytes
45 @return Number of bytes occupied by data
47 IMPORT_C TUint Size() const;
50 /** Default constructor */
51 inline TXmlEngDataContainer();
55 @param aInternal node pointer
57 inline TXmlEngDataContainer(void* aInternal);
60 #include <xml/dom/xmlengdatacontainer.inl>
62 #endif /* XMLENGDATACONTAINER_H */