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: Parser base element class declaration
23 #include <SenBaseElement.h>
26 _LIT8(KSenFacet, "Facet");
27 _LIT8(KFacetAttrName, "name");
28 _LIT8(KFacetAttrType, "type");
31 class CSenFacet : public CSenBaseElement
38 IMPORT_C static CSenFacet* NewL();
42 * @param aCopiedSource source to copy facet data from.
44 IMPORT_C static CSenFacet* NewL(CSenElement& aCopiedSource);
48 * @param aNsUri The namespace URI of the new element
49 * @param aLocalName The local name of the new element
50 * @param aQName The qualified name of the new element
51 * @param aAttributes The attributes of the new element
53 * KErrSenInvalidCharacters if aLocalName or aQName contains
55 * KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
57 IMPORT_C static CSenFacet* NewL(const TDesC8& aNsUri,
58 const TDesC8& aLocalName,
60 const RAttributeArray& aAttributes);
62 IMPORT_C virtual ~CSenFacet();
68 * @param aName the name to be set.
70 IMPORT_C virtual void SetNameL(const TDesC8& aName);
74 * @param aType the type to be set.
76 IMPORT_C virtual void SetTypeL(const TDesC8& aType);
80 * @param aValue the value to be set.
82 IMPORT_C virtual void SetValueL(const TDesC8& aValue);
86 * @return the name of the facet
88 IMPORT_C virtual TPtrC8 Name();
92 * @return the type of the facet
94 IMPORT_C virtual TPtrC8 Type();
98 * @return the value of the facet
100 IMPORT_C virtual TPtrC8 Value();
105 * C++ default constructor.
107 IMPORT_C CSenFacet();
110 * By default Symbian 2nd phase constructors are private.
112 IMPORT_C void ConstructL(const TDesC8& aLocalName);
113 IMPORT_C void ConstructL(CSenElement& aCopiedSource);
114 IMPORT_C void ConstructL(const TDesC8& aNsUri,
115 const TDesC8& aLocalName,
116 const TDesC8& aQName,
117 const RAttributeArray& aAttributes);
120 #endif // SEN_FACET_H